Skip to content
BakerSean168Public

About

Headless autonomous software engineering control plane with durable planning, isolated execution, exact-SHA review, recovery, and release evidence.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

ForgeFlow

Thin software-engineering policy for Pi Agent.

ForgeFlow is a Pi package, not an agent runtime or workflow engine. Pi and its plugins own execution. ForgeFlow keeps only policy that is useful across those plugins.

What ForgeFlow owns

  • stable logical model roles: forgeflow/planner, worker, reviewer, scout, and oracle;
  • deterministic engineering-invariant preflight;
  • the one-writer-per-worktree rule;
  • policy reminders that bind delivery evidence to the current candidate.

What ForgeFlow does not own

Pi and installed plugins own child execution, review loops, acceptance gates, worktrees, missions, schedules, resume, background jobs, and external-agent runners. Engineering Skills own reusable methods such as TDD, SDD, PR gating, and delivery verification.

Use pi-subagents as the single child-orchestration primitive. Use host Skills such as test-driven-development, spec-driven-development, pr-gate, and delivery-verification when those workflows are installed. ForgeFlow deliberately does not wrap or duplicate those surfaces.

Provider infrastructure remains below Pi model selection. ForgeFlow logical roles choose model capability and thinking effort; policy v3 can also order equivalent quota sources (for example Business Team before a commercial relay). Endpoint selection, credentials, channel health, and transport remain provider-layer concerns. LiteLLM still owns commercial-channel selection after ForgeFlow has selected the commercial physical model.

ForgeFlow records credential-free local model/supply usage in ~/.pi/forgeflow-usage.jsonl; forgeflow-usage summarizes it. LiteLLM SpendLogs remain authoritative for relay-channel spend.

Antigravity delegation

When the installed pi-subagents owner is present, ForgeFlow also registers two external agents backed by the locally authenticated Antigravity CLI (agy):

  • antigravity (alias agy) runs Antigravity in read-only plan mode;
  • antigravity-writer (alias agy-writer) runs in accept-edits mode.

pi-subagents still owns child lifecycle, status, timeout, and stop. ForgeFlow only bridges its stdin handoff to agy --print; Antigravity keeps its own authentication, model selection, quota, and execution runtime. The bridge is local-only and requires agy on PATH. It does not turn Antigravity subscription quota into a Pi model provider.

See docs/model-policy.md for logical-model policy and docs/architecture.md for the ownership boundary.

Development

npm ci --ignore-scripts
npm run check
npm pack --dry-run

License

MIT.

About

Headless autonomous software engineering control plane with durable planning, isolated execution, exact-SHA review, recovery, and release evidence.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages