{"slug": "your-ai-coding-agent-forgets-everything-between-sessions-here-s-how-to-fix-that", "title": "Your AI coding agent forgets everything between sessions. Here's how to fix that.", "summary": "A developer built nodestone, an open-source project context memory engine that preserves AI coding agent context across sessions. The tool captures active tasks, decisions, and architecture drift, providing compressed context packs to agents like Claude, Cursor, and Gemini. It includes drift detection to flag mismatches between planned and actual code changes.", "body_md": "You spend 20 minutes rebuilding context every time you open a new Claude Code or Cursor session. The architecture decision from last week? Gone. The task you were halfway through? Lost. The rationale behind that weird `except: pass`\n\nyou left as a TODO? Your future self will curse past you.\n\nI built **nodestone** — a project context memory engine that lives alongside your repo. It remembers decisions, tasks, and architecture drift across AI sessions, regardless of which agent you're using. One command, and your agent picks up exactly where it left off.\n\nInstall:\n\n```\npip install nodestone\n```\n\nStart a session:\n\n```\nnodestone start \"Refactor auth middleware to use JWT\"\n```\n\nnodestone creates a compressed context pack (~500 tokens) that captures: active tasks, recent decisions, detected drift between plan and code, and milestone status. Your agent receives this as system context on the next session. Full files stay on disk — only the signal travels.\n\nSay you planned a three-phase refactor but your teammate hotfixed a core module mid-stream. You won't notice until CI breaks. nodestone's drift detection compares actual file changes against your plan:\n\n```\nnodestone plan check\n# Output: DRIFT DETECTED: src/auth/jwt.py modified outside planned scope\n#         Expected: src/auth/middleware.py, tests/test_auth.py\n#         Actual:   src/auth/jwt.py (unplanned), src/auth/middleware.py\n```\n\nIt flags the mismatch before you waste hours debugging.\n\n`nodestone context`\n\ncommand in your session starter.Git tells you *what* changed. nodestone tells you *why* you changed it, *what you were about to do next*, and *whether reality matches the plan*. They complement each other — commit messages record history, nodestone maintains forward context.\n\nChatGPT memory is per-chatbot. nodestone is per-project. It works across Claude, Cursor, Gemini, and any future agent. Your context follows the repo, not the chat window.\n\n**nodestone is free and open-source.** `pip install nodestone`\n\n— check it out at [deepstrain.dev](https://deepstrain.dev) or the [GitHub repo](https://github.com/massiron/nodestone).\n\nI'd love to hear what's missing for your workflow. What would make context persistence actually work for your team?", "url": "https://wpnews.pro/news/your-ai-coding-agent-forgets-everything-between-sessions-here-s-how-to-fix-that", "canonical_source": "https://dev.to/massiron/your-ai-coding-agent-forgets-everything-between-sessions-heres-how-to-fix-that-2cja", "published_at": "2026-06-13 07:54:01+00:00", "updated_at": "2026-06-13 08:17:47.395077+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents"], "entities": ["nodestone", "Claude Code", "Cursor", "Gemini", "deepstrain.dev", "GitHub"], "alternates": {"html": "https://wpnews.pro/news/your-ai-coding-agent-forgets-everything-between-sessions-here-s-how-to-fix-that", "markdown": "https://wpnews.pro/news/your-ai-coding-agent-forgets-everything-between-sessions-here-s-how-to-fix-that.md", "text": "https://wpnews.pro/news/your-ai-coding-agent-forgets-everything-between-sessions-here-s-how-to-fix-that.txt", "jsonld": "https://wpnews.pro/news/your-ai-coding-agent-forgets-everything-between-sessions-here-s-how-to-fix-that.jsonld"}}