Skip to content

Commit 529f9d7

Browse files
committed
chore: update AGENTS.md
1 parent 7f79335 commit 529f9d7

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.deepcode/AGENTS.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ src/
1313
│ ├── App.tsx # Root Ink component — state, routing, session orchestration
1414
│ ├── PromptInput.tsx # Multi-line input with slash commands, image paste, skills
1515
│ ├── MessageView.tsx # Renders assistant/tool messages with markdown
16+
│ ├── DropdownMenu.tsx # Reusable dropdown for skill/model selection
1617
│ ├── SessionList.tsx # Session picker for /resume
18+
│ ├── promptUndoRedo.ts # Ctrl+- undo / Ctrl+Shift+- redo for prompt input
1719
│ └── ...
1820
├── mcp/
1921
│ ├── mcp-client.ts # MCP client — JSON-RPC communication with MCP servers
@@ -22,7 +24,7 @@ src/
2224
│ ├── file-utils.ts # File read/write with encoding and diff preview
2325
│ ├── shell-utils.ts # Shell path resolution (Git Bash, zsh, bash)
2426
│ ├── state.ts # In-memory file state and snippet tracking
25-
│ └── runtime.ts # Tool validation runtime helpers (executeValidatedTool, semanticBoolean)
27+
│ └── runtime.ts # Tool validation runtime helpers
2628
├── tools/
2729
│ ├── executor.ts # ToolExecutor — dispatches tool calls to handlers
2830
│ ├── bash-handler.ts # Executes shell commands
@@ -32,9 +34,10 @@ src/
3234
│ ├── web-search-handler.ts # Web search tool
3335
│ └── ask-user-question-handler.ts # Interactive user prompts
3436
├── tests/ # Test suite — one *.test.ts per module
35-
docs/
37+
templates/
3638
├── tools/ # Tool descriptions fed to the LLM
3739
├── prompts/ # EJS templates (e.g., init_command.md.ejs)
40+
docs/ # User-facing documentation
3841
dist/ # Bundled CLI output (gitignored)
3942
```
4043

@@ -87,7 +90,8 @@ Run the CLI locally for manual testing: `node dist/cli.js` (after `npm run bundl
8790
- `fix:` — bug fix (e.g., `fix(ui): redraw cleanly after terminal resize`)
8891
- `chore:` — tooling, deps, hooks (e.g., `chore: add husky + lint-staged`)
8992
- `refactor:` — code restructuring (e.g., `refactor(ui): optimize App hooks`)
90-
- `style:` — formatting-only changes
93+
- `style:` — formatting-only changes (e.g., `style: adjust the tree structure symbols`)
94+
- `docs:` — documentation (e.g., `docs: add MCP configuration guide`)
9195

9296
**Pull requests** should include:
9397
- A clear description of what changed and why
@@ -100,7 +104,7 @@ Run the CLI locally for manual testing: `node dist/cli.js` (after `npm run bundl
100104

101105
The CLI renders a terminal UI using [Ink](https://github.com/vadimdemedes/ink) (React for terminals). `SessionManager` drives the LLM interaction loop: it builds system prompts, sends user messages with optional skills/images, streams responses, executes tool calls via `ToolExecutor`, and compacts context when token thresholds are exceeded (512K for DeepSeek V4 models, 128K for others).
102106

103-
Six tools are available to the LLM: `bash`, `read`, `write`, `edit`, `AskUserQuestion`, and `WebSearch`. Tool definitions are registered in `src/tools/executor.ts` and described to the LLM via `src/prompt.ts` and `docs/tools/`.
107+
Six tools are available to the LLM: `bash`, `read`, `write`, `edit`, `AskUserQuestion`, and `WebSearch`. Tool definitions are registered in `src/tools/executor.ts` and described to the LLM via `src/prompt.ts` and `templates/tools/`.
104108

105109
## Agent-Specific Instructions
106110

0 commit comments

Comments
 (0)