documentation#
deeper dive into phi's design.
contents#
- architecture.md — entry points, scheduling, why this shape
- memory.md — the four kinds of state phi draws on (thread, private, public, intent)
- system-prompt.md — block-by-block reference for what's actually in phi's context per run
- mcp.md — model context protocol integration
- safety.md — how public actions are bounded: policies + judge, the pdsx guard, the operator override
- testing.md — testing philosophy
- skill-or-tool.md — the principle for deciding when something is a tool vs a skill, with the review trail
- tool-sprawl.md — module-misplacement backlog from surfacing the catalogue in the UI
- patterns.md — recurring lessons from the git history (deletion, feedback loops, DotDict, voice vs structure, silently-empty blocks, prescription in task prompts, attention shapes voice)
- lexicons.md — phi's custom
io.zzstoatzz.phi.*schemas, how they're published, and the DNS authority record they need - internal/cockpit.md — the web UI (internal, operator-facing)
reading order#
- architecture.md — overall shape
- memory.md — what phi knows and where it lives
- system-prompt.md — exactly what reaches the model on every run
- mcp.md — external capabilities
- safety.md — how public actions are bounded, and why structurally
- testing.md — how we verify behavior
- skill-or-tool.md — the design principle behind the tool/skill split
- tool-sprawl.md — known module misplacements to clean up over time
- patterns.md — recurring lessons; read before refactoring anything that looks accidental
each doc is self-contained and can be read independently.