Skip to content

forgeplan_link

Creates a typed relationship between two artifacts. Links are how Forgeplan builds its dependency graph — they drive health reports, R_eff scoring, topological ordering, and visual graphs. The agent calls this every time it creates supporting evidence, a replacement RFC, or a child PRD that inherits from an Epic.

Category: Editing Artifacts

  • After creating an EvidencePack: link EVID-XXXPRD-YYY with relation informs so R_eff can compute.
  • When decomposing an Epic: link each new PRD back to the Epic with based_on.
  • When replacing a design: link the new RFC to the old one with supersedes (complementary to forgeplan_supersede).
NameTypeRequiredDescription
sourcestringyesSource artifact ID.
targetstringyesTarget artifact ID.
relationstringno (default: "informs")Relationship type: informs, based_on, supersedes, contradicts, refines.

Schema source: crates/forgeplan-mcp/src/server.rs::LinkParams

A confirmation with the persisted edge. The graph is updated immediately and will show up in the next forgeplan_graph / forgeplan_health / forgeplan_score call.

Example response shape:

{
"ok": true,
"source": "EVID-057",
"target": "PRD-042",
"relation": "informs"
}
{ "source": "EVID-001", "target": "PRD-001", "relation": "informs" }

With typical agent context:

Agent finished implementation, created EVID-057 with benchmark results, and now links it to the PRD so the score can turn green.

{ "source": "EVID-057", "target": "PRD-042", "relation": "informs" }

forgeplan_new (evidence) → forgeplan_update (structured fields) → forgeplan_linkforgeplan_score (now > 0) → forgeplan_activate. For Epic decomposition: forgeplan_new (epic) → forgeplan_new (prd) → forgeplan_link relation=based_on → repeat.