memcode-ai/memcode
memcode is a coding agent that keeps a memory of your repo, working both as a terminal tool and as a chat-app gateway from one binary
Unlike most coding agents that start every session from scratch, memcode stores a persistent model of your repository in a .memcode folder, tracking past work, failed approaches, and corrections you've given it. One Go binary runs two ways: Code, an interactive terminal agent, and Agents, a self-hosted gateway that answers across twelve chat channels. It can run on your own API keys, a local model like Ollama, or a hosted memcode account.
What it does
- The .memcode folder records repo structure, what was worked on before, failed attempts, and user-corrected preferences, so the team doesn't have to re-explain context each time.
- It defaults to cheap models for routine work and switches to stronger models for hard or risky tasks, while /model lets you pin a specific model manually.
- The /plan command researches the codebase, drafts an approach, and gets a second model's review before execution proceeds on the approved plan.
- The same binary can run as a gateway across twelve channels — Telegram, Discord, Slack, GitHub, WhatsApp, Email, Signal, Matrix, Mattermost, Microsoft Teams, Google Chat, and SMS — replying in the same conversation the request came from.
- Users can connect their own API keys, a local endpoint such as Ollama, or a hosted memcode.ai account to run any model they choose.
Why it matters
For developers tired of re-explaining project context to a coding agent every session, and for teams that want an agent they can run across their own chat tools without being locked to one model vendor, this offers a self-hosted, MIT-licensed alternative.
Terms in this repo
- MCP · a protocol that lets a model connect to external tools and data sources
- gateway · a relay server that receives messages from chat channels and routes them to the agent
- context compaction · trimming long conversation history down to essentials before sending it to the model
- BYOK · bring your own key — using your own existing API credentials
Repository description (English)
The coding agent that remembers your repo. CLI, gateway, MIT.
Open on GitHubCoverage
Trending repos
- vorssaint/vorssaint-utilsOne free menu bar app replaces a dozen paid Mac utilities
- Alishahryar1/free-claude-codeA local proxy that lets coding AI agents run on 49 free or cheap model providers instead of one paid service
- freestylefly/awesome-gpt-image-2A library of 532 reverse-engineered prompts that turn GPT-Image2 into a predictable image-making tool
- block/buzzAn open-source workspace where humans and AI agents chat, code, and review in the same rooms
- NousResearch/hermes-agentNous Research's Hermes is an AI agent that gets smarter the more you use it
- virgiliojr94/book-to-skillA tool that turns technical book PDFs into on-demand reference skills for AI coding agents
- VoltAgent/awesome-agent-skillsA single hub collecting over 1000 'how-to' manuals that make AI coding assistants act like experts
- anthropics/claude-plugins-communityA shared shelf where anyone's Claude add-ons get listed for install