Repository navigation
Releases
Locant 1.4.1
- Agents reach for Locant when you say "this". The MCP server's instructions and its four tools now say when to call them, not only what they return: when you refer to something on screen the agent can't see ("this", "that button", "here", in any language), or ask to change part of an app or a page without giving a screenshot or a file. The agent fetches your latest capture before it asks you for a screenshot, and checks how old it is. Agents that load tools only when they need them, such as Claude Code with tool search, now find Locant's tools from those words.
- Locant is in the official MCP Registry as
io.github.Malik1942/locant, so the directories and agent galleries that copy the Registry list it too. Each release carrieslocant-mcp.mcpb, a small bundle that starts the server inside your installed Locant; you still install the app itself.
Download Locant.dmg and drag Locant to Applications; over an older copy, the permissions carry over. Or brew install Malik1942/locant/locant.
Locant 1.4.0
- Locant installs its own updates. The update alert's Install and Relaunch downloads the new version from GitHub, checks that it is signed by the same developer and notarized, puts it in place of the old copy, and reopens Locant. Your permissions carry over, and the old copy goes to the Trash. Where Locant can't replace itself (opened from a disk image or Downloads, or from a folder you can't write to), the alert says why and offers the browser download as before. Copies older than this version update through the browser one last time.
- Homebrew leaves Locant to update itself. The cask now says
auto_updates true, so a plainbrew upgradeskips Locant from here on. To get this version from 1.3.1 or earlier, use the update alert's Download once, or runbrew upgrade --greedy locant.
Download Locant.dmg and drag Locant to Applications; over an older copy, the permissions carry over. Or brew install Malik1942/locant/locant.
Locant 1.3.1
- A capture says where the element is in your code. In a fix capture, Locant reads your project folder while you type the note and looks the element's identifier and label up as strings in your source. The payload gains a line such as
In source: Oryne/Features/Library/LibraryView.swift:543 (the only file in the project with the string "Recent"), in place of the advice to grep. When several files hold the string, the one that also holds other text from the capture is named first; when a menu row's words are defined in one file and drawn in another, both are named; when the text is data, the line points at the fixed text beside it; when nothing matches, it says so. Measured on eleven real captures of an iOS app, an agent needed a quarter fewer tool calls to find the code. - A translated label finds its key.
.xcstringsand.stringsfiles in the project are read, so a button that reads "添加想法" on screen is looked up as"Add a thought", and the line names the catalog. - A local page without component lines still gets a file. Where the browser cannot be asked or the page is not React, the DOM id and the classes that are rare enough to be handles are looked up in the dev server's folder.
- A row says which row it is. An element with siblings that line up with it gets
Position: 3 of 12 alike on screen, top to bottom. It counts what is drawn at that moment, and the line says that it is not the item's place in the data. - An SF Symbol's name is no longer passed off as an identifier. SwiftUI gives a button drawn with
Image(systemName: "gearshape")the identifiergearshape. The payload now marks it as a symbol name. - Device Hub's own window is gone from the path. The Path line of an element in a simulated device no longer lists the Simulator's or Device Hub's window, which said nothing about your app.
- Your own Electron app. A first capture in an Electron app that had just started could record no element at all, because the app takes about two seconds to build its accessibility tree and Locant waited half a second. Locant now asks for the tree as the capture starts, and a click that beats it waits for it. In the dev server's folder, an element with only utility classes (Tailwind) is found where its whole class list is written on one line, and a text node is looked up by the element that holds it: the payload names that element on an
Inside:line. - A page element near the top of the page keeps its address. For an element six levels or fewer below the page's root, in a browser or in Electron, Locant missed the page's URL, so a
localhostpage was not treated as your code. - A string that is not in the project now says a search for it will find nothing, and asks the agent to say so rather than guess.
- A frame drawn on a web page now has its
URL:line, and a page with no element is no longer advised to add.accessibilityElement(). - What shows on hover stays in the picture. Point, Snap, Text, and Cut freeze the screen, but the overlay came up first and the picture was taken a moment later. By then the overlay had taken the mouse from the app underneath, so a hover menu, a tooltip, or a row's hover buttons had already gone, and the frozen screen showed the page without them. Now the picture is taken first and the overlay opens over it. The dim appears a little later than it did, about a tenth of a second, once the picture has arrived.
- And you can point at what it holds. The frozen screen showed the hover menu, but the outline and the ⌥ levels came from the app as it is now, with the menu closed: you got whatever was behind it. Locant now also reads the elements near the pointer before the overlay opens, and uses that reading wherever the app has since dropped what the picture still shows. A click, ⇧ click, ⌥, and a drawn frame all work inside a hover menu or card. Not yet: a menu more than about 600 pt from the pointer, the first capture over Chrome or an Electron app after it starts (its tree is not built yet), a menu a page hides with opacity alone, and the source line of a web element that has left the page.
Download Locant.dmg and drag Locant to Applications; over an older copy, the permissions carry over. Or brew install Malik1942/locant/locant.
Locant 1.3.0
- A web element names its component and source line. On a page your dev server serves (
localhost), a Point capture in Chrome, Edge, Brave, or Dia now adds what Claude's Browser picker shows:Component: Card in Grid › Library, the component's props,Source:with the file, line and column of the element's own JSX, andRendered at:with where the component is used. It reads React's development build, with Vite and with Next.js (Turbopack or webpack). Allow each browser once in Settings › Captures › Web pages: Chrome, Edge, and Brave also need View › Developer › Allow JavaScript from Apple Events, and Dia, which has no such switch, is opened from that row. The prompt from macOS never appears in the middle of a capture, pages from anywhere but your own Mac are never asked, and the page fetches nothing: Locant reads the source maps from your dev server itself. Safari, Arc, and Firefox are not supported yet.
Download Locant.dmg and drag Locant to Applications; over an older copy, the permissions carry over. Or brew install Malik1942/locant/locant.
Locant 1.2.0
- The ball waits for you on a first launch. It tucked into the edge two seconds after it appeared, while the help page that had just opened said to click it. Now it stays out, whole, on the right edge until your cursor comes near it or you press it; from then on it tucks after two seconds, as before. A ball you have already moved is unchanged.
- The menu shows ⌃⌃. Point's item read "Point" beside ⌃⌥1, while the help page and the README taught ⌃⌃. Now it reads "Point (⌃⌃)" beside ⌃⌥1, the help page names both keys and says "Double-tap Control" in words, and the README gives both in the same order.
- Recapturing says what it does. Recapture when your app changes is on by default: after you point at an app you build, Locant captures that element again when the app comes forward and keeps the image if it changed. Its first sign was an "After #1" toast you never asked for. The first one now reads "Your app changed; Locant captured it again" and says where to see it, the switch in Settings › Captures explains itself when you hover over it, and the help page has a Before & after row.
- A failure leaves its reason. "Capture failed" still shows for a second, and why is now in the system log (
log show --predicate 'subsystem == "com.malikzhang.deixis"') and in a Last failure line in Settings › General › Diagnostics: a Locant error by name, any other by its domain and code, never a file name. Recapturing's silent failures are logged too. - Closing Settings while a hotkey recorder listens no longer leaves the hotkeys dead. A recorder left running when its window closed, hid, or went behind another kept the real hotkeys paused and ate every key typed into a Locant window, the overlay's note field included, until Esc happened to be pressed in one. A recording now ends with its window.
- The hotkey takes hold as soon as Accessibility is granted. On a first launch the grant comes after Locant has started, and until a relaunch a chord fired Locant and still reached the app in front (⌃⌥2 also reached Xcode). Locant now notices the grant and puts its event tap in place.
- A double-tap is two bare presses. ⌃A then ⌃E within 350 ms in a terminal used to open Point; a key between the two presses now ends the pair.
- An app that does not answer no longer holds the overlay. Each accessibility message to a hung app waited the system's six seconds, so the overlay could take many seconds to appear and the hover froze over it. A message now waits one second at most, and an app that timed out is left alone for three seconds, so the cost is one wait per hover rather than one per attribute.
- The image path is the first line of every capture. A reference capture (someone else's app, a live site) opened with your note and put the image path under it, while the MCP server, the README, and the Locant skill all said the path came first. Now both modes read the same way: the image path, the app, the element, and the note last, so an agent that gets only the text opens the PNG from the first line.
- A reference capture no longer tells the agent to edit the app you pointed at. Where an element has no identifier, the payload still says so; the advice to add
.accessibilityIdentifier(…)or anidso the next capture is exact now appears only for a fix, where the code on screen is yours. - A sidecar without
iterationsis read. The schema never required that key, but the MCP server refused a capture that lacked it and left it out oflist_capturesandget_capturewithout a word. Every key the schema marks optional may now be missing from a sidecar. CI checks three sidecar fixtures against the schema on every push. - Connect touches only the one server, and never a file it should not. A symlinked
~/.cursor/mcp.jsonor~/.codex/config.toml(a dotfiles checkout, say) used to be replaced by a plain file; now the file the link names is edited in place, and a copy of it as it was,<name>.locant-backup, is kept beside it before each rewrite. Claude Code is connected only through itsclaudecommand, now also found where your login shell finds it (nvm, fnm, volta); when there is none, the row shows theclaude mcp addcommand to paste instead of writing~/.claude.jsonbehind Claude Code's back. In Codex's file,[mcp_servers."locant"], a header with a comment after it, andlocant = { … }under[mcp_servers]are recognised, so Connect replaces them instead of appending a second table Codex refused to parse; a form Locant cannot rewrite says so, and a table without acommandno longer reads as connected. A copy of Locant running from the dmg or from where macOS opens a downloaded app is refused with "Move Locant to Applications first", since that path dies with the eject. And a capture an agent resolves, or that gains an iteration, keeps its Finder tags and its pin. - A drawn frame reads only the window it was drawn on. A window of the same app that was minimized still reports the frame it had on screen, so its links and headings could fall inside a frame drawn over another page and mark empty parts of it. The frame now reads the window it was drawn on, and never a minimized one.
- The first-launch sentence for Screen Recording says macOS offers Quit & Reopen. It used to read as if Locant would relaunch itself, which it never did.
Download Locant.dmg and drag Locant to Applications; over an older copy, the permissions carry over. Or brew install Malik1942/locant/locant.
Locant 1.1.0
- Menus and menu bar windows can be captured. The screen now freezes when Point, Snap, Text, or Cut opens, and the image is cut from that frozen screen. A window that opens from the menu bar used to close at your click and come out as wallpaper; now it comes out as you saw it, and you can still pick a control inside it. A standard menu closes as soon as the overlay opens, so it is taken as one window. Clicking the ball while a menu is open no longer closes the menu.
- The note grows with what you type. The box under the element was one line; now it adds a line as the note wraps or when you press Shift-Return, up to eight, then scrolls. The hint at its right is gone: in its place, a Return button copies and an × cancels, with no words to read.
- Point lands on the shape you see. A capsule, card, or panel whose edges are drawn on screen is now found there, even when the app does not expose it to accessibility, as SwiftUI often does not. Point into its padding and the outline takes the whole shape; ⌥ from a button inside steps to it; the payload lists what it holds. Where a shape shows no clear edge, nearby elements still group as before, now inside small containers too.
- The iPhone screen in Device Hub, as you see it. Pointing at the floating tab bar takes the tab bar, not the card behind it, and ⌥ from a toolbar button steps to the buttons beside it instead of the whole screen. A card or header padded out to its tap target is outlined and captured as drawn. Where an app merges a card's texts into one element, or a tab bar names none of its tabs, Point reads the lines of text on the screen and lands on the one under the pointer, labeled with its text; ⌥ then takes the card. English text is read. Chinese is read too, so far checked only on test images, not in a real app. Text in kana or Hangul (Japanese and Korean) is not read yet; Japanese written only in kanji is read as Chinese.
- A Mac app you built gets its Project line however you open it. Opened from Finder, the Dock, Spotlight, or
open, or run from Xcode with the debugger off, an app built into a symlinked DerivedData (toDerivedData.noindex, say) or with-derivedDataPathoutside the project was taken for someone else's app: no Project line, so the agent was not told which folder to change. Locant now finds the project from the folder the app was built into, wherever that is. - The Project line names the build on screen. When two checkouts of one app were building side by side (two worktrees, say), a simulator capture named whichever had built last, not the one the simulator was running, and the line under it told the agent to change that copy. Locant now reads the folder from the running build itself. When it cannot tell (a build without debug symbols) and the app's builds on this Mac come from more than one folder, the capture has no Project line rather than a guess.
Download Locant.dmg and drag Locant to Applications; over an older copy, the permissions carry over. Or brew install Malik1942/locant/locant.
Locant 1.0.1
- Stuck screen capture is fixed from Locant. When the macOS process behind screen capture stops answering, every capture used to say "Capture failed", even after relaunching Locant. Now Locant says what is wrong, offers Restart Screen Capture, and opens the same action again. Point stops right at the click instead of after you type the note.
Download Locant.dmg and drag Locant to Applications; over an older copy, the permissions carry over. Or brew install Malik1942/locant/locant.
Locant 1.0.0
Locant 1.0. Point at a button on your Mac, in an iPhone app in the Simulator, or on a web page, say what should change, and paste it into your coding agent: it gets the element's role, identifier, frame, and path with a picture, and goes to the right code. From this version on, the capture format (schema/capture.schema.json, schemaVersion 1) and the MCP tools (latest_capture, get_capture, list_captures, resolve_capture) stay compatible; a change that breaks either will be a new major version.
- Settings say less. Every row is a title and a control: the descriptions and footnotes are gone, the permissions show only when one is missing, and an agent that is not connected shows just Connect. Point's two hotkeys share one row, and Clear appears only while you record a key (⌫ clears too). Renamed: Trackpad taps is Haptic feedback, Collect iterations is Recapture when your app changes, Keep images is Keep captures. The window is one compact width, and each tab is as tall as its rows. My Apps adds an app with Choose… or, for a Simulator-only app, a bundle ID in a small alert. In the menu bar, Capture is now Point. The help page is one short line per row.
- The ball starts high on the right. On first launch it appears on the right edge an eighth of the way down the screen, below the menu bar's icons, instead of at the bottom right, and tucks into that edge there. A ball you have already moved stays where you put it.
Download Locant.dmg and drag Locant to Applications; over an older copy, the permissions carry over. Or brew install Malik1942/locant/locant.
Locant 0.9.2
- A paste into an agent arrives whole. The one clipboard item Return writes reached most agents in half: Cursor and Grok Bot kept the image and dropped the note and the identifier, Codex kept the text and dropped the image. Now, when you press ⌘V in the message box of Cursor, Codex, or Grok Bot, your own keystroke pastes the text and Locant adds the image right after; you choose where a capture goes by pasting it there. Your key is never held or replaced, the clipboard ends as Return left it, and
defaults write com.malikzhang.deixis completesPaste -bool NOturns this off. Paste into your agent, still off by default, does the same after Return for the agent you used last, Grok Bot included: the text, then the image, into the message box and never into a code editor. Locant still never sends. - The ball rests at the bottom too. Besides the left and right edges, it tucks into the bottom of the screen beside the Dock, never on or behind it, and far enough from the Dock's ends that reaching for them does not wake it. Where it tucks is its home: coming near brings it out right there, instead of back to wherever it was before. While you drag it toward an edge, a faint ghost shows where it will tuck; flick it at an edge and it flies there and tucks.
Download Locant.dmg and drag Locant to Applications; over an older copy, the permissions carry over. Or brew install Malik1942/locant/locant.
Locant 0.9.1
- Xcode 27. The simulator now shows in Device Hub instead of Simulator.app. Pointing at an app there is fix mode again, and the payload names the device, the app, and its project; a physical device in Device Hub is reference mode. Snap and Cut on a simulated device open on its screen rather than the whole Device Hub window.
- A DerivedData folder that is a symlink no longer loses the Project line for simulator captures.
- The Project line says what it is for. Under
Project:, the payload now says that folder built the app on screen, and that an agent working in a different checkout of the repo (another worktree or clone) should change the code there or ask which copy to change. Without it, agents in another worktree often found a look-alike in their own copy and changed that. In a 40-run test with the app on screen built from another worktree, Locant runs changed the wrong copy 0 times in 20 with this line, against 9 in 20 without it. The Locant skill follows the same rule. - The hover names what you see. An app with a transparent window over the screen (Wispr Flow keeps one down the left side) no longer answers for what is under it: its menu bar or a button of its own hidden window used to stand in for the element, so a Simulator or Device Hub screen read "no element info" or the other app's control.
- Option always moves the outline. Containers that share one rectangle are one step: in the Simulator, Device Hub, and web pages, several presses used to leave the outline where it was.
- Snap and Cut's top rung is the window in apps whose content fills the whole window, such as Device Hub, and reads
window · Device Hubinstead ofgroup.
Download Locant.dmg and drag Locant to Applications; over an older copy, the permissions carry over. Or brew install Malik1942/locant/locant.