Autolith: A programming agent with a live runtime
TL;DR Highlight
Putting a coding agent inside one live Common Lisp image lets it edit itself and recover from crashes
Who Should Read
A backend developer building coding agents who is wrestling with long-running tasks and context-window-sized data
Core Mechanics
- The whole agent is one Lisp image
- Autolith is a terminal coding agent that inspects and edits its own implementation inside a live Lisp image (a snapshot of program state in memory).
- MCP servers, memories, agendas, and LSP servers are managed in the same image.
- It modifies itself at runtime
- self.redefine swaps functions, classes, and macros live without a restart.
- self.exercise verifies, self.diff reviews, self.discard drops, and self.commit saves to an internal git repo.
- Crashes recover via a pristine image
- On a crash it writes a crash capsule, boots a clean recovery image, and picks a known-working generation.
- The conversation is restored and diagnosis starts in read-only mode.
- RLM handles data bigger than the context
- RLM (Recursive Language Models, where the model writes small programs to split data and send pieces to sub-calls) is offered as a tool.
- A call and token ceiling is set first, and hitting it returns finished work plus a context to continue.
- Evidence passes a mission, not the model
- You write acceptance criteria, and the harness runs command, artifact, and Lisp gates in order.
- Turn, token, and time limits apply, and the model can only request verification.
- Token waste is cut structurally
- Background jobs wake the agent when done instead of being polled.
- Noisy output gets a 6,000-byte preview in context, with the full log retrievable on demand.
- Child agents work in isolated worktrees
- Passing an isolation object to task.run gives the child a detached git worktree.
- It returns an artifact with a patch or commit range, checks run, and evidence, and the parent applies them in its chosen order.
Community Reactions
- Opinion that external tools beat self-modification
- One commenter rarely needs the agent interface itself to change.
- They argue tools solve it, and compare it to letting an agent read their Emacs config rather than run the session.
- Pushback on choosing Lisp
- A commenter said agent performance depends on training data volume, so Python/JS or C/C++/Rust would be better.
- They cited danluu.com/pl-tokens.
- Similar attempts and extensions
- One commenter started building something similar in Jolt (github.com/yogthos/samizdat).
- Others mentioned an actor+mailbox idea in Smalltalk or Erlang, and asked if the next step is for the agent to be the program itself.
- A question on how it differs from Cursor
- No author answer is visible yet.
How to Apply
- Move long command output into logs
- Trim your agent's shell tool results to a 6,000-byte preview weighted toward the tail.
- Save the full output to a file and let the agent fetch it by ID.
- Use completion wake-ups instead of polling
- Hand off tasks over 10 seconds, like tests or builds, as separate jobs.
- Continue the agent turn once when they finish.
- Add acceptance criteria and gates to long tasks
- Write the criteria yourself and make them immutable for the model.
- Attach deterministic gates like a test command, plus turn, token, and time limits.
- Isolate parallel child work in worktrees
- Give each child its own git worktree and take back a patch plus check results.
- Have the parent check conflicts and apply them in order.
Try It
# Paste into Claude or ChatGPT as-is. A simplified version of Autolith's mission-gate idea
You are a coding agent. Carry out the mission below under these rules.
Mission: {{task description}}
Acceptance criteria (set by me, you cannot change them):
1. {{criterion 1: e.g. all tests pass}}
2. {{criterion 2}}
Rules:
- For each criterion, first propose a command or check (a gate) to verify it.
- Finish within {{turn limit}} turns; if you cannot, summarize what is done and the state to resume from.
- Do not declare completion; only request verification. I decide pass/fail from the gate results.
First, show only the gate list and your plan.
Next to try: paste the gate results back and advance to the next turn.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques