Created comprehensive indexing script to index entire codebases
into Claude OS knowledge bases with a single command.
New Files:
- scripts/index-codebase.sh: Automated codebase indexing script
* Intelligently detects project structure (Rails, Node.js, etc.)
* Indexes docs, source code, models, services, controllers, config
* Provides progress indicators and statistics
* Handles errors gracefully
* Can be run locally or on production servers
- scripts/README.md: Complete documentation for helper scripts
* Usage examples for local and production
* Integration with Capistrano, Docker, GitHub Actions
* Cron job setup for automatic re-indexing
* Troubleshooting guide
Updated:
- docs/PRODUCTION_DEPLOYMENT.md:
* Added section on keeping code index updated
* Capistrano hook example for auto-indexing on deploy
* Cron job setup for scheduled re-indexing
* Performance impact notes
Benefits:
- One command indexes entire codebase across all knowledge bases
- Complete context for Claude (semantic search across all code)
- Pattern recognition from your coding style
- Better code suggestions matching your architecture
- Re-index on every deployment to stay current
Usage:
./scripts/index-codebase.sh Pistn /path/to/project http://localhost:8051🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>