Give your AI assistant a 200 IQ boost โ feed it your entire codebase in 3 seconds.
Stop wasting 10-15 minutes every time you start a new AI session explaining your project. DevContext extracts structured, AI-ready context from any codebase so your favorite AI assistant already knows your project cold.
Install ยท Quick Start ยท Examples ยท Documentation
Every AI coding assistant fails the same way โ it doesn't know your project.
# You before DevContext:
"Here's my codebase, it's a REST API with auth and database..."
# With DevContext:
$ devcontext generate . | pbcopy # Done. Paste into AI. Instant context.You lose 10-15 minutes per session explaining your project to every new AI chat.
If you use AI assistants 5 times a day, that's 1 hour wasted daily.
DevContext gives that time back.
- ๐ง Universal context extraction โ Any language: Python, JS, TS, Go, Rust, Java, C++, and 20+ more
- โก Blazing fast โ Analyzes 10,000 files in under 30 seconds
- ๐ Smart relationship mapping โ Knows which files import which
- ๐ฆ Zero dependencies โ Single
pip install. No external services. - ๐ค AI-native output โ JSON optimized for LLM consumption, or readable Markdown
- ๐ Works everywhere โ CLI, GitHub Actions, CI/CD, Docker, anywhere
pip install devcontextOr with Homebrew (coming soon):
brew install devcontext# Generate context for any project
devcontext generate .
# Save to file
devcontext generate . -o context.json
# Get beautiful Markdown output
devcontext generate . -f md
# Show just the file tree
devcontext tree .That's it. Paste the output into ChatGPT, Claude, Copilot, or any AI assistant.
$ devcontext generate ./my-django-apiOutput:
{
"tool": "DevContext",
"version": "0.1.0",
"root": "./my-django-api",
"summary": {
"total_files": 47,
"by_language": {"python": 32, "javascript": 12, "yaml": 3}
},
"structure": {
"main.py": {"functions": ["app", "create_user", "authenticate"], "classes": ["APIRouter"]},
"models/user.py": {"functions": ["User.save", "User.validate"], "classes": ["User", "Admin"]}
}
}$ devcontext generate ./my-nextjs-app$ devcontext generate ./my-go-servicegraph LR
A[Your Codebase] --> B[DevContext Scanner]
B --> C[Parser]
C --> D[AI-Ready Context]
D --> E[ChatGPT]
D --> F[Claude]
D --> G[Copilot]
- Scan โ Recursively walks your project, smart-filtering noise
- Parse โ Extracts functions, classes, imports, exports from each file
- Structure โ Builds relationship map of your codebase
- Output โ Formats as JSON (for AI) or Markdown (for humans)
| Language | Functions | Classes | Imports |
|---|---|---|---|
| Python | โ | โ | โ |
| JavaScript/TypeScript | โ | โ | โ |
| Go | โ | โ | โ |
| Rust | โ | โ | โ |
| Java | โ | โ | โ |
| C/C++ | โ | โ | โ |
| Ruby | โ | โ | โ |
| PHP | โ | โ | โ |
| Swift | โ | โ | โ |
| Kotlin | โ | โ | โ |
| ...and 15+ more |
- ๐ค AI Pair Programming โ Give any AI assistant instant project context
- ๐ Code Review โ Generate comprehensive code overviews for human or AI review
- ๐ Documentation โ Auto-generate project structure docs
- ๐ Onboarding โ New developers get up to speed instantly
- โก Debugging โ Paste context into AI to get faster, more accurate help
- name: Generate Code Context
run: |
pip install devcontext
devcontext generate . -o context.json
echo "context=$(cat context.json)" >> $GITHUB_ENV
- name: Use with AI
run: |
# Your AI tool of choice gets ${{ env.context }}| Feature | DevContext | copilot-cli | codebase-map | context7 |
|---|---|---|---|---|
| Zero config | โ | โ | โ | โ |
| No API keys | โ | โ | โ | โ |
| Works offline | โ | โ | โ | โ |
| Any language | โ | โ | โ | โ |
| Open source | โ | โ | โ | โ |
| Free | โ | โ | โ | โ |
Contributions welcome! See CONTRIBUTING.md for setup instructions.
MIT ยฉ jhony91792-oss
Star โญ if DevContext saved you time