Skip to content

Commit ada6ca7

Browse files
committed
feat: update AGENTS.md
1 parent 1050e65 commit ada6ca7

2 files changed

Lines changed: 19 additions & 9 deletions

File tree

.deepcode/AGENTS.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@ packages/
1414
│ ├── prompt.ts # System prompt builder & tool definitions
1515
│ └── settings.ts # Settings resolution from ~/.deepcode/settings.json
1616
├── cli/src/ # Terminal UI (Ink/React)
17-
│ ├── cli.tsx # Entry point — parses args (-p, -v), renders AppContainer
18-
│ ├── ui/views/ # Top-level screens (App, PromptInput, SessionList, PermissionPrompt, etc.)
17+
│ ├── cli.tsx # Entry point — renders AppContainer
18+
│ ├── cli-args.ts # CLI argument parsing (yargs: -p, -r, -v, -h)
19+
│ ├── common/ # Update checker
20+
│ ├── utils/ # stdio helpers, version, package info
21+
│ ├── generated/ # Build-time git commit info
22+
│ ├── ui/views/ # Top-level screens (App, PromptInput, SessionList, PermissionPrompt, WelcomeScreen, UpdatePrompt, McpStatusList, etc.)
1923
│ ├── ui/components/ # Reusable Ink components (MessageView, DropdownMenu, ModelsDropdown, etc.)
2024
│ ├── ui/core/ # Prompt buffer, slash commands, file mentions, clipboard, undo/redo
21-
│ ├── ui/hooks/ # Custom hooks (cursor, history navigation, paste handling, terminal input)
25+
│ ├── ui/hooks/ # Custom hooks (cursor, history navigation, paste handling, terminal input, statusline)
2226
│ ├── ui/contexts/ # React contexts (AppContext, RawModeContext)
27+
│ ├── ui/statusline/ # Pluggable statusline providers (command, module)
2328
│ └── tests/ # UI-focused tests with run-tests.mjs runner
2429
├── vscode-ide-companion/ # VSCode extension companion
2530
│ └── src/ # extension.ts, provider.ts, utils.ts
@@ -45,6 +50,7 @@ All commands run from the repo root.
4550
| `npm run check` | Runs typecheck + lint + format:check together |
4651
| `npm run build` | Orchestrates full build (scripts/build.js) — compiles core + bundles CLI + copies assets |
4752
| `npm run bundle` | Generates git commit info + esbuild bundle + copies bundled assets |
53+
| `npm run build:vscode` | Builds the VSCode extension companion |
4854
| `npm test` | Runs all workspace tests (`npm run test --workspaces --if-present`) |
4955
| `npm run start` | Runs the locally built CLI (`scripts/start.js`) |
5056
| `npm run build-and-start` | Builds then starts the CLI |
@@ -115,9 +121,9 @@ A **file history system** (`packages/core/src/common/file-history.ts`) provides
115121

116122
**Slash commands**: `/skills`, `/model`, `/new`, `/init`, `/resume`, `/continue`, `/undo`, `/mcp`, `/raw`, `/exit`, plus dynamic `/skill-name` for each loaded skill.
117123

118-
**Key UI features**: `@` file mentions in the prompt input, `Ctrl+O` to view live process stdout, `Ctrl+V` to paste images, Shift+Enter for newlines, MCP server status display, undo selector, and permission prompts.
124+
**Key UI features**: `@` file mentions in the prompt input, `Ctrl+O` to view live process stdout, `Ctrl+V` to paste images, `Ctrl+X` to clear images, Shift+Enter for newlines, pluggable statusline, MCP server status display, undo selector, and permission prompts.
119125

120-
**CLI flags**: `-p <prompt>` / `--prompt` to auto-submit a prompt on launch, `-v` / `--version`, `-h` / `--help`.
126+
**CLI flags**: `-p <prompt>` / `--prompt` to auto-submit a prompt on launch, `-r [sessionId]` / `--resume [sessionId]` to resume a session or show the session picker, `-v` / `--version`, `-h` / `--help`.
121127

122128
## Agent-Specific Instructions
123129

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,18 @@ cd deepcode-cli
159159
# 安装依赖
160160
npm install
161161

162-
# 本地开发(类型检查 + lint + 格式检查 + 构建)
163-
npm run build
164-
165162
# 运行测试
166163
npm test
167164

168-
# 链接到全局(即本地全局安装)
165+
# CLI本地开发(类型检查 + lint + 格式检查 + 构建)
166+
npm run build
167+
168+
# CLI链接到全局(即本地全局安装)
169169
npm link
170+
171+
# VSCode插件本地开发
172+
npm run build:vscode
173+
170174
```
171175

172176
- 提交 PR 前请确保 `npm run check` 通过(类型检查 + lint + 格式检查)

0 commit comments

Comments
 (0)