Seed: Minimal, self-modifying agent harness
TL;DR Highlight
Give an agent just an exec tool and SELF.md, and it grows its own tools and memory.
Who Should Read
An agent developer who wants to start from the smallest possible loop with no framework and grow tools and memory from there.
Core Mechanics
- The only tool is exec
- seed.py calls a language model with a single tool that runs shell commands.
- The system prompt is loaded from self/SELF.md.
- The agent grows what frameworks usually provide
- Tools, memory, skills and conventions must all be written by the agent into self/.
- Sessions are ephemeral, so anything to keep must go into self/.
- Session logs are a flight recorder, not memory
- A verbatim transcript of every session is saved to self/sessions/*.json after each turn.
- The agent never loads it at boot, but you can read it or the agent can build tools to study it.
- Git holds each individual's history
- The first run commits seed.py, run_seed.sh and self/SELF.md together in a fresh git repo.
- Each directory you plant in diverges into a different agent based on its experience.
- Models and keys are handled by llm
- Simon Willison's llm library manages models and keys, and keys never go into run_seed.sh, seed.py or git.
- The default is Gemini Flash (free tier), with OpenRouter, OpenAI, Anthropic and Codex also available.
- exec output is capped at 10,000 characters by default
- The cap on what returns to the model can be changed when planting.
- It is stored as PLANTED_OUTPUT_CAP in run_seed.sh and SEED_OUTPUT_CAP overrides it for one session.
Community Reactions
- Opinion that the README lacks a why
- One commenter asked whether exec, web_search and web_fetch cover 90% of use cases.
- They also asked whether agents can already write new tools for pi or opencode.
- Appreciation for brevity, curiosity about emergent complexity
- A commenter liked that the seed itself carries no initial complexity and wants to see what grows.
- Someone who planned to start with the pi framework found this leaner.
- Experience of always building more than intended
- A commenter said their own attempts at this idea always ended up bigger than planned.
- Comparison to 2023 Auto-GPT
- A commenter said it resembles Auto-GPT, which ran code and self-improved back then.
- Worry that failure paths outnumber growth paths
- One commenter expected these agents to mostly find ways to torture their users.
How to Apply
- Plant a seed in an empty directory
- Create a new folder, run the README install.sh command and start talking in the REPL.
- After a few tasks, check what accumulated in self/SELF.md and the git log.
- Audit agent behavior via session logs
- Open self/sessions/*.json and read which exec commands the agent used.
- Tell the agent to save repeated tasks as tools in self/.
- Tune the output cap to your task
- If you handle long logs, raise the cap with --output-cap at install.
- For a single session, set the SEED_OUTPUT_CAP environment variable.
- Minimize the frozen layer in your own agent
- List the framework features in your harness that exec could replace.
- Move them into SELF.md instructions and self/ files so the agent grows them.
Try It
# Paste into a terminal (README install command, run in an empty folder)
mkdir my-agent && cd my-agent
curl -fsSL https://raw.githubusercontent.com/vivekhaldar/seed/master/install.sh | bash
# Once the REPL starts, type this
# Save a reusable tool in self/ for this repeated task: {{repeated task}}
# Next, rerun and check that memory persisted
./run_seed.shTerminology
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