
locant
io.github.Malik1942/locant
Point at any UI element on your Mac; your agent gets its screenshot, details, and your note.
Documentation
Locant
Point, don't describe.
Your coding agent gets the element you point at, not a screenshot.
Point at one element in a Mac app, an iPhone app in the Simulator, or a web page; say what should change; paste.
Free, open source, macOS 15+, Apple silicon and Intel.
Point at an iPhone app and a website, say what's wrong, paste into the agent. Real takes; only the agent's wait is sped up.
Website · Download · Product Hunt
Why
A screenshot tells a coding agent roughly where something is. It then guesses which view drew it, and the first guess is often wrong.
Every native Mac app already carries the answer in its accessibility tree: a role, a label, and often the exact identifier the source code uses. Locant reads it. Press a hotkey, click one element in any app, type what should change, press Enter. The clipboard now holds a Markdown payload with the element's role, label, accessibility identifier, frame, and ancestry, plus a cropped PNG, so the agent can grep for the right file on the first try.
Window-level tools give your agent the window. Locant gives it the element.
Measured against a screenshot of the same element, on Claude Code, graded blind. The agent had two copies of the code and only one was on screen:
| Locant | Screenshot | |
|---|---|---|
| Runs that edited the wrong copy | 0 of 20 | 14 of 20 |
| Time to the right file (median) | 39 s | 80 s |
| Cost per run | $0.55 | $1.13 |
The setup, the tasks, and every run are in the report. One night of captures shows what a real redesign by pointing looks like, before and after.
Install
-
Download Locant.dmg and drag Locant to Applications. Signed with a Developer ID and notarized, so it opens like any other app. Or, with Homebrew:
brew install Malik1942/locant/locant. Updates install from the app: when a newer version exists, Locant offers Install and Relaunch, checks that the download is signed by the same developer, swaps it in, and reopens; the permissions carry over. Opened from a disk image or Downloads, it offers the download instead. Copies up to 1.3.1 update through the browser one last time. -
Launch it. There is no Dock icon; look for the pointing hand in the menu bar.
-
Allow the two permissions it asks for, in this order:
- Accessibility reads what is under your cursor and listens for the hotkey. Without it nothing works.
- Screen Recording captures the pixels of the element. macOS applies the grant only after Locant reopens, and offers Quit & Reopen when you turn it on; take it before the first capture.
There is no third prompt. Nothing leaves the machine: no telemetry, no accounts. The one request Locant makes is a daily check for a newer release on GitHub. When you click Install and Relaunch, it downloads that release from GitHub. Turn the check off in Settings › General.
-
A one-page guide opens: every action, its hotkey, and the gestures on the overlay. Close it; reopen it any time from Settings › General. The first three times each action opens, a line at the bottom of the screen names its gestures, then fades by itself.
Use
Three seconds, start to paste.
- ⌃⌃ (double-tap Control within 350 ms) or ⌃⌥1, or click the ball. The screen freezes under the overlay.
Hover to see the highlight and the label
role · identifier. The label tells you before you click whether the element has a declared identifier, only a label, or no accessibility tree at all. - Click the element, or press Return while it is highlighted. Drag instead to capture a frame with everything inside it. Option steps to the parent, and again for the next level. Hold Shift and click to add more elements, from any app; the note then covers all of them.
- Type what should change, press Enter. The payload is on the clipboard. Esc at any point cancels; nothing is written and the clipboard is untouched.
Paste into your agent. Each capture also lands in ~/Pictures/Locant/ as a PNG and a JSON sidecar that
validates against schema/capture.schema.json.
## Locant capture (fix)
Image: /Users/you/Pictures/Locant/locant-simulator-20260913-153012-k7q2.png
App: Simulator (com.example.myapp) · Window: iPhone 17 Pro
Captured: 2026-09-13 15:30 · Image region: 450×130 pt @2x (element + 40 pt)
Project: /Users/you/Developer/MyApp
### Target element
button · id=captureButton
Frame: x=43 y=894 w=370 h=50
Path: application > window > group > group > button#captureButton
### Note
make this rounded, match the other pills
The image path comes first because terminal agents receive only the text on paste; the path lets them open the PNG themselves.
Or let the agent fetch it
Locant is its own MCP server. The app binary started with --mcp speaks MCP over stdio and reads the
sidecars in the capture folder; nothing to install, nothing runs until an agent starts it. Four tools:
latest_capture, list_captures, get_capture, resolve_capture. Every result is text with the image
path first; an image block is added only when the agent asks for it (include_image); there is never
structuredContent, so Codex sees the text too.
Connect from Settings › Agents: one row each for Claude Code, Cursor, and Codex, with Connect and
Disconnect. Each writes one server named locant into that agent's own user-level configuration. Or by
hand:
# Claude Code
claude mcp add --scope user locant -- /Applications/Locant.app/Contents/MacOS/Locant --mcp
# Codex
codex mcp add locant -- /Applications/Locant.app/Contents/MacOS/Locant --mcp
Cursor, in ~/.cursor/mcp.json or a project's .cursor/mcp.json; Cursor asks once whether to enable
it, and the agent CLI needs cursor-agent mcp enable locant:
{ "mcpServers": { "locant": { "command": "/Applications/Locant.app/Contents/MacOS/Locant", "args": ["--mcp"] } } }
Then say "fix what I just pointed at". The agent calls latest_capture, greps for the identifier,
edits, and may call resolve_capture, after which Locant keeps that capture past the retention period.
The server reads the folder chosen in Settings › Captures; --folder <path> names another.
In Grok Bot
Grok Bot starts MCP servers on the bot's own cloud computer, where Locant isn't, and a pasted capture
reaches it as the image alone. It can run commands on your Mac, though, and the Locant skill in
plugins/locant uses that: it starts Locant --mcp once on your Mac, reads the latest
capture, and opens its image. Set it up once:
- One bot: tell it "Save the skill at https://raw.githubusercontent.com/Malik1942/locant/main/plugins/locant/skills/locant/SKILL.md as a private skill named locant, word for word."
- Every bot: install the Locant plugin from Grok Bot's Marketplace once it is listed. In Cursor, add it now from Customize › From GitHub Repository with https://github.com/Malik1942/locant.
Then point, and say "fix what I just pointed at". The first time, Grok Bot asks to run commands on your Mac.
What it does
Point, the primary action
- Element, identifier, path. The accessibility identifier is what the agent greps for. The path says where in the tree the element sits.
- Web pages and Electron apps too. A web node carries its DOM id and class list
(
button "Checkout" · #checkout-button · .btn.btn-primary), the path shows each ancestor's id or first class, and the page URL is recorded; alocalhostpage counts as yours. - The component and its source line, on a local React page. In Chrome, Edge, Brave, or Dia, a
capture of a page your dev server serves also names the component that drew the element, its props,
and two places in your code:
Source: …/src/Library.tsx:150:7for the element's own JSX andRendered at: …/src/Library.tsx:93:24for where the component is used. Each browser has to be allowed once, in Settings › Captures › Web pages. - Where it is in your code. In a fix capture Locant reads your project folder while you type the
note and looks the element up itself, so the agent starts at a file and a line:
In source: Oryne/Features/Library/LibraryView.swift:543 (the only file in the project with the string "Recent"). When several files match, the one that also holds other text from the capture is named first; when the text is data, the line points at the fixed text beside it. A translated label is found through its key in your.xcstringsor.strings. On a local page the browser cannot be asked about (an Electron app you are building, or a browser Locant cannot ask), the DOM id and classes are looked up the same way; a list of utility classes (Tailwind) is found where the whole list is written on one line, and a text node is looked up by the element that holds it. APosition: 3 of 12 alike on screenline says where a row sits among the rows like it. - A ladder when there is no element. Identifier, then label, then a drawn frame with every element inside it listed, then recognized text and the nearest labeled neighbors, then the image alone. The payload says which rung it reached.
- Fix or reference is inferred. Anything in the iOS Simulator, anything built on this Mac, and
anything signed with your own Team ID counts as yours; the payload carries a
Project:line. My Apps in Settings is only for what inference misses. - Files in Pictures, tagged in Finder with Locant, the app, fix or reference, and the project. Optionally sorted into subfolders by app, project, or month.
Four more actions, on the same gesture. Hold the ball for half a second and release on one, or use the hotkey.
- Snap (⌃⌥2): the window under the cursor, or a dragged region, as a PNG. Option picks the element under the cursor instead, and again its parent, up to the window. Hold ⌘ at the click to keep it off disk.
- Text (⌃⌥3): the text in an element or a region, recognized, to the clipboard. Nothing on disk.
- Color (⌃⌥4): a magnifier follows the cursor; arrows nudge by a pixel, click copies the value. Hex, rgb(), hsl(), or SwiftUI Color, in sRGB or Display P3.
- Cut (⌃⌥5): the subject cut onto a transparent background, from the window, a frame, or with Option an element.
And
- Before & After. After the agent's edit, run your app again. Locant finds the same element, captures it when it looks different, and keeps every iteration with the git diff beneath. On by default, only for apps you build; Settings › Captures › Recapture when your app changes turns it off.
- The floating ball, a glass disc at the edge of the screen that stays out of the way until you reach for it. Turn it off in Settings; the hotkey works either way.
- Retention. Images older than 30 days go to the Trash. Change the period, or keep everything.
- Hotkeys you record, a key with modifiers or a double-tap of one modifier, for Point and each action.
- A daily update check, and nothing else on the network beyond your own Mac: for the source line of a local web page, Locant reads that page's source maps from the dev server it came from.
Settings (⌘,): General, Hotkeys, Captures, My Apps, Agents. Every default works on first launch.
Full feature reference
| What it does | |
|---|---|
| Overlay | The screen freezes under a dimmed frame. Hover picks the smallest real control near the cursor and sticks to it across padding; a whole-window group appears only in blank areas. The label reads role · identifier, or the label, or a symbol name, so you know what the agent will get before you click. Return takes the highlighted element; Esc cancels everywhere. |
| Drawn frames | Drag on the overlay to capture a frame and every element inside it (### Elements in frame). When nothing has an identifier, the text in the image is recognized and listed, and the nearest labeled elements are named (### Text in image, ### Nearby). A dragged region for Snap, Text, or Cut waits with handles until Return (Adjust selection, on by default). |
| Desktop and menu bar | Targets too. Desktop icons resolve through Finder, widgets through Notification Center, menu titles through the app that owns the menu bar, status items through Control Center or the app that placed them (menuExtra · id=com.apple.menuextra.wifi), Dock items through the Dock. A normal window in front of any of these wins. |
| Mode inference | Fix mode for your own code, reference mode for everything else. Signals: the iOS Simulator, a build found through DerivedData, a folder with an Xcode project or Package.swift, a bundle signed with your Team ID. When a project folder is found the payload carries Project:. My Apps overrides. |
| Payload | One pasteboard item carrying both the PNG and the Markdown. The Markdown is derived from the JSON sidecar, never the other way around; the schema is the only contract with the outside. A failed capture never touches the clipboard. |
| Iterations | After a Point capture in an app you build, each launch or activation of that app within a day is a chance to capture the element again. Locant refinds it by identifier, then by role and label, then by the nearest same-role frame. When the pixels differ beyond a tolerance, it records the git facts (commit at capture time versus HEAD, or the working tree when nothing was committed) and appends an iteration to the sidecar. Show before & after in the menu bar opens the newest: slide, side by side, or flip, with every iteration in a strip. Switch: Settings › Captures › Recapture when your app changes. |
| Lifecycle | Images older than the retention period (7, 30, 90 days, or forever) move to the Trash on launch and daily, with their sidecars. Captures an agent marked resolved in the sidecar stay, and so do pinned ones (extended attribute app.locant.pinned). Actions that make text or a value keep nothing. |
| The ball | A 48 pt glass disc. Rests translucent, tucks into the nearest edge after two seconds without use (left, right, or the bottom beside the Dock; on a first launch, not until you have found it), wakes where it rests as the cursor approaches, starts Point on click. Hold half a second for the ring: Snap ↑, Text →, Color ↓, Cut ←; release at center cancels. Drag it anywhere, or flick it at an edge and it tucks where it was heading. |
| Hotkeys | Point is ⌃⌃ (double-tap Control) or ⌃⌥1, and the menu shows both; Snap, Text, Color, and Cut are ⌃⌥2 through ⌃⌥5, their place in the menu. Re-record or clear any of them in Settings › Hotkeys, which refuses a clash inside Locant and warns when a chord is also a macOS shortcut. A matched chord is swallowed before the frontmost app sees it. |
| Feedback | A light trackpad tap when the outline moves to a new element, when the ring opens and between its segments, and when a capture lands; a short, quiet note when a capture reaches the clipboard and a lower one when nothing did, fired with a tap of its own. The sounds follow the system's switch for interface sounds. Settings › General has a switch for each. |
| Updates | Once a day, 10 s after launch, Locant asks the GitHub releases API for the newest version and offers Install and Relaunch, Later, or Skip This Version. The request carries the version number and nothing else. Settings › General has the switch and Check Now. Install and Relaunch downloads the versioned dmg, checks that it is signed by the same Developer ID and notarized, moves the old copy to the Trash, puts the new one in its place, and reopens. Where Locant can't replace itself (a disk image, Downloads, or a folder you can't write to), the alert says why and offers Download. |
| Diagnostics | Settings › General › Diagnostics puts one block on the clipboard for an issue: version, macOS, chip, displays, the two grants, hotkeys, settings, and the last failure's reason. Your user name is replaced by ~; nothing from any capture; nothing is sent. |
| Nothing to notice | No Dock icon. Idle memory under 30 MB. Locant never appears in its own captures. |
Works where you work
- Agents: Claude Code, Cursor, Codex, Grok Bot, Antigravity, and anything else that takes a paste.
- Browsers: Chrome, Safari, Edge, Firefox, Brave, Dia. In Chrome, Edge, Brave, and Dia a local React page also gives its component and source line.
- Apps: the iOS Simulator, Mac apps in SwiftUI and AppKit, and Electron.
The payload is plain Markdown, so most agents take it on paste; Claude Code, Cursor, and Codex can also fetch it over MCP. What each one did, and when it was run:
| Agent | Over MCP | On paste | Tested |
|---|---|---|---|
| Claude Code 2.1.272 | Works: latest_capture answered "what did I just point at" with the element, app, and image path | Markdown text; reads the PNG from the Image: path | Sep 15, 2026 |
| Cursor (agent CLI 2026.09) | Works, after cursor-agent mcp enable locant; the IDE prompts once instead | Markdown text; reads the path | Sep 15, 2026 |
| Codex CLI 0.147.0 | Works: same answer; view_image opens the path, image blocks are never sent unasked | Markdown text | Sep 15, 2026 |
| Cursor 3.23.12, the app | The Markdown and the image: your ⌘V pastes the text, Locant adds the image | Oct 1, 2026 | |
| Codex in ChatGPT 26.928 | The Markdown and the image, the same way | Oct 1, 2026 | |
| Grok Bot 0.63.0 | Fails: stdio connectors start on the bot's own cloud computer (spawn … ENOENT); the Locant skill reads the capture on the Mac instead | The Markdown and the image, the same way | Oct 1, 2026 |
| Antigravity 2.15.0 | Not connected | The Markdown and the image, from an ordinary paste | Oct 1, 2026 |
| Gemini CLI | The snippet from Settings › Agents; untested | Markdown text; untested |
Statuses say "untested" until someone tests them. A report of what your agent did with a payload, or over MCP, is a welcome issue.
Ran it on a Mac that is not mine? The tester form
takes two minutes, and docs/rc-checklist.md lists what to try. Reports from a
Mac on macOS 15, an Intel Mac, a non-English system, or a second display are the ones still missing.
Known limitations
- Element quality follows the target app. SwiftUI, AppKit, and the iOS Simulator work well. Electron
and Chromium apps (Claude, VS Code, Slack, Chrome) build their tree only when asked; Locant asks when
you start a capture, and the tree takes from half a second to a few seconds to arrive (2 s for a React
page in Electron 45). A click that beats it waits for it, up to 4 s, instead of recording nothing. Figma,
games, and custom-drawn UIs expose little; Locant then records
element: null, says so in the payload, and still gives the agent the image and your note. - Hover picks the smallest control and sticks to it. Press Option to step to the parent.
- iOS Simulator: which app it is showing is inferred from the most recently launched simulated process. With two apps in one device, the newer one is assumed. The tree is built lazily; Locant retries for up to 600 ms before giving up. Xcode 27 shows simulators in Device Hub, which also shows physical devices: only a booted simulator there counts as the Simulator, and the app is the one on that device.
- Web pages and Electron apps: the DOM id and class list come through, and the page URL; a
localhostpage is fix mode. Tested in Chromium browsers and Electron; Safari exposes the same attributes but has not been exercised. - The component and source lines of a web element need a React development build on a local page
(
localhost,127.0.0.1,*.local), read in Chrome, Edge, Brave, or Dia: Vite, and Next.js with Turbopack or webpack. Chrome, Edge, and Brave need View › Developer › Allow JavaScript from Apple Events; Dia has no such switch and must be opened from Settings › Captures › Web pages each time it starts. Safari and Arc are not supported yet, Firefox and Claude's own Browser pane offer no way to ask, and an element a server component rendered gets the component's name without a line. - The
In sourceline is a lead, not proof. It finds strings written in the code: a label built at run time or read from your data is not found, and the line then says so or names the fixed text beside it. A button drawn with an SF Symbol reports the symbol's name where an identifier would be; Locant marks it and still looks it up. The folder is read for at most 0.8 s (8,000 source files); past that there is no line.Positioncounts what is on screen at that moment, so a list that sorts or scrolls moves it. - A menu or a window that opened from the menu bar is captured as it was when Point opened, even when it closes at the click. A standard menu (an app's File menu, most status menus) closes as the overlay opens, so it is taken as one window, without its items.
- What an app shows only on hover (a hover menu, a card, a row's buttons) stays on the frozen screen, and you can point at what it holds: Locant reads the elements near the pointer before the overlay opens. Not when the menu is more than about 600 pt from the pointer, in the first capture over Chrome or an Electron app after it starts, or when a page hides its menu with opacity alone; there the outline is of what is behind. A web element that has left the page gets no source line.
- Snap and Cut open on a normal window, or on the device's screen in Xcode 27's Device Hub; on the desktop, the menu bar, or the Dock they open on the largest element there is.
Under the hood
Locant's event tap matches its hotkeys and passes every other key through untouched; nothing is
logged. One key it also watches: when you press ⌘V in the message box of Cursor, Codex, or Grok Bot
while the clipboard still holds a capture, your keystroke pastes the text and Locant posts one paste
of its own for the image, because those apps keep only half of a capture pasted whole.
defaults write com.malikzhang.deixis completesPaste -bool NO turns that off. It never talks to the network except the release check and the update you install, and, for a local page's source lines, your own dev server, and stores nothing but its settings
and the captures you make.
How it works: the hit test, the ladder, iterations
Locant/
Resolve/
AccessibilityReader.swift owns every AXUIElement on a background actor; nothing AX-typed leaves it
ElementResolver.swift raw attributes of one node → ResolvedElement, pure, fixture-tested
RegionResolver.swift what is inside a drawn frame, which of it is primary, what is near a point
ModeInference.swift is this the user's own code? Simulator, DerivedData, Xcode project, Team ID
Capture/
HotkeyMonitor.swift double-taps and chords; one event tap serves every binding
ContextCollector.swift what the user was looking at when the hotkey fired
SelectionOverlay.swift the frozen frame, drawn from system constants
ScreenCapture.swift the cropped PNG, own windows excluded from every ScreenCaptureKit call
TextRecognizer.swift Vision, used only when the payload would otherwise be vague
Magnifier.swift Color: 15×15 native pixels at 10x, following the cursor
Payload/
MarkdownBuilder.swift Capture → Markdown, pure, derived from the JSON and never the reverse
PasteboardWriter.swift one item with PNG and text, written only after the files exist
Verify/
AutoVerify.swift when a relaunch of your app is a chance to capture the element again
ElementRefinder.swift identifier, then role and label, then the nearest same-role frame
ImageDiff.swift does the element look different? channel tolerance, changed fraction
GitFacts.swift commit at capture vs HEAD or working tree, through /usr/bin/git, read-only
Store/
FileStore.swift PNG and sidecar, nothing written until both exist
Lifecycle.swift the retention sweep; pinned and resolved captures stay
Preferences.swift UserDefaults; a fresh install works with every default
Launcher/ the ball, its spring, and the ring
Modules/ Snap, Text, Color, Cut
The hit test. Accessibility calls run on a background actor and reads are cached for 400 ms, so hover stays smooth even in the Simulator, where each read costs about 2 ms. The overlay asks for the smallest real control near the cursor and keeps it across padding, so a button stays a button as you cross its margin. Electron apps build their tree on first contact; the first hover sharpens after the tree arrives.
The ladder. Every capture reaches for the best reference it can and says which rung it got:
an element with a declared identifier, an element with only a label, a drawn frame with its contents
listed, recognized text plus the nearest labeled neighbors, and finally the image alone with a line
telling the developer how to make the view addressable next time. The agent always gets something
to grep, or an honest null.
The data contract. The JSON sidecar is the source of truth and validates against
schema/capture.schema.json; the clipboard Markdown is derived from it. Field names are platform
neutral (role, label, identifier, frame, path), never AX-prefixed, so another platform could
write the same shape.
Iterations. A Point capture in fix mode arms a watch for that app. When it launches or comes forward within a day, Locant refinds the element, captures it, and compares pixels with a tolerance that ignores a blinking caret or an antialiasing wobble. Only a real change records git facts and appends an iteration to the sidecar. Locant never commits, never installs hooks, and never writes to your repository.
xcodebuild -project Locant.xcodeproj -scheme Locant test # the tests over the pure functions; CI runs the same line
Scripting: every setting is a defaults key
Settings live in UserDefaults under com.malikzhang.deixis (the bundle identifier kept its
pre-rename value on purpose, so permissions and settings survive updates). Locant reads them at
launch, so relaunch after writing.
defaults write com.malikzhang.deixis retentionDays -int 30 # 7, 30, 90, or 0 for forever
defaults write com.malikzhang.deixis collectsIterations -bool YES
defaults write com.malikzhang.deixis checksForUpdates -bool YES
defaults write com.malikzhang.deixis ballEnabled -bool YES
defaults write com.malikzhang.deixis ballAutoHide -bool YES
defaults write com.malikzhang.deixis adjustSelection -bool YES
defaults write com.malikzhang.deixis organization -string none # none, byApp, byProject, byMonth
defaults write com.malikzhang.deixis colorFormat -string hex # hex, rgb, hsl, swiftUI
defaults write com.malikzhang.deixis colorSpace -string sRGB # sRGB, displayP3
defaults write com.malikzhang.deixis captureFolder -string ~/Pictures/Locant
Every capture is also a file: the JSON sidecar next to each PNG in the capture folder is the same data the clipboard carries, so a script or an MCP server can read captures without the app.
Build from source
Needs Xcode 26 and macOS 15 or later. No third-party packages.
git clone https://github.com/Malik1942/locant.git
cd locant
xcodebuild -project Locant.xcodeproj -scheme Locant -configuration Release build
The project signs with the developer's Apple Development identity. On another machine, set your own
team in Signing & Capabilities, or sign ad hoc on the command line with
CODE_SIGN_IDENTITY=- CODE_SIGN_STYLE=Manual. Ad hoc signatures change on every build, so macOS asks
for Accessibility and Screen Recording again after each rebuild; any real identity, including the free
Apple Development one that comes with an Apple ID, avoids that.
Releases are built by scripts/release.sh (Developer ID, hardened runtime, notarized, stapled) and
published as a GitHub release asset by scripts/publish.sh.
Troubleshooting
| Symptom | Fix |
|---|---|
| A permission switch is on but Locant still cannot capture, or the hotkey is dead after an update | macOS ties each grant to the app's signature, so a differently signed copy looks like a different app. In System Settings › Privacy & Security, remove Locant from Accessibility and Screen Recording and add /Applications/Locant.app again, or run tccutil reset Accessibility com.malikzhang.deixis and tccutil reset ScreenCapture com.malikzhang.deixis. |
| The first hover over VS Code, Slack, Chrome, or Claude is slow | Electron builds its accessibility tree when first asked, which takes up to a few seconds. Locant asks as the capture starts, and a click made before the tree arrives waits for it. Later hovers are instant. |
The payload says element: null | The app exposes no accessibility tree there (Figma, games, canvases). If the view is yours, give it .accessibilityElement() and .accessibilityIdentifier("…"); Locant points at it next time. |
| A capture says "Capture failed" | Settings › General › Diagnostics › Copy: its Last failure line names what failed and why. Every failure is also in the system log, with no file names: log show --last 1h --predicate 'subsystem == "com.malikzhang.deixis"'. Paste either into an issue. |
| A hotkey also fires a macOS shortcut | Settings › Hotkeys shows the clash. Re-record the hotkey; the defaults (⌃⌃, ⌃⌥1 to 5) are chosen because nothing else uses them. |
| No pointing hand in the menu bar | On a notched MacBook the icon hides under the notch when the bar is full. The hotkey and the ball still work. |
| The Simulator element is missed right after launch | The simulated app's tree is built lazily. Locant retries for 600 ms; hover again. |
| Rebuilt from source and asked for permissions again | Ad hoc signing. Use a real identity; see Build from source. |
Uninstall
Locant leaves nothing running and nothing in Login Items. To remove it completely:
- If Settings › Agents shows an agent as connected, click Disconnect; that removes the
locantserver from~/.claude.json,~/.cursor/mcp.json, or~/.codex/config.toml. (Or delete that one entry by hand later.) - Quit Locant from the menu bar and move
/Applications/Locant.appto the Trash. With Homebrew:brew uninstall --zap locant, which also removes the settings. - Optional. The two privacy grants, the settings, and the captures:
tccutil reset Accessibility com.malikzhang.deixis
tccutil reset ScreenCapture com.malikzhang.deixis
defaults delete com.malikzhang.deixis
rm -r ~/Pictures/Locant # your captures; keep them if you want them
The bundle identifier is com.malikzhang.deixis, the app's name before Sep 14, 2026, kept so that
permissions survive updates.
Prior art
Nothing let a human point at one element in a native Mac app and hand the result to any agent when this was written (September 2026), hence this project. Related, and worth your time:
- Codex Appshots and Claude Desktop quick entry: a whole window to one specific agent. Locant captures the element under the cursor and its crop, and puts it on the clipboard for any agent.
- EYHN/appshots: the open-source take on the same window-level idea.
- Agentation, Stagewise, Cursor Design Mode: click an element and get its CSS selector or DOM node. The same job, for web apps only.
- Peekaboo: the agent reads the accessibility tree itself over MCP. Locant is the human's half of that: the person chooses the element, the agent gets a reference.
Locant is not a screen recorder, GIF tool, or scrolling-capture tool; CleanShot X and a dozen open-source alternatives own that.
The name
"Locant" is a term from chemical nomenclature. In a compound name such as 2-methylbutane, the "2" is the locant: the number that tells you exactly which position on the carbon chain the methyl group is attached to. Without it, the name describes a family of possible molecules. With it, one molecule, unambiguously.
That is the job of this tool. A screenshot tells an agent roughly where something is. Locant tells it exactly which element, with a reference the agent can grep for. Pronounced LOH-kant, two syllables.
Locant was called Deixis until Sep 14, 2026; tags up to v0.6.1 carry the old name.
Contributing
Solo project; issues and PRs are welcome. The most useful bug report is the JSON sidecar of the capture that went wrong, plus the name of the app you pointed at.
Questions, ideas, or something you built with it go in Discussions; no bug needed.
License
MIT, see LICENSE.
https://github.com/Malik1942/locant/releases/download/v1.4.1/locant-mcp.mcpb# mcpb: https://github.com/Malik1942/locant/releases/download/v1.4.1/locant-mcp.mcpb