Commit Graph

15 Commits

Author SHA1 Message Date
Jarvis Prime
cbf3c8141c fix: increase max_tokens for repo-level docs to 1024
The new structured repo doc prompt (5 sections with headers) needs more
room than the old 4-6 sentence prompt. File and relationship docs stay
at 256 tokens. Plumbed max_tokens through _call_llm → _call_ollama/_call_openai.
2026-03-05 04:25:33 +00:00
Jarvis Prime
c9e4337e15 feat: upgrade repo-level doc prompt for CLAUDE.md-quality narratives
Repo summaries now generate structured, opinionated overviews with:
- What This Project Does (purpose, not generic description)
- Architecture (entry points, request flow, key abstractions)
- Key Patterns (conventions an agent must match)
- Where Things Live (non-obvious file ownership map)
- Gotchas (surprises, race conditions, naming traps)

Addresses Mike/Dmitry feedback: roll-up summaries must be 'actually usable.'
Old prompt produced 4-6 generic sentences. New prompt produces a real
onboarding doc that reads like a senior engineer wrote it.
2026-03-05 04:24:26 +00:00
Jarvis Prime
4e98a09cff docs: add find_path and get_file_signatures to CLAUDE.md query patterns 2026-03-05 04:23:40 +00:00
Jarvis Prime
3256e4e7c3 feat: add find_path and get_file_signatures MCP tools
- find_path: BFS traversal to trace relationship chains between two files (max N hops)
- get_file_signatures: lightweight context mode returning just function/type names
- db.find_path(): bidirectional BFS with shortest-path tracking
- db.get_all_files(): list all files with docs and staleness
- db.get_file_signatures(): return functions list without full doc payload

Inspired by Octocode's GraphRAG path-finding pattern.
Addresses Mike/Dmitry feedback on usable roll-up summaries.
2026-03-05 04:23:13 +00:00
Jarvis Prime
e28e1a61b2 Fix: create repo record before files (foreign key constraint) 2026-03-04 04:43:54 +00:00
Jarvis Prime
357f4905ed Fix watch.sh: run uv sync + db migrations on startup 2026-03-04 04:43:19 +00:00
Jarvis Prime
f077398c5d Add .env loading to all scripts (simulate_merge, refresh_stale, mcp_server) 2026-03-04 04:42:28 +00:00
Jarvis Prime
6ebd8f8d28 Add .env file loading — cp .env.example .env and edit 2026-03-04 04:41:48 +00:00
Jarvis Prime
66f9f03409 Add .env.example, .gitignore 2026-03-04 04:41:05 +00:00
Jarvis Prime
4acb057042 Add install.sh — global Claude Code setup for Developer Intelligence
- Installs MCP config to ~/.claude/mcp.json (merges with existing)
- Appends knowledge graph instructions to ~/.claude/CLAUDE.md
- Run once, works in any repo after that
2026-03-04 04:40:40 +00:00
Jarvis Prime
65e114a5d6 Add OpenAI-compatible backend support (Kiro gateway, OpenRouter)
- LLM_BACKEND=openai routes to /v1/chat/completions
- Default: ollama (unchanged)
- For Kiro gateway: LLM_BACKEND=openai OPENAI_URL=http://192.168.86.11:8000 OPENAI_MODEL=claude-haiku-4
- Updated README with new env vars
2026-03-04 04:37:46 +00:00
Jarvis Prime
20253329e4 Add db migrations, update watch.sh for uv + idempotent runs
- Schema versioned with migrations table
- watch.sh runs db migrations on every pull
- watch.sh uses uv run/sync instead of pip
- Fixed parser.py reference in watch.sh
2026-03-04 04:32:17 +00:00
Jarvis Prime
9680dc07eb Fix: add missing parser/docgen, rename parser→go_parser, add uv packaging
- parser.py renamed to go_parser.py (avoids Python builtin conflict)
- docgen.py was missing from flat structure
- Added pyproject.toml for uv
- Updated .mcp.json to use uv run
- Updated README for uv workflow
2026-03-04 04:30:43 +00:00
Jarvis Prime
81b0c699a0 Add watch.sh — auto-pull and restart on new commits 2026-03-04 04:27:02 +00:00
Jarvis Prime
af2e54b5f3 Initial POC: Developer Intelligence knowledge graph
- SQLite backend with file/repo/relationship entities
- tree-sitter Go AST parser for deterministic import detection
- Ollama doc generation with concurrent batch processing
- MCP server (FastMCP) for Claude Code integration
- Merge simulation with staleness cascade
- Lazy refresh for stale relationship and repo docs
- CLAUDE.md for agent context
2026-03-04 04:25:14 +00:00