Commit graph

16 commits

Author SHA1 Message Date
Bob Roberts
ee7b62bc5b feat: Add cross-KB search, inline health checks, and simplify templates
All checks were successful
Tests / test (push) Successful in 13m33s
- Add search_all_knowledge_bases MCP tool + POST /api/kb/search-all endpoint
  + query_documents_multi_kb() in sqlite_manager with dedup and score merge
- Add inline health check to search_knowledge_base (24h cache, appends warnings)
- Rewrite CLAUDE.md template: 351→128 lines, project content first, session tips
- Simplify session command: 625→224 lines, 4-field state file
- Update README.md What's New to v2.5, remove Discord section
- Add cross-KB search tool to CLAUDE.md MCP tools table
- Add 5 new tests for query_documents_multi_kb (all 593 tests pass)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 11:04:21 -06:00
Bob Roberts
ecd040d08a chore: Add lifecycle tools to CLAUDE.md project template
Ensures new projects initialized with /claude-os-init include
the lifecycle slash command and MCP tools in their CLAUDE.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 10:11:04 -06:00
Bob Roberts
844762f187 feat: Add Knowledge Lifecycle Engine and fix upload_document MCP tool
Add KB lifecycle management system with deduplication, consolidation,
archival, and health analytics. Also fix pre-existing routing bug in
upload_document MCP tool (was hitting /import instead of new /documents/content).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 10:08:00 -06:00
Bob Roberts
90de2e32e4 feat: Consolidate memory skills & punch up README
Memory Skill:
- Merged remember-this into unified memory skill
- Now uses Claude OS KBs (not separate memory MCP)
- Supports natural language: "remember this:", "save to memory:", etc.
- Deleted redundant remember-this skill

README:
- New tagline: "Give Your AI a Memory"
- Added "The Magic" section showing natural language UX
- Rewrote "What is Claude OS" with before/after comparison
- Added killer line: "Claude is a tool → Claude is a partner"
- Compact features table replacing wall of checkmarks

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 16:04:43 -06:00
Bob Roberts
753d427896 fix: Configure MCP server per-project via claude mcp add
Claude Code stores MCP configs in ~/.claude.json per-project, NOT in
~/.claude/settings.json. The previous approach of writing to settings.json
didn't work - projects showed "No MCP servers configured".

Changes:
- Remove broken MCP setup from setup-claude-os.sh (was writing to wrong file)
- Add Step 2.5 to /claude-os-init that runs `claude mcp add` for each project
- Update final summary to remind users to restart Claude Code after init

Now the workflow is:
1. ./setup-claude-os.sh - Install Claude OS once
2. /claude-os-init - Run in each project (creates KBs + configures MCP)
3. Restart Claude Code - MCP connects
4. mcp__code-forge__* tools available!

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 18:16:19 -06:00
Bob Roberts
c45c2e87a5 Fixed the auto sync file watcher and updated setup script to make agent-os default install false 2025-12-12 14:37:45 -06:00
Bob Roberts
a744080e65 feat: Add Skills Library and Session Insights (v2.3)
## Skills Library
- Browse and install 36+ community skills from Anthropic & Superpowers
- Local skill templates (Rails, React, testing)
- Create custom project-specific skills
- Beautiful UI with search and filtering
- /claude-os-skills command for CLI management

## Session Insights
- Parse Claude Code native .jsonl session files
- Extract patterns, decisions, blockers automatically
- Track tool usage and file changes
- Session summary generation for LLM processing

## Documentation
- Updated README with v2.3 features
- Updated API_REFERENCE with new endpoints
- Added SKILLS_GUIDE.md and SESSIONS_GUIDE.md
- Updated GitHub Pages (docs/index.html)
- Reorganized docs (internal_docs for private)

