SuperAPIAI Directory

nodecode

github.com · AI agents

Nodecode is a self-rewriting AI agent written in Common Lisp, running as a single SBCL process; terminals, browsers, phones, chatbots, and programs can all connect to the same instance through a local gateway. The model has only one tool: evaluate Lisp in the currently running program and keep the definitions, so when a tool is missing it can write one itself. It supports updating definitions one by one at runtime without restarting, extends chat rooms, model provider logins, tools, skills, GitHub repositories, and MCP servers as "cell" folders, and can autonomously manage context and recall old conversations verbatim. The project is MIT-licensed and free to use, but you must supply your own model provider key and bear the costs yourself.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Nodecode is a "living agent" written in Lisp, whose core feature is that it can rewrite itself while running. It runs as a single process in SBCL (Common Lisp system), and various clients connect through the shell. The model is equipped with only one tool: evaluate Lisp in the running program and keep what it defines.

Main capabilities

  • Runtime updates: most version updates can take effect by replacing definitions one by one in the running program, without restarting. Its own growth is saved as "generations", which can be listed with nodecode generations and rolled back with nodecode rollback N; --pristine runs only the binary itself.
  • Everything is a cell: a cell is a folder used to teach Nodecode new things, such as inhabitable chat rooms, provider logins, tools, skills, GitHub repositories, MCP servers. You can install from the hub with nodecode add nc://cline and enable it in all connected shells, or let Nodecode write one itself.
  • Autonomous context management: Nodecode decides what stays in context and what moves out; what moves out is not lost; old turns leave the window as a whole and are not rewritten into summaries, (recall-entry N) can read them back verbatim, and /evict can free up space on demand.
  • Self-rewriting with Lisp: code is data, and the program can rewrite itself at runtime. The model's only tool, eval, evaluates Lisp in the running Nodecode; definitions run immediately and are kept, one file per definition, committed with git, and loaded on every startup. When a tool is missing, it writes one itself.
  • One instance, all clients: the local gateway is the server every client connects to, including terminals, browser tabs (nodecode web), phones (/link), bots in Discord, Telegram, and Slack, and programs (nodecode rpc). They all communicate with the same running Nodecode, so a tool written in one client is available in all clients.

Usage After installing on Linux and macOS, run nodecode; the first launch opens settings. If other coding agents exist on the machine (such as Claude Code, Codex, Hermes Agent,OpenCode, Cursor CLI, Gemini CLI, etc.), the setup will point this out and ask whether to read them; choosing Import imports their keys, instructions, memories, skills, MCP servers, bots, and tasks, or you can check them individually, or choose Skip to import later with /import. Then select the provider, model, and reasoning effort. On Linux and macOS the background gateway is enabled by default, keeping it running without opening a shell and starting it at login; use nodecode gateway to check status; on Windows you need to keep nodecode serve open in a terminal.

Use cases Suitable for users who want a personal agent environment that can evolve over the long term, write its own tools, and be used uniformly across terminals, browsers, phones, and chat platforms.

Limitations and security Nodecode does not provide a sandbox. eval runs Lisp and shell commands with the full privileges of the user account; the guard cell rejects listed dangerous commands, but it is not a security boundary. A cell is code with full access to files and keys, and messages in chat rooms also run with the same privileges, so an allowlist is needed to decide who can send messages. Before running it on your own, it should be placed in a container or virtual machine. The project uses the MIT license and is free, but you use your own provider keys, and costs are charged by the provider; /usage can report spending. Supports Linux x86_64 (glibc 2.34+), macOS 11+ (Apple Silicon) and macOS 10.15+ (Intel), Windows x86_64 (requires Git for Windows, no background gateway); there is currently no arm64 Linux build.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools