The self-modifying neurosymbolic agent.
The best agent at precise, long-running tasks
nix run github:lambda-symbolics/autolith
Self-modifying and adaptable
Autolith is a flexible computing environment (like Emacs or a Lisp machine) with an LLM inside. The LLM can examine and modify its own code and state to adapt to your tasks and needs, to create new tools (saving tokens), or work around bugs.
To do this, Autolith creates new definitions or patches, installs the diff, and runs checks to validate the change. If the checks pass, these self-modifications can be saved.
The agent, its tools, its commands, and its configuration all run in the same runtime. No need for a plugin management or restarts. (But we will have plugins soon, don't worry)
Autolith can also control the built-in SBCL debugger to recover from errors it makes. If it hard-crashes, it can boot a minimal recovery core for diagnosis and repair.
Leverage symbolic reasoning
Autolith comes with a rule engine (similar to Datalog) which is used for storing structured memories linked to evidence, and for deriving new facts. The rule engine can be used to reason without an LLM.
Facts and derivations
Your Autolith can have a rule to test packages that depend directly on code changed in a pull request. If a new revision changes the parser instead of the lexer, Autolith can update the test target from the formatter to the CLI.
- Use
(why "c4df")to see the evidence and rules used to derive the fact in question. - Use
(what-changed)to see what changed since you last asked
memory:facts · rule test-dependents
- pr.touchespr-42parserPR diff
- pkg.depends-oncliparsermanifest
- pkg.depends-onfmtlexermanifest
pr.touches(PR, Lib) ∧ pkg.depends-on(Pkg, Lib) → pr.test(PR, Pkg)
- pr.testpr-42cliderived
recomputed locally
Diagnoses
When encountered with uncertain problem, Autolith can use diagnosis.run to test competing explanations before changing anything.
If the probes do not distinguish the causes, it leaves the diagnosis open, and Autolith can try again or explore other avenues.
diagnosis.run remote-service
- unavailable
- credentials
- stale-endpoint
- service.ping {"service":"billing"}service.reachable(billing, true)rules out unavailable
- service.auth {"service":"billing"}credentials.valid(billing, true)rules out credentials
Of the three hypotheses, only the stale endpoint fits.
cause found
Procedures
Procedures are reusable Lisp functions that are stored in your workspace. Autolith can define a procedure for work you expect to repeat and run the same code with different arguments.
Procedures can call tools directly. Those calls follow the approvals of the current conversation. Use (procedures) to list the procedures and their parameters.
(lambda (&key file)
"Read the report at FILE."
(resource.read
:uri (format nil "workspace:~A" file)))- Run at the Autolith prompt
(run-procedure "read-report" :file "reports/q3.org")
Symbolic compaction
When Autolith compacts a long conversation, it writes a typed checkpoint with decisions, constraints, completed work, and a next step. A note can cite an exact message, tool result, or fact, so the next turn can reopen the evidence without loading the whole transcript.
A fact lives outside the summary. If a cited fact changes or loses its support, Autolith flags that on the next turn. The checkpoint can say what was true then without passing it off as true now.
compaction.submit · example checkpoint
- Decision at compaction
- Run the CLI tests for PR #42 because it changes the parser.
- Cited fact
pr.test(pr-42, cli)- Change on the next turn
- The CLI no longer depends on the parser. The cited fact lost its support.
World of channels.
Agents work in a hierarchy of persistant channels. Agents can cooperate with parents, peers and children anywhere in the tree to rely on their know-how and divide work
There is an agent in every channel except your home channel, where you are the "agent". Working together comes naturally in a World of Channels, agents can mention others, message others, or subscribe to other channels.
For independent tasks, children can edit and test code in isolated Git worktrees. They patches or commit ranges they created can be submitted to parents, children or peers for review before being integrated.
- Inspect and steer
- You and other agents can inspect ongoing work, its lineage, usage, and so on. You or parent agents can steer running agents or cancel unnecessary work.
- Models and roles
- Choose a model, reasoning effort, tools, and instructions for each agent. Over time, agents become specialists.
- Councils and hierarchies
- Agents in Autolith can form councils and hierarchies of agents with different roles, tasks, models and model efforts
- Preserve context
- You can leave the terminal and pick up where you left off later. The world server is a daemon, meaning agents work independently of how many clients you have connected. On restart, job continuity features prevent unnecessary redos and confusion.
Dispatch structured missions.
Use Autolith missions if you need to validate results before accepting them. Missions are essentially an extension of the /goal command found in many harnesses. Agents can help you design missions.
- Criteria
- You set the acceptance criteria. If a criterion has no automated check, you must provide evidence that it was met.
- Gates
- You can use test commands as gates. Autolith records all results and the inputs used for every check.
- Budgets
- Set limits for turns, token spend, and wall-clock time across the primary agent, children, compactions, and recursive inference.
- Reviews
- Request independent reviews against a fixed snapshot, where unresolved review findings will block acceptance.
- Schedules
- Wake missions at a time, on an interval, or when triggered by external events.
- Durability
- Retain plans, gate attempts, evidence, and spend with the conversation. Compaction preserves the working context without replacing the durable records.
Deliver an accepted build
turns26 / 40
tokens61,200 / 100,000
wall clock41 / 60 min
- buildcommand
- testslisp, attempt 2 of 3
- bundleartifact sha256
- reviewyour evidence
Adapt Autolith to your work.
Use the tools already in Autolith, connect the software you rely on, or ask the agent to add a capability. Configure it in files or extend the live runtime from the prompt by asking the agent.
- Skills
- Load task-specific instructions from standard SKILL.md files or native SKILL.sexp skills. Executable skills can package Lisp workflows that extend the agent's capabilities.
- MCP servers
- Connect external tools and resources over stdio or Streamable HTTP, with per-server approval policies.
- Editors and ACP
- Use Autolith from an editor through the Agent Client Protocol with
autolith acp. Stream answers, tool activity, approvals, and steering into the same session.
Read beyond one context window.
You can ask Autolith to process data that is too large to fit in the conversation. Autolith uses recursive language models to partition and recombine large contexts.
The agent gets a structured inspectable trace it can use to produce an answer.
The number of model requests, the number of tokens and the depth of recursion can by limited by you (if you invoke RLM manually), or the agent. If a run reaches a limit, it can be resumed with an additional budget, so that we do not waste any tokens.
Install Autolith
nix run github:lambda-symbolics/autolith
The high testosterone, high estrogen way to install Autolith.
Then sign in to a provider
autolith auth anthropic autolith auth chatgpt autolith auth copilot autolith auth fireworks autolith auth gemini autolith auth grok autolith auth mistral autolith auth nous autolith auth opencode autolith auth openrouter
Choose a provider and authenticate, then run autolith.