revert: remove codebase intelligence system

Rolled back the intel system due to overengineering concerns:
- 1200+ line hook with SQLite graph database
- 21MB sql.js dependency
- Entity generation spawning additional Claude calls
- Complex system with unclear value

Removed:
- /gsd:analyze-codebase command
- /gsd:query-intel command
- gsd-intel-index.js, gsd-intel-session.js, gsd-intel-prune.js hooks
- gsd-entity-generator, gsd-indexer agents
- entity.md template
- sql.js dependency

Preserved:
- Model profiles feature
- Statusline hook
- All other v1.9.x improvements

-3,065 lines removed

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Lex Christopherson
2026-01-21 10:28:53 -06:00
parent 93b963c3fe
commit d1fda80c7f
20 changed files with 17 additions and 3065 deletions

View File

@@ -76,17 +76,6 @@ Map an existing codebase for brownfield projects.
Usage: `/gsd:map-codebase`
**`/gsd:analyze-codebase`**
Bootstrap codebase intelligence for existing projects.
- Scans all JS/TS files and extracts exports/imports
- Detects naming conventions, directory patterns, file suffixes
- Creates `.planning/intel/` with index, conventions, and summary
- Works standalone (no `/gsd:new-project` required)
- After initial scan, PostToolUse hook continues incremental learning
Usage: `/gsd:analyze-codebase`
### Phase Planning
**`/gsd:discuss-phase <number>`**
@@ -339,19 +328,6 @@ Quick switch model profile for GSD agents.
Usage: `/gsd:set-profile budget`
### Codebase Intelligence
**`/gsd:query-intel <type> [path]`**
Query the codebase intelligence graph database.
- `dependents <file>` — What files depend on this? (blast radius)
- `hotspots` — Which files have the most dependents?
Requires `/gsd:analyze-codebase` to build the graph first.
Usage: `/gsd:query-intel dependents src/lib/db.ts`
Usage: `/gsd:query-intel hotspots`
### Utility Commands
**`/gsd:help`**
@@ -389,10 +365,6 @@ Usage: `/gsd:update`
│ └── done/ # Completed todos
├── debug/ # Active debug sessions
│ └── resolved/ # Archived resolved issues
├── intel/ # Codebase intelligence (auto-populated)
│ ├── index.json # File exports and imports
│ ├── conventions.json # Detected patterns
│ └── summary.md # Context for session injection
├── codebase/ # Codebase map (brownfield projects)
│ ├── STACK.md # Languages, frameworks, dependencies
│ ├── ARCHITECTURE.md # Patterns, layers, data flow