DEV Community

FahmyDev
FahmyDev

Posted on

I built DevOS so my coding agent would finally remember my project

Every AI coding session I started the same way: re-explaining the project. Same repo, same architecture, same decisions — from zero, every time. Repo packers helped, but they only dump files into a prompt. They don't understand, and they definitely don't remember.

So I built DevOS (https://github.com/fahmymohsen777-cmd/devos) — an open-source CLI that turns a repository into understanding an AI can actually use, and then remembers it.

How it works

  1. Scan — deterministically, locally, with zero tokens. Files, languages, frameworks, dependencies, symbols, imports, git state. Only facts it observed. Same input, same facts.
  2. Knowledge Graph — those facts become a graph with provenance and a confidence score per fact.
  3. Memory — devos remember "we use Stripe, not PayPal" persists across runs, keyed by a stable project identity. devos recall brings it back, relevance-ranked.
  4. Context Compiler — for any task, it builds the smallest secret-free pack that suffices, with a real o200k token count and a hard budget. Secrets are redacted before anything leaves the machine.
  5. Provider Router — cheapest, fastest, or first: OpenAI-compatible endpoints, native Anthropic, native Gemini. No key? It prints the pack and works fully offline.

Try it

npx devos-os scan .
npx devos-os ask . "where is the auth middleware?"
npx devos-os pack . --out pack.md

Use it inside your agent

DevOS is also an MCP server — five tools (scan / pack / ask / remember / recall) for Claude Code, Cursor and OpenCode:

{ "mcpServers": { "devos": { "command": "npx", "args": ["-y", "devos-os", "mcp"] } } }

Notes your agent writes in one session are there in the next. There's also devos watch for live re-scans and a plugin host.

What's honest

Parsing is real AST now — TypeScript compiler for TS/JS, tree-sitter for Python and Go — and dependencies are read from package.json, requirements.txt, pyproject.toml and go.mod alike. The plugin host works but has no sandbox yet: plugins run in-process, so install only ones you trust. Tests: 202 total, 177 passing, 0 failing.

If you've fought the same "re-explain the repo every session" problem, try it on your repo and tell me what it gets wrong: https://github.com/fahmymohsen777-cmd/devos — stars and issues both welcome.

Top comments (0)