You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
ARCHITECTURE.md: a plain-language guide to how pi is put together (2026-11-02). Why: the repository had no project-level document explaining the overall architecture — DEVELOPMENT.md is the maintenance rulebook for this fork, and the user-facing pages under packages/coding-agent/docs/ document how to use pi one feature at a time, so anyone (including the agent itself, in a fresh session) had to reconstruct the layering, the message flow, and the experimental/stable split by reading source. What it contains: the layer map across packages and their responsibilities; the full journey of one prompt (startup assembly → system-prompt composition → the agent turn loop → tool execution → retry/compaction/persistence); the four load-bearing designs (two message vocabularies, the session JSONL tree, compaction, event-driven modes); the extension/skill/template/theme/package distinction with discovery order and trust boundary; the TUI rendering approach; an honest inventory of the experimental line (AgentHarness, experimental/, chord, CBOR protocol, pi-durable) and the design trade-offs each choice costs; plus a file map for anyone about to edit code. Both READMEs link to it (the guide itself is written in Chinese, matching TODO.md / DEVELOPMENT.md).
Changed
Sub-project .pi migrated from a symlink to a real directory with resource references (2026-10-30 global rule revision). Why: the previous setup symlinked this repo's .pi wholesale to ~/Developer/FullStackEngineerAgent/.pi, which conflated sharing with ownership — any file written into .pi here landed directly in the Agent project, polluting every sibling sub-project and showing up in that project's git history. Copying the resources instead was never an option either: AGENTS.md has no include mechanism, so a copy-based superset inevitably drifts from the Agent side. What changed: (1) the .pi → ../FullStackEngineerAgent/.pi symlink is gone, replaced by a real .pi/ directory owned by this repo; (2) a new .pi/settings.json references the Agent project's extensions / skills / prompts / themes directories by path and keeps the same-named local directories (local resources are auto-discovered, so they need no settings entry); (3) the AGENTS.md → ../FullStackEngineerAgent/AGENTS.md symlink is unchanged, keeping the identity layer aligned rather than forked. Rule: this repo's .pi/ is append-only (own resource directories, .pi/APPEND_SYSTEM.md); it must not restate or override the base rules, and project-specific rules go into APPEND_SYSTEM.md — never SYSTEM.md, which replaces the whole system prompt and would wipe out the agent identity. See ~/.pi/agent/docs/agents-registry.md, section “智能体专属文件归属与子项目映射(2026-10-30 修订)”.