## Bug Fixes
- Fixed httpx client closure in community skill install
- Fixed frontend request format for skill install

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-11 12:56:49 -06:00
Bob Roberts
6562d3615b Add Discord announcement and update community contributions
- Add Discord badge and invite link at top of README
- Add 5 new PRs from @illAssad (#18-#22) to contributions table

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 16:39:51 -06:00
Bob Roberts
f45f2f0c6a Major cleanup that should have done before announcing this app!!! 2025-12-02 14:35:15 -06:00
Jake Plimack
57db9d1c41 Fix hardcoded /Users/iamanmp/ paths - make paths dynamic
Resolves #9

Replace hardcoded user paths with dynamic path discovery:
- Markdown templates: derive path from command file's own location
- Shell scripts: use BASH_SOURCE and dirname
- Python files: use Path(__file__).resolve()
- Frontend: remove hardcoded defaults
2025-12-02 11:18:38 -07:00
Bob Roberts
ada9fd80fa Working on export for servicebot 2025-11-06 20:25:42 -06:00
Bob Roberts
8e41fc9dfc Requiring sessions and kanban boards 2025-11-04 16:54:48 -06:00
Bob Roberts
ddf3bac39b CRITICAL FIXES: Consolidate templates + API improvements
This commit fixes several critical issues found during comprehensive review:

## CRITICAL FIX: Template Consolidation ⚠️
- Moved 6 commands from ~/.claude/commands/ to templates/commands/
- Moved 3 skills from ~/.claude/skills/ to templates/skills/
- Team sharing was BROKEN without this (symlinks pointed to empty dirs)
- Updated README with prominent consolidation step warning
- Commands: list, remember, save, search, session, triggers
- Skills: initialize-project, remember-this, memory

## HIGH PRIORITY FIXES:
- ✅ Completed selective semantic indexing (removed TODO at line 878)
- ✅ Fixed PostgreSQL references in health check (system uses SQLite)
- ✅ Created comprehensive API documentation (docs/API_REFERENCE.md)
- ✅ Added Depends import to fix authentication endpoints

## DOCUMENTATION:
- Added complete API_REFERENCE.md (60+ endpoints documented)
- Created HYBRID_INDEXING_INTEGRATION.md (5 KB architecture)
- Updated README with API docs link + consolidation warning
- Documented all hybrid indexing endpoints with examples

## IMPROVEMENTS:
- Selective semantic indexing now actually ingests files (was placeholder)
- Health check now correctly queries SQLite instead of PostgreSQL
- All authentication endpoints now functional
- Structural indexing stores as pure JSON (no embeddings)

Impact: Team sharing now works, all features documented, critical bugs fixed.
Tested: Pistn indexing (3,117 files in 3 seconds) ✅

🚀 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-31 14:23:43 -05:00
Bob Roberts
cd92bb48ff Add hybrid indexing system - 600x faster codebase indexing
Implement revolutionary tree-sitter based hybrid indexing system that
reduces codebase indexing time from 3-5 hours to 30 seconds for large
projects like Pistn (10,000+ files).

## Key Features

Phase 1: Structural Indexing (tree-sitter, instant)
- Parse files with tree-sitter (no LLM calls)
- Extract symbols only (classes, functions, methods)
- Build dependency graph (NetworkX)
- PageRank importance scoring
- Token-budget aware repo maps
- SQLite caching for instant re-indexing
- Ready in 30 seconds for 10k files

Phase 2: Semantic Indexing (selective, optional)
- Index top 20% most important files by PageRank
- Include all documentation
- 80% reduction in embeddings
- Runs in background (20-30 minutes vs 3-5 hours)

## New Components

- app/core/tree_sitter_indexer.py (630 lines)
  - TreeSitterIndexer class with full parsing
  - Support for 15+ languages (Python, Ruby, JS, TS, Go, Rust, etc.)
  - Dependency graph builder
  - PageRank scoring
  - Token-budget binary search

- mcp_server/server.py (added 268 lines)
  - POST /api/kb/{kb_name}/index-structural
  - POST /api/kb/{kb_name}/index-semantic
  - GET /api/kb/{kb_name}/repo-map

- templates/commands/claude-os-init.md (updated)
  - New Step 5: Phase 1 Structural Indexing
  - New Step 6: Phase 2 Semantic Indexing (optional)
  - Interactive user prompts for indexing choices

- Documentation
  - docs/HYBRID_INDEXING_DESIGN.md (complete technical design)
  - HYBRID_INDEXING_COMPLETE.md (implementation summary)
  - test_hybrid_indexing.py (test script)

## Performance Gains

Before: 3-5 hours (100,000+ embeddings)
After: 30 seconds + optional 20-30 minutes (20,000 embeddings)

Speed improvement: 600x faster
Resource reduction: 80% fewer embeddings
User experience: Instant startup

## Dependencies Added

- tree-sitter>=0.21.0
- tree-sitter-languages>=1.10.0
- networkx>=3.2.1

## Inspired By

Aider's repo map approach (https://github.com/Aider-AI/aider)
with Claude OS hybrid architecture innovation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-31 13:08:18 -05:00
Bob Roberts
f9a7a2aa23 Add production deployment guide and quick reference documentation
Add comprehensive documentation for Claude OS deployment and daily usage.

Documentation Added:
- docs/PRODUCTION_DEPLOYMENT.md: Complete production deployment guide
  - Server architecture and resource allocation
  - SQLite deployment (simpler than PostgreSQL for read-heavy workloads)
  - Step-by-step deployment instructions
  - Integration with Rails applications
  - Service management, backups, monitoring
  - Troubleshooting and performance optimization
  - Security considerations

- docs/QUICK_REFERENCE.md: Developer quick reference
  - All slash commands with examples
  - Skills and trigger phrases
  - Agent-OS commands (if installed)
  - Common workflows
  - Production server commands
  - API endpoints for integration
  - Troubleshooting guide
  - Printable cheat sheet

Templates Added:
- templates/agents/: 8 Agent-OS agent templates
  - spec-initializer, spec-shaper, spec-writer
  - tasks-list-creator, implementer
  - implementation-verifier, spec-verifier
  - product-planner

- templates/project-files/agent-os/: Agent-OS project structure
  - config.yml.template
  - README.md with setup instructions
  - .gitignore for state files

Updates:
- templates/commands/claude-os-init.md: Enhanced project initialization
- templates/project-files/CLAUDE.md.template: Improved project context

Benefits:
- Easy onboarding for new team members
- Complete deployment automation
- Production-ready configuration
- Comprehensive troubleshooting
- All commands in one place

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 20:25:10 -05:00
Bob Roberts
369a8a0080 Add packaging and sharing system 2025-10-30 18:53:58 -05:00