Skip to content

Commit c994ffb

Browse files
committed
chore: regenerate .codecortex/ with MCP-aware inline context
Picks up v0.6.1 P0 fix: CLAUDE.md no longer lists MCP tools since this repo has no .mcp.json configured. Before Editing directive now points at module docs instead of get_edit_briefing.
1 parent 0a43997 commit c994ffb

7 files changed

Lines changed: 111 additions & 97 deletions

File tree

.codecortex/constitution.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
- **Name:** codecortex-ai
77
- **Languages:** typescript
88
- **Files:** 70
9-
- **Symbols:** 1549
9+
- **Symbols:** 1557
1010
- **Modules:** 7
11-
- **Last updated:** 2026-04-21T10:10:23.420Z
11+
- **Last updated:** 2026-04-21T10:16:37.600Z
1212

1313
## Architecture
1414

1515
**Entry points:** `dist/cli/index.js`
1616

1717
**Modules (7):**
18+
- **core** (14 files, 1697 lines) — typescript
1819
- **cli** (14 files, 1661 lines) — typescript
19-
- **core** (14 files, 1654 lines) — typescript
2020
- **extraction** (4 files, 1149 lines) — typescript
2121
- **mcp** (4 files, 590 lines) — typescript
2222
- **git** (3 files, 440 lines) — typescript
@@ -30,7 +30,7 @@
3030
**Hottest files (most changes):**
3131
- `README.md` — 17 changes, MODERATE
3232
- `src/mcp/server.ts` — 14 changes, MODERATE
33-
- `CLAUDE.md`12 changes, MODERATE
33+
- `CLAUDE.md`13 changes, VOLATILE
3434
- `src/cli/commands/init.ts` — 9 changes, VOLATILE
3535
- `src/cli/commands/update.ts` — 7 changes, MODERATE
3636

@@ -58,6 +58,7 @@
5858
## Available Knowledge
5959

6060
**Module docs:** `cli`, `core`, `extraction`, `git`, `mcp`, `types`, `utils`
61+
**Decision records:** 1
6162

6263
Read `.codecortex/modules/*.md` directly for module deep-dives.
6364
Use `get_change_coupling` before editing a file to check what else must change.

.codecortex/cortex.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
version: 1.0.0
22
project: codecortex-ai
3-
generated: 2026-04-21T10:10:23.420Z
4-
lastUpdated: 2026-04-21T10:10:23.420Z
3+
generated: 2026-04-21T10:16:37.600Z
4+
lastUpdated: 2026-04-21T10:16:37.600Z
55
languages:
66
- typescript
77
totalFiles: 70
8-
totalSymbols: 1549
8+
totalSymbols: 1557
99
totalModules: 7
1010
projectSize: small
1111
tiers:

.codecortex/graph.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.codecortex/hotspots.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Risk-Ranked Files
22

3-
> Auto-generated by CodeCortex. 52 commits analyzed over 90 days.
3+
> Auto-generated by CodeCortex. 54 commits analyzed over 90 days.
44
55
| File | Changes | Couplings | Bugs | Risk | Stability |
66
|------|---------|-----------|------|------|-----------|
77
| `src/mcp/server.ts` | 14 | 9 | 4 | 30.08 | moderate |
88
| `README.md` | 17 | 0 | 4 | 29 | moderate |
9+
| `CLAUDE.md` | 13 | 0 | 4 | 25 | volatile |
910
| `src/cli/commands/init.ts` | 9 | 17 | 1 | 24.54 | volatile |
10-
| `CLAUDE.md` | 12 | 0 | 4 | 24 | moderate |
1111
| `src/cli/commands/update.ts` | 7 | 13 | 0 | 19.16 | moderate |
1212
| `src/mcp/tools/read.ts` | 6 | 11 | 0 | 16.8 | moderate |
1313
| `src/extraction/parser.ts` | 5 | 6 | 1 | 14.32 | moderate |
@@ -23,16 +23,16 @@
2323
| `src/core/manifest.ts` | 3 | 2 | 1 | 8.16 | moderate |
2424
| `src/cli/index.ts` | 6 | 3 | 0 | 7.94 | moderate |
2525
| `src/core/constitution.ts` | 4 | 4 | 0 | 7.16 | moderate |
26-
| `src/core/agent-instructions.ts` | 3 | 3 | 0 | 6.42 | moderate |
27-
| `tests/core/agent-instructions.test.ts` | 3 | 3 | 0 | 6.42 | moderate |
26+
| `tests/core/agent-instructions.test.ts` | 4 | 3 | 0 | 6.92 | moderate |
27+
| `.codecortex/cortex.yaml` | 3 | 0 | 1 | 6 | moderate |
2828
| `tests/fixtures/setup.ts` | 3 | 0 | 1 | 6 | moderate |
2929
| `src/core/graph.ts` | 3 | 0 | 1 | 6 | moderate |
3030
| `src/utils/files.ts` | 3 | 0 | 1 | 6 | moderate |
31+
| `src/core/agent-instructions.ts` | 3 | 3 | 0 | 5.92 | moderate |
3132
| `.gitignore` | 4 | 2 | 0 | 5.52 | moderate |
3233
| `tests/mcp/read-tools.test.ts` | 4 | 2 | 0 | 5.42 | moderate |
3334
| `tests/mcp/simulation.test.ts` | 3 | 1 | 0 | 5 | moderate |
3435
| `tests/mcp/write-tools.test.ts` | 3 | 1 | 0 | 5 | moderate |
35-
| `.codecortex/cortex.yaml` | 2 | 0 | 1 | 5 | stable |
3636
| `tests/extraction/symbols.test.ts` | 2 | 0 | 1 | 5 | very_stable |
3737

