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
|`npm run build`|`check` + `bundle` + chmod 755 — full CI gate before publish |
69
-
|`npm test`| Runs all tests via `tsx --test src/tests/*.test.ts`|
70
-
|`npm run test:single -- <file>`| Run a single test file (e.g., `npm run test:single -- src/tests/session.test.ts`) |
73
+
|`npm test`| Runs all tests via `node src/tests/run-tests.mjs`|
74
+
|`npm run test:single -- <file>`| Run a single test file via `tsx --test`(e.g., `npm run test:single -- src/tests/session.test.ts`) |
71
75
72
76
Run the CLI locally for manual testing: `node dist/cli.js` (after `npm run bundle`).
73
77
@@ -90,7 +94,7 @@ Run the CLI locally for manual testing: `node dist/cli.js` (after `npm run bundl
90
94
91
95
-**Framework**: Node.js native test runner (`node:test`) with `tsx` for TypeScript
92
96
-**Assertions**: `node:assert/strict`
93
-
-**Coverage**: Target meaningful unit tests for core logic (session management, tool handlers, settings resolution, prompt buffer, permissions, MCP client). Test files are in `src/tests/` matching the source module name.
97
+
-**Coverage**: Target meaningful unit tests for core logic (session management, tool handlers, settings resolution, prompt buffer, permissions, MCP client, telemetry). Test files are in `src/tests/` matching the source module name.
94
98
-**Test naming**: `describe`/`test` blocks with descriptive names. Example: `test("SessionManager preserves structured system content when building OpenAI messages", ...)`
95
99
-**Relaxed lint rules**: Test files allow `any` and unused vars.
96
100
- Run all tests with `npm test` before submitting a PR. A cross-platform test runner is available at `src/tests/run-tests.mjs`.
@@ -104,6 +108,7 @@ Run the CLI locally for manual testing: `node dist/cli.js` (after `npm run bundl
@@ -133,4 +138,4 @@ A **file history system** (`src/common/file-history.ts`) provides undo/checkpoin
133
138
134
139
-**AGENTS.md loading**: The CLI loads agent instructions from `./AGENTS.md`, `./.deepcode/AGENTS.md`, or `~/.deepcode/AGENTS.md` (first found wins). Write project-specific guidance for the LLM in any of these.
135
140
-**Skills**: Place skill definitions in `~/.agents/skills/<name>/SKILL.md` (user-level) or `./.agents/skills/<name>/SKILL.md` (project-level). Legacy path `./.deepcode/skills/` is also supported. Each SKILL.md uses YAML frontmatter with `name` and `description` fields.
136
-
-**Built-in skills**: `agent-drift-guard` (detects and corrects execution drift) and `plan-and-execute` (structured task planning with progress tracking). Both are defined in `templates/skills/` and always injected into every session.
141
+
-**Built-in skills**: `agent-drift-guard` (detects and corrects execution drift), `plan-and-execute` (structured task planning with progress tracking), and `karpathy-guidelines` (behavioral guidelines to reduce common LLM coding mistakes). All three are defined in `templates/skills/` and always injected into every session.
0 commit comments