Skip to content

Commit 8653376

Browse files
committed
feat: update AGENTS.md
1 parent bc973c7 commit 8653376

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

‎.deepcode/AGENTS.md‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
npm workspaces monorepo under `packages/`.
66

7-
- `packages/core/src/` — `session.ts` (LLM loop, streaming, retry, compaction), `tools/` (10 handlers), `common/` (permissions, OpenAI client, capabilities, file history), `mcp/`, `templates/`.
7+
- `packages/core/src/` — `session.ts` (LLM loop, retry, compaction), `tools/` (10 handlers), `common/` (permissions, OpenAI client, PLUS routing, capabilities), `mcp/`, `templates/`.
88
- `packages/cli/src/` — Ink/React TUI (`cli.tsx`, `cli-args.ts`, `ui/`); `packages/vscode-ide-companion/` — VSCode companion.
99
- `docs/` — user docs; `scripts/` — build/release tooling; `dist/` — bundled output (gitignored).
1010

1111
## Build, Test, and Development Commands
1212

1313
- `npm run check` — typecheck/lint/format; `npm test` — workspace tests.
14-
- `npm run build` — full build; `npm run bundle` — esbuild bundle; `npm run start` — run the CLI.
14+
- `npm run build` / `bundle` / `start` — full build, esbuild bundle, run the CLI.
1515
- Single test: `node --import tsx --test packages/core/src/tests/session.test.ts`.
16-
- Release: `npm run release:version -- <bump>`, then `npm run prepare:package` / `prepare:vscode` (`RELEASE.md`; `v0.4.0`).
16+
- Release: `npm run release:version -- <bump>`, then `npm run prepare:package` / `prepare:vscode` (`RELEASE.md`; `v0.4.1`).
1717

1818
## Coding Style & Naming Conventions
1919

@@ -29,15 +29,17 @@ npm workspaces monorepo under `packages/`.
2929
## Commit & Pull Request Guidelines
3030

3131
- Conventional commits: `feat:`, `fix:`, `chore:`, `refactor:`, `style:`, `test:`, `docs:`, `perf:`, `build:`.
32-
- PRs: clear description, linked issues, UI screenshots, passing `npm run check && npm test`, no unintended `dist/`/lockfile changes.
32+
- PRs: clear description, linked issues, screenshots, passing `npm run check && npm test`, no unintended `dist/`/lockfile changes.
3333

3434
## Architecture Overview
3535

36-
- `@vegamo/deepcode-cli` (Ink TUI) drives the LLM loop via `SessionManager` (`@vegamo/deepcode-core`) over a 180s keep-alive `createOpenAIClient()` with DeepCode Plus fallback.
37-
- Built-in tools: `bash`, `read`, `write`, `edit`, `skill`, `AskUserQuestion`, `UpdatePlan`, `WebSearch`, `ReadImage`, `UnderstandImage`; `read` returns a `snippet_id` for `edit`, and `supportsMultimodal()` picks the matching image tool.
38-
- `bash` bounds output draining after exit/timeout so a held pipe cannot hang a session, captures native cwd on Windows Git Bash; `run_in_background` handles detached work.
39-
- Permissions: 12 scopes including `read-in-tmp`/`write-in-tmp`; `addWorkingDirs` extends the workspace; `file-history.ts` provides undo.
40-
- Models: default `deepseek-flash`; `/model` offers `deepseek-v4-pro`, `deepseek-v4-flash`, `deepseek-v4-flash-vision-exp` (effort `low`/`high`/`max`).
36+
- `@vegamo/deepcode-cli` (Ink TUI) drives the LLM loop via `SessionManager` (`@vegamo/deepcode-core`) over a 180s keep-alive `createOpenAIClientFactory()`.
37+
- Built-in tools: `bash`, `read`, `write`, `edit`, `skill`, `AskUserQuestion`, `UpdatePlan`, `WebSearch`, `ReadImage`, `UnderstandImage`; `read` returns a `snippet_id` for `edit`.
38+
- `bash` bounds output draining after exit/timeout; `run_in_background` handles detached work.
39+
- New `write`/`edit` files honor Git `eol` attributes, else the platform default.
40+
- Permissions: 12 scopes including `read-in-tmp`/`write-in-tmp`; `addWorkingDirs` extends the workspace; file history enables undo.
41+
- Models: default `deepseek-flash` (V4.1 Flash); `/model` offers `deepseek-v4-pro`, `deepseek-v4-flash`, `deepseek-v4-flash-vision-exp` (effort `low`/`high`/`max`).
42+
- PLUS routing (`common/plus-subscription.ts`): `~/.deepcode-plus/settings.json` sets `subscriptionPlan` (`default`/`on`/`off`) and `env.PLUS_API_KEY` (`sk-` + 24/26 chars); key length picks the host (`deepcode.vegamo.cn`/`www.deepcodeplus.com`), shared by web search, image, and telemetry.
4143
- Commands: `/skills`, `/model`, `/plan`, `/new`, `/init`, `/resume`, `/fork`, `/continue`, `/undo`, `/mcp`, `/raw`, `/exit`; Plan Mode gates writes behind `<proposed_plan>`.
4244
- CLI flags: `-p`, `-x`, `-r`, `-f`, `-l`, `-v`, `-h`.
4345

0 commit comments

Comments
 (0)