23. Top 20 Files to Study
If You Only Read 20 Files
| # | File | Why it matters |
|---|---|---|
| 1 | main.tsx | Startup orchestration and product entry flow. |
| 2 | commands.ts | Command control plane. |
| 3 | Tool.ts | Tool platform contract. |
| 4 | tools.ts | Capability registry. |
| 5 | tools/BashTool/BashTool.tsx | Shell execution runtime. |
| 6 | tools/BashTool/bashSecurity.ts | Shell risk taxonomy. |
| 7 | tools/BashTool/bashPermissions.ts | Shell permission engine. |
| 8 | tools/FileReadTool/FileReadTool.ts | Model-oriented file reading. |
| 9 | tools/FileEditTool/FileEditTool.ts | Safe in-place editing. |
| 10 | services/api/client.ts | Provider/auth adapter layer. |
| 11 | services/api/claude.ts | Main request engine. |
| 12 | services/mcp/auth.ts | MCP auth system. |
| 13 | tools/AgentTool/AgentTool.tsx | Delegation and multi-agent orchestration. |
| 14 | interactiveHelpers.tsx | Interactive shell lifecycle. |
| 15 | components/TrustDialog/TrustDialog.tsx | Trust boundary UX. |
| 16 | history.ts | Session history infrastructure. |
| 17 | state/AppStateStore.ts | Whole-product state map. |
| 18 | services/compact/microCompact.ts | Selective context shrinking. |
| 19 | services/compact/autoCompact.ts | Auto-compaction policy. |
| 20 | services/SessionMemory/sessionMemory.ts | Background memory maintenance. |
How To Use This List
Read these files in order if your goal is skill transfer, not full archive coverage. Together they give you the highest-value view
of startup flow, tool contracts, safety, API integration, session management, and long-context handling.
Source Navigation
Recommended Source Files
source/main.tsxsource/tools/BashTool/BashTool.tsxsource/services/api/client.tssource/services/api/claude.tssource/tools/AgentTool/AgentTool.tsx
Next Files to Read
source/tools/FileReadTool/FileReadTool.tssource/tools/FileEditTool/FileEditTool.tssource/services/compact/compact.ts