38-
Generated: 2026-04-21T10:10:23.419Z
38+
Generated: 2026-04-21T10:16:37.600Z

.codecortex/symbols.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

.codecortex/temporal.json

Lines changed: 91 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"generated": "2026-04-21T10:10:23.413Z",
2+
"generated": "2026-04-21T10:16:37.595Z",
33
"periodDays": 90,
4-
"totalCommits": 52,
4+
"totalCommits": 54,
55
"hotspots": [
66
{
77
"file": "README.md",
@@ -19,10 +19,10 @@
1919
},
2020
{
2121
"file": "CLAUDE.md",
22-
"changes": 12,
23-
"stability": "moderate",
24-
"lastChanged": "2026-03-13T17:12:15+05:30",
25-
"daysSinceChange": 38
22+
"changes": 13,
23+
"stability": "volatile",
24+
"lastChanged": "2026-04-21T15:41:01+05:30",
25+
"daysSinceChange": 0
2626
},
2727
{
2828
"file": "src/cli/commands/init.ts",
@@ -73,6 +73,13 @@
7373
"lastChanged": "2026-03-07T18:00:19+05:30",
7474
"daysSinceChange": 44
7575
},
76+
{
77+
"file": "tests/core/agent-instructions.test.ts",
78+
"changes": 4,
79+
"stability": "moderate",
80+
"lastChanged": "2026-04-21T15:46:22+05:30",
81+
"daysSinceChange": 0
82+
},
7683
{
7784
"file": "src/types/index.ts",
7885
"changes": 4,
@@ -129,6 +136,13 @@
129136
"lastChanged": "2026-03-02T23:50:46+05:30",
130137
"daysSinceChange": 49
131138
},
139+
{
140+
"file": ".codecortex/cortex.yaml",
141+
"changes": 3,
142+
"stability": "moderate",
143+
"lastChanged": "2026-04-21T15:41:01+05:30",
144+
"daysSinceChange": 0
145+
},
132146
{
133147
"file": "src/core/manifest.ts",
134148
"changes": 3,
@@ -150,13 +164,6 @@
150164
"lastChanged": "2026-03-13T17:12:15+05:30",
151165
"daysSinceChange": 38
152166
},
153-
{
154-
"file": "tests/core/agent-instructions.test.ts",
155-
"changes": 3,
156-
"stability": "moderate",
157-
"lastChanged": "2026-03-13T17:12:15+05:30",
158-
"daysSinceChange": 38
159-
},
160167
{
161168
"file": "tests/mcp/simulation.test.ts",
162169
"changes": 3,
@@ -221,11 +228,60 @@
221228
"daysSinceChange": 49
222229
},
223230
{
224-
"file": ".codecortex/cortex.yaml",
231+
"file": "src/core/context-injection.ts",
225232
"changes": 2,
226233
"stability": "stable",
227-
"lastChanged": "2026-04-19T19:37:46+05:30",
228-
"daysSinceChange": 1
234+
"lastChanged": "2026-04-21T15:46:22+05:30",
235+
"daysSinceChange": 0
236+
},
237+
{
238+
"file": "tests/core/context-injection.test.ts",
239+
"changes": 2,
240+
"stability": "stable",
241+
"lastChanged": "2026-04-21T15:46:22+05:30",
242+
"daysSinceChange": 0
243+
},
244+
{
245+
"file": ".codecortex/constitution.md",
246+
"changes": 2,
247+
"stability": "stable",
248+
"lastChanged": "2026-04-21T15:41:01+05:30",
249+
"daysSinceChange": 0
250+
},
251+
{
252+
"file": ".codecortex/graph.json",
253+
"changes": 2,
254+
"stability": "stable",
255+
"lastChanged": "2026-04-21T15:41:01+05:30",
256+
"daysSinceChange": 0
257+
},
258+
{
259+
"file": ".codecortex/overview.md",
260+
"changes": 2,
261+
"stability": "stable",
262+
"lastChanged": "2026-04-21T15:41:01+05:30",
263+
"daysSinceChange": 0
264+
},
265+
{
266+
"file": ".codecortex/patterns.md",
267+
"changes": 2,
268+
"stability": "stable",
269+
"lastChanged": "2026-04-21T15:41:01+05:30",
270+
"daysSinceChange": 0
271+
},
272+
{
273+
"file": ".codecortex/symbols.json",
274+
"changes": 2,
275+
"stability": "stable",
276+
"lastChanged": "2026-04-21T15:41:01+05:30",
277+
"daysSinceChange": 0
278+
},
279+
{
280+
"file": ".codecortex/temporal.json",
281+
"changes": 2,
282+
"stability": "stable",
283+
"lastChanged": "2026-04-21T15:41:01+05:30",
284+
"daysSinceChange": 0
229285
},
230286
{
231287
"file": "src/cli/grouped-help.ts",
@@ -333,35 +389,42 @@
333389
"daysSinceChange": 50
334390
},
335391
{
336-
"file": "src/cli/commands/inject.ts",
392+
"file": ".codecortex/AGENT.md",
337393
"changes": 1,
338-
"stability": "very_stable",
339-
"lastChanged": "2026-03-13T17:12:15+05:30",
340-
"daysSinceChange": 38
394+
"stability": "stable",
395+
"lastChanged": "2026-04-21T15:41:01+05:30",
396+
"daysSinceChange": 0
341397
},
342398
{
343-
"file": "src/core/context-injection.ts",
399+
"file": "...nitialized-codecortex-for-codebase-knowledge.md",
344400
"changes": 1,
345-
"stability": "very_stable",
346-
"lastChanged": "2026-03-13T17:12:15+05:30",
347-
"daysSinceChange": 38
401+
"stability": "stable",
402+
"lastChanged": "2026-04-21T15:41:01+05:30",
403+
"daysSinceChange": 0
348404
},
349405
{
350-
"file": "src/mcp/prompts.ts",
406+
"file": ".codecortex/hotspots.md",
407+
"changes": 1,
408+
"stability": "stable",
409+
"lastChanged": "2026-04-21T15:41:01+05:30",
410+
"daysSinceChange": 0
411+
},
412+
{
413+
"file": "src/cli/commands/inject.ts",
351414
"changes": 1,
352415
"stability": "very_stable",
353416
"lastChanged": "2026-03-13T17:12:15+05:30",
354417
"daysSinceChange": 38
355418
},
356419
{
357-
"file": "src/mcp/resources.ts",
420+
"file": "src/mcp/prompts.ts",
358421
"changes": 1,
359422
"stability": "very_stable",
360423
"lastChanged": "2026-03-13T17:12:15+05:30",
361424
"daysSinceChange": 38
362425
},
363426
{
364-
"file": "tests/core/context-injection.test.ts",
427+
"file": "src/mcp/resources.ts",
365428
"changes": 1,
366429
"stability": "very_stable",
367430
"lastChanged": "2026-03-13T17:12:15+05:30",
@@ -423,20 +486,6 @@
423486
"lastChanged": "2026-03-08T23:08:23+05:30",
424487
"daysSinceChange": 43
425488
},
426-
{
427-
"file": ".codecortex/constitution.md",
428-
"changes": 1,
429-
"stability": "very_stable",
430-
"lastChanged": "2026-03-08T02:15:07+05:30",
431-
"daysSinceChange": 44
432-
},
433-
{
434-
"file": ".codecortex/graph.json",
435-
"changes": 1,
436-
"stability": "very_stable",
437-
"lastChanged": "2026-03-08T02:15:07+05:30",
438-
"daysSinceChange": 44
439-
},
440489
{
441490
"file": ".codecortex/modules/cli.md",
442491
"changes": 1,
@@ -486,20 +535,6 @@
486535
"lastChanged": "2026-03-08T02:15:07+05:30",
487536
"daysSinceChange": 44
488537
},
489-
{
490-
"file": ".codecortex/overview.md",
491-
"changes": 1,
492-
"stability": "very_stable",
493-
"lastChanged": "2026-03-08T02:15:07+05:30",
494-
"daysSinceChange": 44
495-
},
496-
{
497-
"file": ".codecortex/patterns.md",
498-
"changes": 1,
499-
"stability": "very_stable",
500-
"lastChanged": "2026-03-08T02:15:07+05:30",
501-
"daysSinceChange": 44
502-
},
503538
{
504539
"file": ".codecortex/sessions/2026-03-06T09-26-20.md",
505540
"changes": 1,
@@ -521,20 +556,6 @@
521556
"lastChanged": "2026-03-08T02:15:07+05:30",
522557
"daysSinceChange": 44
523558
},
524-
{
525-
"file": ".codecortex/symbols.json",
526-
"changes": 1,
527-
"stability": "very_stable",
528-
"lastChanged": "2026-03-08T02:15:07+05:30",
529-
"daysSinceChange": 44
530-
},
531-
{
532-
"file": ".codecortex/temporal.json",
533-
"changes": 1,
534-
"stability": "very_stable",
535-
"lastChanged": "2026-03-08T02:15:07+05:30",
536-
"daysSinceChange": 44
537-
},
538559
{
539560
"file": "src/core/freshness.ts",
540561
"changes": 1,
@@ -843,7 +864,7 @@
843864
"fileA": "src/core/agent-instructions.ts",
844865
"fileB": "tests/core/agent-instructions.test.ts",
845866
"cochanges": 3,
846-
"strength": 1,
867+
"strength": 0.75,
847868
"hasImport": true
848869
},
849870
{

CLAUDE.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,16 @@ src/
117117
## CodeCortex — Project Knowledge (auto-updated)
118118

119119
### Architecture
120-
**codecortex-ai** — typescript — 70 files, 1549 symbols
121-
- **Modules (7):** cli (1661loc), core (1654loc), extraction (1149loc), mcp (590loc), git (440loc), utils (283loc), types (228loc)
120+
**codecortex-ai** — typescript — 70 files, 1557 symbols
121+
- **Modules (7):** core (1697loc), cli (1661loc), extraction (1149loc), mcp (590loc), git (440loc), utils (283loc), types (228loc)
122122
- **Entry points:** `dist/cli/index.js`
123123
- **Key deps:** node:path, node:fs, simple-git, node:child_process, commander, +9 more
124124

125125
### Risk Map
126126
**High-risk files:**
127127
- `README.md` — 17 changes, 4 bug-fixes, moderate
128128
- `src/mcp/server.ts` — 14 changes, 4 bug-fixes, moderate, coupled to: read.ts, init.ts ⚠
129-
- `CLAUDE.md`12 changes, 4 bug-fixes, moderate
129+
- `CLAUDE.md`13 changes, 4 bug-fixes, volatile
130130
- `src/cli/commands/init.ts` — 9 changes, 1 bug-fixes, volatile, coupled to: update.ts ⚠, constitution.ts
131131
- `src/cli/commands/update.ts` — 7 changes, moderate, coupled to: init.ts ⚠, temporal.ts
132132

@@ -137,8 +137,7 @@ src/
137137

138138
### Before Editing
139139
Check `.codecortex/hotspots.md` for risk-ranked files before editing.
140-
If CodeCortex MCP tools are available, call `get_edit_briefing` for coupling + risk details.
141-
If not, read `.codecortex/modules/<module>.md` for the relevant module's dependencies and bug history.
140+
Read `.codecortex/modules/<module>.md` for the relevant module's dependencies and bug history.
142141

143142
### Project Knowledge
144143
Read these files directly (always available, no tool call needed):
@@ -148,11 +147,4 @@ Read these files directly (always available, no tool call needed):
148147
- `.codecortex/patterns.md` — coding conventions
149148
- `.codecortex/decisions/*.md` — architectural decisions
150149

151-
### MCP Tools (if available)
152-
If a CodeCortex MCP server is connected, these tools provide live analysis:
153-
- `get_edit_briefing` — risk + coupling + bugs for files you plan to edit.
154-
- `get_change_coupling` — files that co-change (hidden dependencies).
155-
- `get_project_overview` — architecture + dependency graph summary.
156-
- `get_dependency_graph` — scoped import/call graph for file or module.
157-
- `lookup_symbol` — precise symbol search (name, kind, file filters).
158150
<!-- codecortex:end -->

0 commit comments

Comments
 (0)