Copy-paste handoff works once. The spec keeps moving: a constraint lands in review, an edge case gets sharpened, a PM asks for one outcome to change. By the time the agent runs, the pasted prompt describes a spec nobody holds anymore. With the MCP server connected to a workspace, the agent reads the intent at the moment it runs, sees the judgment a person attached to that exact revision, and hands its pull request back to the same record.
This is the connected-workspace flow. For the keyless version, where the Pathmode server works locally with intent.md, start with Draft your first intent in your repo and Run a preflight before your agent builds. Your coding agent may still send context to its own model provider. Every tool below that reads the constitution, handles PM requests, or grades a pull request needs a workspace API key.
The input
A repo whose intent.md syncs to your Pathmode workspace, and a workspace API key for the agent. The file stays the repository's authority for what to build. The workspace holds what a file cannot: evidence, the constitution, open PM requests, and who authorized which revision.
The flow
1. Install once, connect once. In Claude Code:
/plugin marketplace add pathmodeio/claude-plugin
/plugin install pathmode@pathmodeAdopt the repository’s saved intent using repository setup, then follow the connection instructions for your client. Adoption keeps the workspace binding in .pathmode/config.json and credentials separately under ~/.pathmode/workspaces/. For workspace API access without adoption, use the MCP setup reference; configuring an API key alone does not adopt an existing intent.
2. Preflight before anything else. The agent's first call is check_intent_readiness. It resolves the intent.md bound to the repository the client is working in, and when it cannot identify the repository it refuses to guess. Six deterministic gates, no model call, the same spec always gets the same verdict. A failing verdict names the exact blockers. The agent repairs them one question at a time, or you accept the named risk explicitly and that acceptance is recorded in the spec as a decision. Readiness is a property of the spec, not permission to build.
3. Read the full context, not a blob. With a passing verdict, get_agent_prompt returns the execution prompt for that intent: objective, outcomes, constraints, edge cases, verification checks, the constitution rules, and the evidence the spec cites, grouped by whether a person has reviewed it. At the top of the prompt, before any instruction, sits the state that decides whether the agent may proceed at all.
4. Stop for judgment. Two things can be waiting there. Open PM change requests: a person asked for a specific change to a specific revision of the spec. The agent applies each one to intent.md deliberately, or rejects it with a concrete reason; it never builds around one. And the authorization itself: a spec the agent drafted stays pending until a signed-in person authorizes that exact revision, and a material edit to the body, including applying a PM request or recording accepted blockers, clears the authorization and asks for it again. The agent cannot clear this gate; the authorization endpoint refuses API keys by design. A passing preflight does not substitute for it, and accepting blockers does not bypass it.
5. Implement and hand back. Inside the authorized scope, the agent builds, runs the spec's verification checks, and names the intent where the merge can find it: branch intent/<id>, or pathmode:<id> in the pull request body. If building reveals the spec was wrong, propose_spec_change records a correction for a person to accept; pause the affected work until the correction is applied, reviewed, and authorized. Continue only with unaffected work that still fits the agreed intent.
6. Let the diff be graded. verify_implementation with the pull request URL makes Pathmode read the diff from GitHub and grade every outcome, constraint, constitution rule, and edge case against what the code shows, with citations into the diff. An advisory review also runs as the pull request opens and changes, to surface possible drift before merge. These reviews are advisory and do not block a merge or stop an agent. On merge, the same grader moves the intent to shipped and records what the verdict rested on. The agent does not flip the status itself when a PR is involved; an intent marked shipped by hand is one the merge has less to say about.
The output
- A run that starts from the spec as it stands: the agent reads at run time, after the last edit, instead of from a copy
- A build that waited for a person: the revision the agent built against is the one a human authorized, and the record shows it
- Rules in context every run: the constitution travels with the prompt instead of living in someone's memory, and the grader checks the diff against it
- A closed loop: PM requests, corrections, the graded verdict, and the implementation note land on the same record the next reviewer opens
- Scoped access: the agent sees the workspace its key is authorized for, and it can read the gate but never open it
Why this beats pasting the spec
A pasted spec is a photograph. The MCP connection is a window. The difference shows up the moment the spec changes between hand-off and execution, which on any spec worth reviewing it always does. Revision-bound authorization is what gives the window substance: the agent sees more than the current spec, it sees whether a person has stood behind this version of it, and it stops when nobody has.
Try it yourself
- Install the Pathmode MCP server or Claude Code plugin, adopt the repository intent, and connect your client
- Ask the agent to "preflight the repo intent and implement it"
- Watch it call
check_intent_readiness, thenget_agent_prompt, and stop if authorization is pending - Authorize the revision in Pathmode; the agent builds and opens a PR that names the intent
- Have it run
verify_implementationagainst the PR, inspect the advisory result alongside your tests, then measure the agreed outcomes after shipping
Related
Bring this workflow to your team.
Keep the evidence, decisions, and follow-up work together in your product.
Start with Pathmode