Haft adds durable project memory, FPF-backed reasoning skills, and MCP-enforced gates so coding agents record decisions, evidence, and specs that later work can rely on.
Overview
Haft is a local governance layer for AI coding agents. It tracks what problem is being solved, which options were compared, human decisions, supporting evidence, and what has gone stale—so consequential engineering choices are not lost in chat history.
It builds on the First Principles Framework, shipping versioned source into the agent context plus project-local skills, CLI commands, and an MCP server that validates parity, authority, and required fields server-side. Skills such as framing, exploration, comparison, verification, and status are independent capabilities rather than a fixed pipeline; binding decisions and execution commissions stay explicitly human-gated.
Initialization wires Haft into hosts including Claude Code, Codex, Cursor, Gemini CLI, and OpenCode, with stable support called out for Claude Code and Codex. Project-scoped MCP configs can be committed; structured state lives in a local SQLite database while markdown carriers under .haft/ sync through git for team handoff.
Haft is not a coding agent itself. It connects problems, options, specifications, work authority, and evidence to the code they govern, surfaces decaying evidence, and can relate decisions to files and symbols while agents edit the project codebase.
Key features
- Typed project decision graph
- FPF source retrieval with provenance
- MCP kernel authority and parity gates
- Skills for frame, compare, verify, status
- CLI inspection and spec lifecycle
- Git-tracked .haft markdown carriers
- Multi-host agent integrations
- Evidence staleness and drift surfacing
Use cases
- Record why architectural choices were made
- Review agent output before merge
- Onboard existing repos with spec carriers
- Switch coding tools without losing decisions
- Team-sync decision memory through git