An AI That Builds What It Needs
What happens when you give an AI agent the ability to build its own tools?
Not a new model. Not a fine-tune. Just an AI that can monitor its own work, identify capability gaps, and build what's missing.
What if Amplifier's agent framework — bundles, modules, recipes — was powerful enough that an AI could use it to extend itself?
“We build tools that build tools. A lot of Amplifier's scenarios are literally tools that improve Amplifier.”
— Brian Krabach, Office of the CTO, Microsoft
The hypothesis: build an orchestrator that operates on Maslow's hierarchy of needs — first ensuring its own survival, then pursuing higher-order goals. Originally codenamed Albert, later renamed to Self-Driving.
Lower layers must be satisfied before higher layers activate
The orchestrator checks every level before every task — survival first, growth last.
855-line design doc. Build plan. 3 "brain" context files totaling 1,030 lines. Maslow hierarchy. Orchestration doctrine. Validation framework.
Bundle definition, behavior YAML, 4 specialist agent definitions. The orchestrator's brain comes to life. 552 lines.
3 custom Python modules — session state, heartbeat hooks, token tracker. The system learns to feel its own pulse. 801 lines.
220-line bash watchdog. Monitors heartbeat, detects stale processes, auto-restarts with context. The system survives its own failures.
Fixed module paths, validated end-to-end. 8/8 integration tests pass. The system runs.
Design to working system: 1 hour 46 minutes. Phases 1–4 built in 27 minutes.
# 220-line crash-recovery script
MAX_RESTARTS=3
CHECK_INTERVAL=30s
HEARTBEAT_STALE=600s
# The loop
while true; do
check_status_file
check_pid_alive
check_heartbeat_freshness
sleep $CHECK_INTERVAL
done
# On death: restart with context
amplifier run --bundle ./bundle.md \
"Resume from crash..."
jq-first JSON parsing with grep fallback. ISO-timestamped logging. SIGTERM handling. PID tracking.
End-to-end: goal → decompose → implement → review → pass
Deliberate failure injection. Verify retry and recovery loops work.
Kill process mid-task. Watchdog restarts. State analyst resumes.
Fill context to 80%. Token tracker triggers hard self-spawn.
Worker, Reviewer, Task Decomposer, State Analyst. Fresh context every spawn.
Session state, heartbeat hooks, token tracker. The L1 survival layer.
Boot sequence, orchestration doctrine, validation framework. 1,030 lines of cognition.
220-line bash script. Crash detection and recovery. Max 3 restarts.
All state is file-based. No databases. Fully inspectable, greppable, git-trackable. The state files are the recovery mechanism.
Plus: an 855-line design document, a 395-line build plan, a wisdom store for cross-run learning, and a self-spawn protocol that lets the orchestrator replace itself when context fills up.
Zero custom framework.
Standard Amplifier infrastructure.
Bundles. Agents. Modules. Hooks. The same building blocks every Amplifier user already has.
Uses existing LLMs as-is. All intelligence comes from external structure — state files, review loops, goal registries.
Every component is a standard Amplifier module. No special APIs. No custom runtime. No fork.
Self-awareness through external structures, not model introspection. The heartbeat, not the neuron.
From first commit to working self-improving system. Feb 10, 2026.
Incremental build: skeleton → survival → recovery → integration.
Built entirely on standard Amplifier bundle infrastructure.
This isn't a demo. It's a working system that monitors its own health, recovers from crashes, manages its own context, and learns across runs.
Data as of: February 20, 2026
Feature status: Experimental
Research performed:
git log --oneline amplifier-bundle-self-driving (8 commits)Gaps & estimates:
Primary contributor: Sam Schillace (8/8 commits, 100%)
Try it, extend it, build your own.
github.com/ramparte/
amplifier-bundle-self-driving
amplifier run
--bundle self-driving
The same tools that
built this are yours.
Built on Amplifier — Microsoft Office of the CTO
An experiment that started as “what if” and became a working self-improving system.