forgeplan_session
Show the current methodology session state — which phase you are in (idle / routing / shaping / coding / evidence / pr), the active artifact driving the session, the routed depth, and whether methodology enforcement is enabled. The session is Forgeplan’s state machine that ties Route → Shape → Code → Evidence → Activate together (PRD-019).
Category: Quality
When an agent calls it
Section titled “When an agent calls it”- Resume work — “what was I doing before?” — the session remembers active artifact and phase.
- Before a transition — read state, then call
forgeplan_guardto check if the next transition is allowed. - Consistency checks — if you think you’re “coding” but session says
shaping, something is off. - Onboarding new agents — they can discover the workflow entrypoint via this tool.
Input parameters
Section titled “Input parameters”No input parameters. Call this tool with an empty object {}.
Returns
Section titled “Returns”{ "phase": "coding", "active_artifact": "PRD-042", "depth": "standard", "enforcement": "enabled", "started_at": "2026-04-11T09:17:00Z", "history": [ { "phase": "routing", "at": "2026-04-11T09:05:00Z" }, { "phase": "shaping", "at": "2026-04-11T09:10:00Z" }, { "phase": "coding", "at": "2026-04-11T09:17:00Z" } ]}If nothing is active:
{ "phase": "idle", "active_artifact": null, "depth": null}Example invocation
Section titled “Example invocation”{}Typical sequence
Section titled “Typical sequence”forgeplan_session— read state.forgeplan_guardwith target phase — check if transition is allowed.- If allowed, perform the phase work (code / evidence / PR).
- Phase auto-advances as artifacts move through lifecycle.
CLI equivalent
Section titled “CLI equivalent”forgeplan sessionSee also
Section titled “See also”forgeplan_guard— gate for phase transitions.forgeplan_route— entry point that opens a session.- Methodology guide