Feature request: repo-level memory so AI agents keep context across sessions and tools #212396
Replies: 3 comments 3 replies
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
What has worked for me on the "agent undoes a fix from two days ago" problem is to keep the reason next to the code, not only in a session brief.
That covers one repo. The part that does not fit in a repo is what follows you across repos and chats: your own rules, preferences and work history. I built Cloud Alter Ego for that layer. It is a remote MCP connector that serves those as plain Markdown files from your own cloud storage, so Claude.ai, ChatGPT and agents can all read the same files. It does not replace a per-repo handoff. Docs: https://cloudalterego.cafeboon.com/docs.html |
|
Part of this already exists, but each vendor keeps it to itself. I think that's the real gap to ask GitHub about:
So the ask could be narrower than a new feature: expose Copilot Memory's repository facts, with the same citations and expiry, through the GitHub API or MCP server, so any agent can read and write the same store. What works for me today, without extra tooling:
On the real-time question above: a file in the repo only syncs on push/pull, so it can't be sub-second. A PR or issue is visible to every tool on its next read, with no sync layer to run. None of these push changes into a session that's already running, though; the agent has to re-read. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
Body
The problem
When I work on a repo with AI agents (Copilot, Claude Code, Codex), every new session starts from zero. The agent doesn't know:
So I re-explain the project every morning, and agents sometimes undo a fix from two days ago because they don't know why it was made.
copilot-instructions.md / CLAUDE.md help, but they have to be updated by hand, they keep growing, and they don't capture session-level state.
What I'd like GitHub to consider
A small, structured "handoff" stored per repository that any agent can read and write:
Since GitHub already sits between all these agents, the repo is the natural place for this memory to live.
What I do today
I built an open-source workaround for myself, CogniCore (Apache 2.0): https://github.com/cognicore-dev/cognicore-env. It uses Claude Code / Codex hooks to save a short handoff after each session and exposes it over MCP, so Claude.ai, ChatGPT and Cursor can read it too. It works, but native support in GitHub would be far better for everyone.
Questions for others
How do you keep context between agent sessions on the same repo? Notes file, issues, something else?
All reactions