[ 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:

GradeMeaning
VerifiedGrist re-ran the checks and they passed over at least one changed file. The lesson enters verified memory with the actor’s provenance.
AttestedThe 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.
FailedThe 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:

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

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.