Memcode is an open-source terminal-based AI coding agent built in Go by the memcode-ai team. It provides a terminal user interface (TUI) and command-line harness designed to orchestrate agentic coding tasks, manage background jobs, and interact directly with a developer's local codebase. Day-to-day interactions occur within a terminal interface featuring interactive model selection, plan-mode tracking, and tool execution. Memcode integrates with external LLM providers including Gemini and DeepSeek (such as DeepSeek V4) alongside standard model routing. It includes native support for the Model Context Protocol (MCP) to connect external tool servers, sandboxed tracing, and automated diff application. Memcode distinguishes itself through its background execution architecture and memory features. It tracks background agent processes with live heartbeat telemetry, inspectable launch trees, and artifact tracking (`memcode artifacts`). It also incorporates persistent knowledge features such as lesson distillation and workspace-level execution safeguards. Memcode is hosted openly on GitHub. As a Go-based project, it operates as a self-contained binary with local configuration management and direct provider API integrations.
Tags: ai agent, cli, code assistant, coding agent, developer tools, OpenSource
/model), plan-mode task tracking, and live agent status views. - Background agent execution — Manages multi-agent tasks in the background with heartbeat telemetry, token accounting, and a live TUI process tree. - Artifact management — Dedicated CLI commands (memcode artifacts list/open/delete) and slash commands to inspect and manage generated outputs. - Model Context Protocol (MCP) support — Connects to external MCP servers with scoped headers, host-level isolation, and user-level authorization controls. - Lesson distillation & memory — Synthesizes lessons from sessions to improve context retention across recurring coding workflows. - Extensible model routing — Native support for multiple reasoning and coding LLM providers, including DeepSeek V4 and Gemini.Memcode is aimed at software engineers and CLI-centric developers who want a Go-powered terminal coding assistant capable of managing background jobs, MCP tools, and multi-model workflows. It is not intended for non-technical users or developers seeking a closed-loop, GUI-only IDE extension.
bash git clone https://github.com/memcode-ai/memcode.git cd memcode go build -o memcode ./cmd/memcode sudo mv memcode /usr/local/bin/bash # Set your required provider API key (e.g., DeepSeek or Google Gemini) export DEEPSEEK_API_KEY="your-api-key-here" # Launch the interactive terminal UI memcodebash # Switch models inside the TUI /model # Inspect and manage generated artifacts via CLI memcode artifacts listPart of CLI Coding Agents
Categories: AI Coding Agents, Code Assistants, Developer Tools