Overview
Repository shape
apps/ # runnable tools (deployables / entry points)
gateway/ @frites/gateway TRANSPARENT PROXY (primary surface): impersonates /v1/messages
(Claude Code) + /v1/responses (Codex); intercepts every prompt,
answer/action-council fan-out per fanOutPolicy + fanOutScope,
SSE streaming, per-turn cost telemetry. Stance-A: synthesizes the
assistant turn — emits host-executed tool_use on coding turns.
mcp/ @frites/mcp on-demand MCP tool surface (Stance B): frites_implement +
frites_apply — heavy multi-agent file edits in worktrees → diffs
cli/ @frites/cli standalone `frites run` + `frites config` — same engine
packages/ # libraries (no entry points)
core/ @frites/core engine (funnel) + oracle + judge + config + answer-council
isolation/ @frites/isolation git worktree lifecycle, diff capture, apply-to-branch
agents/ @frites/agents headless claude/codex runners + completions + cost estimation
+ EnvSandbox (recursion guard)Two surfaces, one engine
Surface
Stance
Best for
High-level decisions
Engine state machine
The rest of the architecture cluster
Last updated