Docs menu

How fAI builds compounding intelligence

fAI is the layer that makes the intelligence your agents work from compound. Every session's work feeds a record. The record feeds a synthesis. Every agent fAI has detected starts from that synthesis. So each session builds on the ones before it, whichever tool you use.

That's what compounding means here, and the rest of this page is the mechanism behind it: two layers, kept in plain files under ~/.fai/.

The record: only grows

While fai runs, it reads your agents' logs and captures what they did into your session. Each capture is its own commit, in plain JSONL, in a git repository you own. Every few minutes the session seals: its captures merge in as a real git merge, never a squash, so every capture stays reachable.

Nothing in the record is summarized away. You can diff two sessions, see what changed, or roll a capture back, with the same git you use for code.

The synthesis: rewritten in place

On a cadence, the model you chose with fai synthesize reads the record and distills it into four kinds of knowledge:

What it holds
DecisionsWhat was chosen, and why
PatternsThe approaches you repeat
ContextThe current picture of the project and how you work
PetnamesShort names you give things, so you can reuse them everywhere

The model recompiles a page for each section. Then code, not the model, assembles those pages under fixed headings, in a fixed order, into two files:

  • FAI-PROJECT.md - this project: Architecture & Design, Conventions & Patterns, Key Decisions, Environment & Build, and Vocabulary
  • FAI-PERSONAL.md - how you work across projects: Working Style & Preferences, and Communication & AI Framing

Because no model rewrites those files end to end, a thin section shows up as a thin section, not as a file that quietly reorganized itself. And unlike the record, they don't grow forever: each pass rebuilds them, so they stay current.

A third file, FAI-SESSION.md, carries what you're doing in the current session.

Where your agents pick it up

fAI points every agent it has detected at those three files, through a short block in the agent's own rules file and through its MCP server. See What the next session gets.

What compounds, and what doesn't

The record only grows, and each synthesis pass is rebuilt from more of it. So later sessions have more to draw on than early ones. That's a direction, not a schedule: what a given session gets depends on how much work has been captured and synthesized. With capture-only there's no synthesis until you choose a model.

fAI doesn't learn new skills or take over routine work on its own. It builds the context; your agent does the work, and does it from a better starting point.

In this section

For the full pipeline, see Knowledge flow, Vaults and Sessions.

On fathym.com: fAI →

On this page