Skip to content
dev-centrPublic

About

Release-keyed doors for a missing harness feature

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

License Issues

Agent bus

An agent uses this catalog to drive a harness, including the harness it is already in. The command picks the door for that harness release.

People wiring an agent to an existing chat, or recording what to do when a studio removes a command, use this catalog instead of inventing a one-off each time.

Table of Contents

Names

The name is agent-bus. The same catalog is what these phrases are looking for: harness interconnect, agent interconnect, agentic interconnect, harness router, harness manager, harness talker, agent commander, and session-router (the first published name).

harness-commander is the layer for hops outside the harness MCP. It is not a second package.

Install

From the registry:

dub fetch agent-bus

From a checkout, the command is a Dub executable. If DMD is not on PATH, pass --compiler=ldc2.

dub build --compiler=ldc2

Use

Resolve the door for a Cursor release. A version that has no profile uses the newest older one, and the command prints the fork-and-pull-request checklist.

dub run --compiler=ldc2 -- resolve --app cursor --version 3.29.15 --operation prompt-existing-desktop-chat

layer=mcp means the harness’s own MCP carries the action, and that MCP may route it inside the harness. layer=harness-commander means the hop leaves that MCP pattern: a CLI wrapper, a hack profile, or the warned state-database write.

Resume of a CLI session is a harness-commander hop:

dub run --compiler=ldc2 -- resolve --app cursor --version 3.29.15 --operation resume-cli-session

The state-database writer is the last door. It refuses a live Cursor database unless you pass both --worst-case and --i-understand. It inserts a user bubble and leaves the conversation blob unchanged, so it does not start a generation.

ACP door

An acp door speaks the Agent Client Protocol to any agent that serves it on stdio. The profile names the launch command in acp_launch. agent-bus is the client: it sends initialize, opens or loads a session, sends the prompt, answers permission requests (--permission, default reject), and cancels a turn that runs past --timeout.

Profiles with ACP doors today: cursor 3.33.23 (cursor-agent acp) and agy 1.5.21 (agy acp, the Antigravity CLI).

agent-bus --profiles profiles acp-probe --app cursor --version 3.33.23 --try-session
agent-bus --profiles profiles submit --app cursor --version 3.33.23 --operation acp-session-prompt --chat-id <session> --cwd <folder> --text "Continue."
agent-bus --profiles profiles submit --app cursor --version 3.33.23 --operation acp-session-list
agent-bus --profiles profiles submit --app cursor --version 3.33.23 --operation create-chat --run

acp-probe sends only initialize (and an empty session/new with --try-session). It never sends a prompt. A cli door prints its command unless --run is set. --dry-run sends nothing.

Model and prose style

--model SLUG picks the model on the harness that agent-bus drives. On an ACP door it calls session/set_model with the id the agent listed for that family (Cursor lists exact ids such as gemini-4-neon[context=300k,reasoning_effort=high], so gemini-4-neon-high maps to that entry). On a CLI door it adds the profile’s model_args.

--model also puts the per-model prose brief ahead of --text. The brief comes from catalogs/model-style-profiles.sdl in dev-centr/agent-rules (found through AGENT_RULES_PATH, CODE_ROOT, or code), with an embedded copy as the fallback. It is the same brief dev-centr/harness writes when it spawns a node. --style MODE picks another prose mode and --style none sends the text as given.

agent-bus --profiles profiles style-brief --model grok-4.7-high
agent-bus --profiles profiles submit --app cursor --version 3.33.23 --operation acp-session-new --model gemini-4-neon-high --cwd <folder> --text "Write the launch post."

Quota resume

agent-bus quota-resume re-prompts sessions that stalled when a usage window ran out. The queue is a JSON5 registry checked against schemas/quota-resume/quota-resume.schema.json. Start from schemas/quota-resume/quota-resume.example.json5.

agent-bus --profiles profiles quota-resume list
agent-bus --profiles profiles quota-resume check
agent-bus --profiles profiles quota-resume run --dry-run
agent-bus --profiles profiles quota-resume run

Schedule run every 15 minutes. Grok Bot has no external door, so its entries are reported and resumed by a Grok Bot routine instead. See docs/design/quota-resume.adoc.

Profiles

Add profiles/<app>/<version>.json with mcp, acp, cli, hack, and worst_case for each operation. A profile with acp doors also sets acp_launch, and may set acp_auth_method when the agent asks for authenticate after its own CLI login. Read removed-features.md before adding a door.

tools/acp-fixture/ holds a stand-in ACP agent and its profile for offline checks: agent-bus --profiles tools/acp-fixture/profiles acp-probe --app fake-acp --version 1.0.0 (it runs python3).

Built with

Runtime
  • D and Dub

  • LDC when DMD is not installed

  • d2sqlite3 and the SQLite library it ships, for the last-resort composer write

Changelog

About

Release-keyed doors for a missing harness feature

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages