[ docs · concepts ]
Actors: the universal interface
Grist is a layer under the coding agents you already use. An external agent, Claude Code, Codex, OpenCode, Hermes, OpenClaw, Cursor, Grok Build, or Antigravity, registers as an actor, and any agent that speaks the Agent Client Protocol (ACP) can register by command alone: Grist drives it in the same conversations as its own loop, grades every outcome itself, and carries the learning between actors. The agents are replaceable; the memory, the grading, and the audit trail are Grist’s.
Registering an actor
An actor is an agent definition in the team filesystem with an adapter block in its frontmatter. The block declares the tier (local_cli), the driver, the cost class, and the capability tags the actor offers:
---
description: Claude Code, driven by Grist
adapter_tier: local_cli
adapter_driver: claude_code
adapter_cost_class: subscription_sunk
adapter_capabilities: [code.edit]
---
You are working inside a Grist conversation. Follow the handoff packet.
Publish it like any other team object, then confirm what Grist can see:
grist team-objects publish claude-actor.md --kind agent_definition
grist actors detect # which known agent CLIs are installed here
grist actors list # which actors are registered
actors detect reports presence and version only. It never reads another tool’s credentials or login state; each actor runs with its own login, on your machine, exactly as it would without Grist.
Running one
grist run --actor claude-actor "Fix the flaky upload test" --format json
grist run --needs code.review,code.edit "Review the sync change"
grist conversation show <id> # items are tagged with the actor that ran them
An explicit --actor runs that actor for that run. On a plain run with actors registered, the gate decides (Auto, below). External runs are recorded through the same session and conversation machinery as native runs, with the actor’s name, driver, tier, and cost class in the session metadata.
Any ACP agent
The actor list is not a fixed list. Any agent that serves the Agent Client Protocol over stdio can register with the generic acp driver; the registration’s command is the whole integration:
---
description: An agent Grist has never heard of, over ACP
adapter_tier: local_cli
adapter_driver: acp
adapter_command: my-agent --acp
adapter_cost_class: subscription_sunk
adapter_capabilities: [code.edit]
---
Grist spawns the command in the run’s directory and speaks the protocol: initialize, a session in that directory, one prompt, and the streamed reply folded into the run record. The session id, usage, and cost in the record are the ones the agent itself reports. Antigravity runs this way too, through its own agy acp surface, under the antigravity driver.
Two postures are worth knowing. Grist serves the agent no filesystem or terminal of its own: the agent works with its own tools, in the directory it was started in. And because a Grist run is unattended, a permission request from the agent is answered as cancelled rather than left hanging; an agent that needs a human to approve its tool calls mid-run is not a fit for this driver.
Every outcome is graded by Grist
No actor grades its own homework. When an external run finishes, Grist compares the repo before and after, then re-runs the repo’s own check (the same verify command native runs use) when there is a real change to judge:
| Grade | Meaning |
|---|---|
| Verified | Grist re-ran the checks and they passed over at least one changed file. The lesson enters verified memory with the actor’s provenance. |
| Attested | The agent reported success but Grist could not re-check it (no check available, or nothing changed). Kept in a separate store, shown to later actors under a heading that says it is unverified, and never served as verified memory. |
| Failed | The post-run check failed. Recorded at full strength as a failed approach, even when the actor claimed success, so the next actor sees it and skips it. |
There is no pre-run baseline: a check that fails after a run grades the run failed, and the record says the check failed after the run, not that the actor caused the breakage.
Handoff packets
When work moves between actors, including from Grist’s native loop to an external one, the receiving actor gets a handoff packet assembled for that run: the goal, the decisions made so far, the artifacts, the code map snapshot with its commit, the recalled verified memory, and the failed approaches to avoid. Attested material rides along only under its own clearly labelled heading. The packet is stored with the run, so the transfer itself is auditable, and it is delivered through each driver’s real instruction channel where one exists, never by overwriting the agent’s own config files.
Gate v2: routing between actors
The gate’s model routing is unchanged. Above it, an actor scoring pass picks who runs. Hard eligibility comes first: the actor must have a runner, its CLI must be detected on this machine, and it must declare every capability tag the task requires (--needs; without it, the tag filter is neutral). Eligible actors are then ranked by, in order:
- Usage limits. An actor whose latest verified outcome was a usage-limit failure is demoted below all others until a later verified success clears it.
- Verified track record. Verified successes minus verified failures, scoped to this repo.
- Cost class. Local and free first, then subscription (already paid for), then metered API. The native actor is honestly ranked as metered, and a metered-only win says so in its reason.
- Attested count, as a weak tiebreak only. It never outweighs a verified difference.
Every decision, Auto, pin, or explicit, is appended to a local decision log with the candidates considered and a one-line reason. Read it with grist actors decisions. A conversation can be pinned to one actor with grist conversation pin <id> --actor <name>; a pin wins over Auto absolutely, and an explicit --actor still overrides the pin for a single run.
Team actor policy
A team can publish an actor_policy object (one per container) that denies named actors and sets a ceiling on total recorded metered spend. Policy is the gate’s first filter, and the run spine refuses a denied or over-cap actor before anything spawns, on every surface: Auto, explicit, pin, and unattended runs claimed from listeners and bots. Policy changes require the account holder’s own credential and team owner or container admin rights, and every refusal leaves a record. Policy is governance plus audit: it binds Grist’s own surfaces, and it is stated plainly in the code that it is not a sandbox against the owner of the machine.
Honest limits
- Actors run with their own logins and their own tool calls. Grist starts the CLI, hands it the packet, and grades the result. It does not mediate the external CLI’s internal tool calls, so an external actor’s mid-run permission prompts are that tool’s own, not Grist’s inbox.
- Cost is recorded only when the actor reports it. Some actors report tokens but no price; Grist records the tokens and leaves the cost absent rather than inventing a number. Subscription actors carry no Grist-visible spend at all.
- Quota is labelled unknown. Grist does not pretend to know an actor’s remaining plan quota. The only quota fact the gate uses is a recorded usage-limit failure.
- Capabilities are declared, not emulated. An actor is only ever offered work matching what its registration declares; Grist does not fake a capability a driver does not have.
- ACP runs on the protocol’s standard surface. Modes and per-agent configuration options are the agent’s own; Grist does not set them. An ACP agent that reports no usage leaves usage absent in the record, and cost is recorded only when the agent reports it in US dollars.
Registrations and policy sync through the team filesystem; conversations stay local, as they always have. See the MCP gateway for how the same memory and skills are served to agents that Grist does not drive.