Skip to content

Commit 94c03c9

Browse files
chore: remove serena leftovers (hooks, permissions, docs, templates) (#8518)
## Summary Serena MCP was removed from the project, but config and docs still referenced it. The most visible symptom: every Claude Code session failed on startup with ``` SessionStart:startup hook error Failed with non-blocking status code: /bin/sh: 1: serena-hooks: not found ``` This completes the removal: - **`.claude/settings.json`**: drop all `serena-hooks` hooks (PreToolUse remind/auto-approve, SessionStart activate, Stop cleanup) and the `mcp__serena__*` permission entry - **`.serena/`**: delete the tracked project files and memories (were already deleted locally, now committed) - **`CLAUDE.md`**: remove the Serena tool section; Context7 guidance kept - **`agentic/commands/`**: replace Serena tool references (`mcp__serena__*`, `list_dir`, `find_file`, `search_for_pattern`, `think_about_collected_information`) with built-in Glob/Grep/Read/Edit equivalents across the audit auditors, `audit.md`, `agentic.md`, `prime.md`, `prime-deep.md`, and `audit.workflow.js` Historical artifacts (`agentic/runs/`, `agentic/audits/`, `agentic/specs/`) intentionally untouched. ## Verification - `grep -rni serena` over the repo (excluding historical artifacts) returns zero hits - Both settings files validate as JSON - The local untracked `.claude/settings.local.json` was cleaned separately (not part of this PR) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent e2a5841 commit 94c03c9

25 files changed

Lines changed: 87 additions & 716 deletions

.claude/settings.json

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
"Read(/tmp/*)",
99
"mcp__plugin_context7_context7__*",
1010
"mcp__plugin_playwright_playwright__*",
11-
"mcp__serena__*",
1211
"Bash(git commit *)",
1312
"Bash(git push *)"
1413
],
@@ -17,49 +16,5 @@
1716
},
1817
"env": {
1918
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
20-
},
21-
"hooks": {
22-
"PreToolUse": [
23-
{
24-
"matcher": "",
25-
"hooks": [
26-
{
27-
"type": "command",
28-
"command": "serena-hooks remind --client=claude-code"
29-
}
30-
]
31-
},
32-
{
33-
"matcher": "mcp__serena__*",
34-
"hooks": [
35-
{
36-
"type": "command",
37-
"command": "serena-hooks auto-approve --client=claude-code"
38-
}
39-
]
40-
}
41-
],
42-
"SessionStart": [
43-
{
44-
"matcher": "",
45-
"hooks": [
46-
{
47-
"type": "command",
48-
"command": "serena-hooks activate --client=claude-code"
49-
}
50-
]
51-
}
52-
],
53-
"Stop": [
54-
{
55-
"matcher": "",
56-
"hooks": [
57-
{
58-
"type": "command",
59-
"command": "serena-hooks cleanup --client=claude-code"
60-
}
61-
]
62-
}
63-
]
6419
}
6520
}

.serena/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.serena/memories/code_style.md

Lines changed: 0 additions & 64 deletions
This file was deleted.

.serena/memories/commands.md

Lines changed: 0 additions & 87 deletions
This file was deleted.

.serena/memories/project_overview.md

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)