Lokyr
Documentation

AI agents in the terminal

On this page

Lokyr knows the AI coding agents that run in its panes, as Claude Code, Codex, Gemini CLI or Aider, and shows on each tab what its agent is doing: at work, waiting for you, or done. You see at a glance which of your agents needs you, across every tab and window, with nothing to set up.

What a tab shows

Lokyr recognizes an agent by its program in the pane's foreground: Claude Code, Codex, Gemini CLI, OpenCode, Aider, Cursor's agent, Copilot, Amp, Goose, Qwen, Crush and Droid, as [agents] programs lists them, and any program that you add there; and any program that tells its status, as below. Its tab then shows one of three marks:

A tab of several agents shows the most urgent: one that waits before one at work, and one at work before one done.

Finding the agent that needs you

Programs that tell their status

Platforms: macOS · Since 1.3

A program can tell its state exactly, of OSC 7501, the Program Status Protocol, as Claude Code and Codex do once Lokyr answers the protocol's query. Lokyr then shows what the program tells, whether [agents] programs lists it or not, and guesses nothing of its output, its quiet or its bell:

A program that runs several tasks, as an agent's subagents, tells each of its own id: the tab shows the most urgent, a task that waits before one that failed, one that failed before one at work, and of two alike the program's own before its tasks'. The agent goes by the name that the program tells, as claude-code, rather than its executable's.

What the program told of its work, its waiting and its idle goes as it leaves the foreground or as the shell's next prompt begins; what it did or failed stays until you see it. An empty [agents] programs turns these off too.

Claude Code's exact state

Without any setup, Lokyr reads an agent's state from its output, its quiet, its notifications and its bell, or, of a program that tells its status, from what it tells. For a Claude Code that does not tell it, it can know exactly too: Lokyr › Install Claude Code Integration… adds hooks to Claude Code's settings, asking before it changes each of its configurations and keeping a copy of the file as it was. Claude Code then tells its tab when you submit a request, when it asks for a permission, when it ends its answer, and when an error stops it, which shows as a red mark of its own. Of a Claude Code that tells its status too, the newer of the two holds.

The hooks do nothing in another terminal. To take them away, remove the groups whose commands hold lokyr-agent: from the hooks of Claude Code's settings.json; every detail is in the config guide.

Opening what an agent points to

Agents, compilers and tests print paths with a line, as src/main.rs:42:7. Hold ⌘ over one and click: Lokyr opens the file at that line in the editor that [links] editor names, as VS Code, Cursor, Windsurf, Zed, Sublime Text or TextMate.

Settings

The [agents] section of the config tunes it all, each key as the config guide tells:

[agents]
programs = ["claude", "codex", "gemini", "aider"]   # the agents' programs; an empty list turns this off
done-after = 3                                       # seconds of no work before an agent is done
notify = true                                        # the notifications while its window has no focus
dock-badge = true                                    # the Dock's count of the agents that wait

Later, perhaps: Lokyr as an MCP server

Lokyr could become a server of the Model Context Protocol: an agent would start lokyr +mcp and open a pane of its own, run a command in it, and read its output and its exit code, within its own panes, any other after you confirm. It is put off: whether it is worth it, as agents run commands of their own shell, is decided later, as the roadmap tells.