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
When an agent calls this
Section titled “When an agent calls this”- After creating an EvidencePack: link
EVID-XXX→PRD-YYYwith relationinformsso 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 toforgeplan_supersede).
Input parameters
Section titled “Input parameters”| Name | Type | Required | Description |
|---|---|---|---|
source | string | yes | Source artifact ID. |
target | string | yes | Target artifact ID. |
relation | string | no (default: "informs") | Relationship type: informs, based_on, supersedes, contradicts, refines. |
Schema source: crates/forgeplan-mcp/src/server.rs::LinkParams
Returns
Section titled “Returns”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"}Example invocation
Section titled “Example invocation”{ "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" }Typical sequence
Section titled “Typical sequence”forgeplan_new (evidence) → forgeplan_update (structured fields) → forgeplan_link → forgeplan_score (now > 0) → forgeplan_activate. For Epic decomposition: forgeplan_new (epic) → forgeplan_new (prd) → forgeplan_link relation=based_on → repeat.
CLI equivalent
Section titled “CLI equivalent”forgeplan link— same operation, positional args
See also
Section titled “See also”- MCP overview
forgeplan_score— consumes link graph for R_effforgeplan_graph— visualize the link graphforgeplan_supersede— stateful version of a supersedes link