Built a CLI that gives your codebase a memory — DeepSeek Blog | Neura Market
    Neura MarketNeura Market/DeepSeek
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityTrendingGenerate
    DeepSeekBlogBuilt a CLI that gives your codebase a memory
    Back to Blog
    Built a CLI that gives your codebase a memory
    opensource

    Built a CLI that gives your codebase a memory

    Surya Sourav March 22, 2026
    0 views

    Two weeks ago I was debugging a module I had written myself. Sat staring at it for twenty minutes....

    Two weeks ago I was debugging a module I had written myself. Sat staring at it for twenty minutes. everything was unfamiliar. The structure made no sense to me. I had to reverse-engineer my own code like a stranger had written it. The uncomfortable truth — an AI had written significant chunks of it, I had reviewed, merged, and completely moved on. Two weeks later it was an alien to me ! I kept thinking about this. We talk constantly about LLMs having a context window like it is some fundamental technical limitation. We never apply the same framing to ourselves. > Developers have a context window too. AI-assisted development is just filling it faster than any human brain can track. **_The problem with existing solutions_** The obvious answer is "write better documentation." Every team says this. No team actually does it consistently — not because developers are lazy but because documentation written as a separate task from coding immediately starts drifting from reality. Asking your IDE to document as it goes is worse. Cursor adds a new README for every three lines it touches. Imagine 3-4 Readme files just for an Auth module ! nobody on earth would feel enthusiastic to open ai generated docs ! What I actually needed was something that treated documentation as a continuous output of development — written automatically at the one moment developers never skip. The commit. ( _~ Version Controlled Documentation_ ) **_What I built_** DevMem is an open source Go CLI that hooks into your git workflow and maintains a living knowledge base inside your repository. ` First run — crawls your entire repo and documents everything devmem init After every commit — patches only what changed devmem capture Ask your codebase anything devmem query "how does the auth module work?"` **_The thing I did not expect_** The .devmem/ folder ends up being genuinely useful context for AI coding tools. When Cursor or Copilot has access to accurate, current, structured documentation of every module — what it does, what its API surface is, what it depends on, what changed recently — it becomes meaningfully better at helping you. It stops making assumptions about your architecture because it is reading your actual architecture. One knowledge base. Useful for your teammates and your AI tools simultaneously. That was not the original goal but it might be the most valuable outcome. **_ Honest rough edges_** Module detection uses directory heuristics. It works well on standard Go, Node, and Python project layouts. Unconventional structures need a small manual config to define module boundaries explicitly — the heuristics will miss or misgroup things. Large messy refactor commits that touch many modules simultaneously stress-test the capture prompt in ways I have not fully solved. The classification is harder and the patches are less surgical than I want them to be. The query command is only as good as your documentation is — which is only as good as your captures are. If you skip captures for two weeks the query answers drift. **_Stack _** Go + Cobra Anthropic API (Claude) Single binary — no runtime dependencies go install, direct download MIT licensed GitHub: https://github.com/surya-sourav/devmem https://fun-tomato-aiuks1hrge.edgeone.app/ Demo : ![Commands List of CLI ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xiw2e4r3qadbizzjuv9y.png) ![DevMem in Action ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rovmi12b2d0seqq2ults.png) ![Docs Arrangement Within the Root Project ](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0his7euu7ayvhylnx5tp.png) Built this because I was tired of being a stranger in my own codebase. Curious whether anyone else has felt the same way and what approaches you have tried. Brutal feedback welcome — especially on the module detection and the query command. Those are the two places where real-world codebases will stress-test the assumptions hardest.

    Tags

    opensourceaiproductivitygo

    Comments

    More Blog

    View all
    How I'm using ASTs and Gemini to solve the "Codebase Onboarding" problem 🧠ai

    How I'm using ASTs and Gemini to solve the "Codebase Onboarding" problem 🧠

    Hi everyone! 👋 I’m Tara, a Senior Software Engineer and Consultant. Over the years, I've jumped...

    T
    tworrell
    Local AI Will Save Us All (The Math Says So, Trust Me)ai

    Local AI Will Save Us All (The Math Says So, Trust Me)

    Every few weeks a take goes viral in tech circles making the case for ditching cloud AI and running...

    S
    Sebastian Schürmann
    Lost in the AI Hype, I Started Smallai

    Lost in the AI Hype, I Started Small

    And it helped me get back into tech without drowning TL;DR at the end Coming back to...

    R
    Rohini Gaonkar
    Building a Replay-Tested Interactive Brokers Client in Gogo

    Building a Replay-Tested Interactive Brokers Client in Go

    I wanted an IBKR library that felt like Go and had testing I could trust. So I wrote one.

    T
    Thomas Marcelis
    Playwright in Pictures: Fully Parallel Modeplaywright

    Playwright in Pictures: Fully Parallel Mode

    Playwright’s fullyParallel mode is often treated as a simple performance switch. In practice, it...

    V
    Vitaliy Potapov
    Designing a CLI for Both Humans and Agentscli

    Designing a CLI for Both Humans and Agents

    Learn how Alpic designed its CLI for both human developers and AI agents — covering tradeoffs like polling, context windows, interactivity, and statelessness.

    J
    Julien Vallini

    Stay up to date

    Get the latest DeepSeek prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for DeepSeek and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.