{"slug": "title-why-i-gave-my-coding-agent-a-memory-and-how-cortex-works", "title": "Title: Why I gave my coding agent a memory (and how Cortex works)", "summary": "A developer created Cortex, a local memory system for coding agents that stores and retrieves context using SQLite, deduplication, and a ranking engine. The tool addresses token waste and context loss by keeping all data on the machine, with features like a dashboard and optional autopilot mode. The project is open-source and seeking feedback on its memory ranking component.", "body_md": "The problem, concretely. A real session where the agent re-derived or\n\nre-broke something it had already handled. Name the cost: wasted tokens,\n\nwasted time, lost context.\n\nWhy existing options didn't fit. Cloud memory = your code leaves the\n\nmachine. Bigger context windows = you still pay to re-read everything and\n\nstill lose it at session end.\n\nThe design. Walk the flow: capture policy (dedup + normalize, drop the\n\n\"done!\" noise) → typed provenance links → full-text index → ranking engine\n\nthat packs recall to a token budget. One SQLite file, one local process.\n\nDrop in the architecture mermaid diagram from the README.\n\nThe parts people can see. Dashboard (blocked work first, explained search\n\nscores, graph view). Then Autopilot as the \"if you want it\" layer — git\n\nworktrees, model routing, the hard off-limits guard as the safety story.\n\nWhat's next / call for feedback. Be honest that it's early. Link the repo,\n\ninvite issues, say which part you most want eyes on (the memory ranking).\n\n[git](https://github.com/gsl0001/Cortex.git)", "url": "https://wpnews.pro/news/title-why-i-gave-my-coding-agent-a-memory-and-how-cortex-works", "canonical_source": "https://dev.to/gsl0001/title-why-i-gave-my-coding-agent-a-memory-and-how-cortex-works-4nnm", "published_at": "2026-07-18 01:46:13+00:00", "updated_at": "2026-07-18 02:28:02.877116+00:00", "lang": "en", "topics": ["developer-tools", "artificial-intelligence", "ai-agents"], "entities": ["Cortex", "SQLite"], "alternates": {"html": "https://wpnews.pro/news/title-why-i-gave-my-coding-agent-a-memory-and-how-cortex-works", "markdown": "https://wpnews.pro/news/title-why-i-gave-my-coding-agent-a-memory-and-how-cortex-works.md", "text": "https://wpnews.pro/news/title-why-i-gave-my-coding-agent-a-memory-and-how-cortex-works.txt", "jsonld": "https://wpnews.pro/news/title-why-i-gave-my-coding-agent-a-memory-and-how-cortex-works.jsonld"}}