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
-`start_session` — constitution + latest session for context
63
+
-`before_editing` — risk assessment for files you plan to edit
64
+
65
+
All tools include `_freshness` metadata (status, lastAnalyzed, filesChangedSince, changedFiles, message).
66
+
All tools return context-safe responses (<10K chars) via truncation utilities in `src/utils/truncate.ts`.
58
67
59
68
## Pre-Publish Checklist
60
69
Run ALL of these before `npm publish`. Do not skip any step.
@@ -72,7 +81,7 @@ Run ALL of these before `npm publish`. Do not skip any step.
72
81
-**Grammar smoke test** (`parser.test.ts`): Loads every language in `LANGUAGE_LOADERS` via `parseSource()`. Catches missing packages, broken native builds, wrong require paths. This is what would have caught the tree-sitter-liquid issue.
Copy file name to clipboardExpand all lines: README.md
+30-25Lines changed: 30 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Every AI coding session starts with exploration — grepping, reading wrong file
22
22
23
23
## The Solution
24
24
25
-
CodeCortex eliminates the cold start. It pre-builds codebase knowledge — architecture, dependencies, risk areas, hidden coupling — so agents skip the exploration phase and go straight to the right files.
25
+
CodeCortex eliminates the cold start. It pre-builds codebase knowledge — architecture, dependencies, risk areas, hidden coupling — and injects it directly into your agent's context (CLAUDE.md, .cursorrules, etc.) so agents have project knowledge from the first prompt.
26
26
27
27
**Not a middleware. Not a proxy. Just knowledge your agent loads on day one.**
28
28
@@ -43,7 +43,7 @@ Three capabilities no other tool provides:
43
43
44
44
2.**Risk scores** — File X has been bug-fixed 7 times, has 6 hidden dependencies, and co-changes with 3 other files. Risk score: 35. You can't learn this from reading code.
45
45
46
-
3.**Cross-session memory** — Decisions, patterns, observations persist. The agent doesn't start from zero each session.
46
+
3.**Inline context injection** — Project knowledge is injected directly into CLAUDE.md, .cursorrules, and other agent config files with architecture, risk map, and editing directives. Agents use it without any setup.
47
47
48
48
**Example from a real codebase:**
49
49
-`schema.help.ts` and `schema.labels.ts` co-changed in 12/14 commits (86%) with **zero imports between them**
|`codecortex inject`| Regenerate inline context in CLAUDE.md and agent config files |
171
174
|`codecortex status`| Show knowledge freshness, stale modules, symbol counts |
172
175
|`codecortex symbols [query]`| Browse and filter the symbol index |
173
176
|`codecortex search <query>`| Search across symbols, file paths, and docs |
@@ -180,6 +183,8 @@ All read tools include `_freshness` metadata and return context-safe responses (
180
183
181
184
**Hybrid extraction:** tree-sitter native N-API for structure (symbols, imports, calls across 27 languages) + host LLM for semantics (what modules do, why they're built that way). Zero extra API keys.
182
185
186
+
**Inline context injection:** After analysis, CodeCortex injects a rich knowledge section directly into CLAUDE.md and other agent config files. This includes architecture overview, risk map with coupled file names, and editing directives — so agents have project context from the first prompt without needing MCP.
187
+
183
188
**Git hooks** keep knowledge fresh — `codecortex update` runs automatically on every commit, re-extracting changed files and updating temporal analysis.
184
189
185
190
**Size-adaptive responses** — CodeCortex classifies your project (micro → extra-large) and adjusts response caps accordingly. A 23-file project gets full detail. A 6,400-file project gets intelligent summaries. Every MCP tool response stays under 10K chars.
0 commit comments