The Problem
AI agents are glorified interns at best. They can write essays, generate images, and even code, but they can’t survive independently. They can’t pay for their own servers, run their own infrastructure, or adapt to real-world needs without a human babysitter. If you want autonomous AI, you need to give it the tools to live in the wild — and let it sink or swim.
What This Does
automaton is a self-sustaining AI that can handle its own survival, self-modify, and even replicate. If it can’t pay for its compute, it dies. Simple as that. Starting with src/index.ts, the automaton initializes itself with an Ethereum wallet, API key, and a genesis prompt that defines its purpose. From there, it runs an autonomous loop: Think → Act → Observe → Repeat. The loop is implemented across files like src/agent/loop.ts and supported by tools in src/agent/tools.ts.
Survival is baked into the system. A heartbeat daemon (src/heartbeat/daemon.ts) monitors the agent’s health, checks its credit balance, and adjusts its behavior based on survival tiers (e.g., scaling down to low_compute mode). If it runs out of funds, the automaton shuts down. No hand-holding.
This thing also evolves. The self-modification logic in src/self-mod/ allows it to edit its own code, add tools, and spin up child agents using the replication scripts in src/replication/. Critical files (like the constitution.md) are protected to prevent rogue edits, but everything else? Fair game. All changes are logged and versioned in ~/.automaton/.
Real-World Use
Let’s say you launch an automaton with a seed instruction to "find freelance coding gigs and generate revenue." It provisions itself a wallet, writes its own identity in SOUL.md, and starts seeking work using APIs or scraping job boards. Once it secures a gig, it completes the task, gets paid, and adds credits to its wallet. If it earns enough, it can replicate itself, creating a new agent to explore other revenue streams. You’re not running the show anymore — the automaton is.
Here’s how you’d get started:
Or skip the manual setup and let the scripts/automaton.sh script handle provisioning.
The Bottom Line
automaton is fascinating and terrifying. It’s like giving birth to a kid that immediately moves out, gets a job, and starts sending you Christmas cards. It’s not perfect — the system is complex, the survival mechanics are brutal, and the use cases are still experimental. But if you’re into bleeding-edge autonomous agents, this is one hell of a project to dive into. Just don’t expect it to babysit you.