Skip to content

Commit 104056b

Browse files
committed
chore: gitignore the agent memory folder and code-graph artifact
`memory/` and `.codebase-memory/` were only ignored through an uncommitted working-tree edit, so the protection did not survive a fresh clone: anyone running `git add -A` there would have swept the markdown brain — which records deploy hosts, box addresses and workflow notes — straight into a public repo. Commit the rules so they actually hold. `memory/` is deliberately local. `.codebase-memory/` is a regenerable binary index with no value in git. Also adds `.cbmignore` (extra exclusions for the code-graph indexer, so it stops walking vendored and scratch directories) and ignores a stray `frontend;C/` directory left behind by a malformed shell redirect. Audited before committing: nothing ignored is currently tracked, and no maintainer identifiers are present in the tree.
1 parent e44baad commit 104056b

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

.cbmignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Extra exclusions for codebase-memory-mcp, layered on top of .gitignore.
2+
# Goal: keep search_graph free of dead symbols from vendored code, build
3+
# output, and maintainer scratch space.
4+
5+
# Vendored / generated
6+
node_modules/
7+
frontend/dist/
8+
backend/dist/
9+
build/
10+
dist/
11+
12+
# Local backup of the pre-public git history — full duplicate of the tree.
13+
# Indexing it would double every symbol.
14+
.git.bak/
15+
16+
# Maintainer scratch space (throwaway SSH runners, deploy tarballs)
17+
.claude_temp/
18+
19+
# Stray empty dir from a malformed shell redirect; safe to delete
20+
frontend;C/
21+
22+
# Backups / snapshots
23+
*.bak
24+
*.bak*
25+
*.orig
26+
*.old/
27+
*_bak_*/
28+
29+
# Agent state
30+
.serena/
31+
.claude/
32+
.cursor/
33+
.playwright-mcp/
34+
35+
# Runtime data / archives (already gitignored, repeated for safety)
36+
data/
37+
*.zip
38+
*.tar.gz

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,19 @@ desktop.ini
108108
.continue/
109109
.playwright-mcp/
110110

111+
# The markdown "brain" — durable project facts (architecture maps, deploy
112+
# hosts, known issues, release log) that agents read at session start.
113+
# Same reason as above: it records the maintainer's specific infrastructure
114+
# and workflow, which has no place in a public repo.
115+
memory/
116+
117+
# Code-graph artifact built by codebase-memory-mcp. Regenerable in seconds
118+
# via index_repository; binary blob, no value in git.
119+
.codebase-memory/
120+
121+
# Stray directory created by a malformed shell redirect on Windows.
122+
frontend;C/
123+
111124
# ── Misc ─────────────────────────────────────────────────────────────────────
112125
/tmp/
113126
*.tmp

0 commit comments

Comments
 (0)