Guided coding (guided_coding)
Agentic Recipe. Frontier driver (Cursor MCP) answers short engineering
guidance; local openai_local inference classifies oneshot vs todo list,
implements under workspace tools with pre/item/post acceptance, then an
audited infer-accept tile gates quality (RDG-aligned). Token-heavy coding
stays off the Cursor account.
Surface |
Value |
|---|---|
Catalog id |
|
Module |
|
Host Config |
|
Substrate |
|
Owning stories |
|
When to use
Cursor (or another MCP client) should guide approach/constraints only
Local OpenAI-compat models should edit files and run tests in the project tree
Instructions may be a oneshot or an ordered list (with conflict refine + post-list AC)
Quality gate needs distinct decide/QA principals + frozen criteria (not only
verify_repair)
Soft points
Name |
Kind |
Role |
|---|---|---|
|
guidance (required) |
Frontier engineering direction ( |
|
budget |
Bound per-item tool loops and todo count |
|
policy |
Criteria forwarded to plan + |
|
policy |
Audit tile principals (must differ) |
Optional plan refinement (scope_refinement / list_refinement) lives on the
tiled instruction_todo_plan and is requested dynamically when needed.
Before the Completer runs, local work preflights verify_runs. If they
already pass, it reports already_satisfied / changes_expected=false and
skips implementation (Python validate is the proof). Stories that assert
written_files should use includes_if gated on changes_expected.
After coding verify_runs / work-item failure, local work may restore the
pre-burst workspace, retry once with a consolidated restore-and-finish brief,
and if that still fails yield decompose guidance so the frontier driver can
clarify (see
Instruction todo plan).
Node components
Parent graph node |
Components |
|---|---|
|
|
|
|
|
|
See Node components, Instruction todo plan, and Audited infer-accept.
MCP wiring
Inference endpoints belong on the Cursor MCP server env block (not a required
project .env). Set MECHA_MCP_HOST=project_coding so the stdio adapter builds
ProjectCodingConfig. See Durable graph generators.