Understand. Build. Fix. Ship. > AI-powered terminal-native coding intelligence for developers who live in the CLI.
DevSense is an open-source AI coding system that helps you:
- Understand unfamiliar repositories instantly
- Explain files, architecture, and dependencies
- Chat with your codebase directly from the terminal
- Toggle between Cloud (Gemini/Mistral) or Local (Ollama) AI models
- Scale toward fully autonomous coding workflows
👉 No IDE plugin | 👉 No editor lock-in | 👉 No context switching
🌐 Website: DEVSENSE
Get architecture-aware answers using real repository context.
devsense ask "How does authentication work?"Understand purpose, dependencies, and logic without manual scrolling.
devsense explain src/auth.tsQuickly locate core modules like Auth, API, Database, and Services.
devsense mapInteractive AI-powered terminal chat built around your specific codebase.
devsense chatChoose the backend that fits your workflow:
| Cloud Providers | Local Providers (via Ollama) |
|---|---|
| Gemini | Llama 3 / CodeLlama |
| Mistral | DeepSeek / Qwen |
| OpenAI (Planned) | Gemma / Mistral |
Run Fully Local:
devsense init
# Select Ollama -> Choose llama3Most AI coding tools are trapped inside editors. DevSense is built for Real Developers:
- ✅ Terminal-native: Stays in your flow.
- ✅ Repo-aware: Understands the "big picture."
- ✅ Privacy First: Support for 100% offline local models.
- ✅ Extensible: Open-source architecture ready for custom analyzers.
- ✅ Future-Proof: Moving toward an autonomous "Claude Code" alternative.
User ➔ CLI Commands ➔ Project Scanner ➔ Analyzer ➔ Context Builder ➔ AI Provider Layer ➔ Response
| Feature | Status |
|---|---|
| Repo Scanning & File Explanation | ✅ Complete |
| Architecture Mapping | ✅ Complete |
| Gemini / Mistral Support | ✅ Complete |
| Ollama Local AI Support | ✅ Complete |
| Context DB (SQLite) | 🚧 Phase 1 |
| Tool Execution Layer | 🚧 Planned |
| Autonomous Coding Loop | 🚧 Planned |
npm install -g devsensedevsense init- For Cloud: Add your key to
.devsense/.env(e.g.,GEMINI_API_KEY=your_key) - For Local: Install Ollama and pull a model:
ollama pull llama3
devsense summary
devsense ask "What does this project do?"
devsense explain src/server.ts
devsense chat| Command | Description |
|---|---|
devsense init |
Initialize project configuration |
devsense summary |
Get a high-level project overview |
devsense ask "<q>" |
Ask questions about the repo |
devsense explain <f> |
Detailed explanation of a specific file |
devsense chat |
Open interactive repo chat |
devsense map |
Visualize project architecture |
devsense doctor |
Diagnose setup and model availability |
- Phase 0 ✅ Local AI: Ollama integration and multi-backend support.
- Phase 1 🚧 Context DB: SQLite per-project memory and incremental scans.
- Phase 2 🚧 Tool Layer: Capability to read/write files and run terminal commands.
- Phase 3 🚧 Diff Editing: Safe patches and incremental code modifications.
- Phase 4 🚧 Autonomous Agent: Generate ➔ Execute ➔ Debug ➔ Retry loop.
git clone https://github.com/your-repo/devsense
cd devsense
npm install
npm run build
npm linkWe welcome feature requests, new provider integrations, and analyzer plugins!
- Fork the repo.
- Create your feature branch.
- Submit a PR.
If DevSense helps you, please star the repository ⭐