devbrain-0.2.0 is not a library.
devbrain
A local-first CLI that remembers your developer workflow: commands, errors, and fixes, so you never debug the same issue twice.
Why devbrain?
You fix a bug.
Two weeks later, you hit it again.
You remember solving it, but not how.
You search history and logs, then waste time.
devbrain solves that.
It passively captures your workflow:
- commands you run
- errors you encounter
- fixes you apply
Then it makes searchable, structured, and reusable.
Core Features
Developer Memory
Search
Supports:
- multi-word search
- tag-aware results
- time filtering
- type filtering
- ranked relevance
Automatic Capture (Bash)
devbrain can log commands:
No manual logging required.
Tagging
Stats and Insights
Example:
Total entries: 120
Logs: 60
Commands: 45
Errors: 15
Top project: api
Top tags: backend, auth
Session Tracking
Group commands by session:
Useful for reviewing a dev session.
Cleanup and Export
Installation
Example Workflow
Bash Integration
Add to ~/.bashrc:
PROMPT_COMMAND="devbrain_capture"
Apply changes:
Notes:
- uses Bash history (
history -a,history -n) - works best with
shopt -s histappend shell-logis internal, not for manual use
Disable auto capture:
Storage
All data is stored locally:
~/.devbrain/db.json
No cloud. No tracking. Private.
Philosophy
Capture small things consistently over capturing everything imperfectly.
What devbrain is
- developer workflow memory
- debugging aid
- command and error history
- local-first tool
What devbrain is not
- note-taking app
- AI assistant
- full IDE plugin
Tech Stack
- Rust
- clap (CLI)
- serde (storage)
- chrono (time)
Roadmap
- smarter filtering
- improved shell integration
- better ranking
- plugin support (future)
License
MIT
Contributing
PRs welcome. Keep it simple and useful.