live agent build · business problem defined
BUILD BIGGER,
BUILD MORE.
From synthetic data and mimic operators to token routing and recursive self-improvement.
01 · past month of builds
“I’VE CLANKED OUT
A LOT OF RANDOM
STUFF.”
macOS agent buddy lists, 100Hz MEMS motion cues, Rust Cloudflare Workers, and self-hosted MCP bridges.
VOLUME CREATES INTUITION.
Shipping across domains reveals a repeatable agent build loop.
ashayas/asimessenger
macOS buddy list for Claude, Codex, OpenCode & Gemini.
ashayas/whatchureading
Reading app · Rust Cloudflare Worker API + D1.
ashayas/macdots
100Hz Apple Silicon MEMS motion cues.
ashayas/tweetstream
Self-hostable X REST API & MCP server.
Multi-Agent Board + Ghostty+
Collaborative agent sessions + GPU terminal.
step 01 · data first
START WITH DATA. IF IT DOESN’T EXIST, CREATE IT.
The business problem is defined. Step one is building the dataset and eval set.
MODELS CREATE SYNTHETIC DATA
Have frontier models generate realistic inputs, edge cases, and grading rubrics on Day 0.
count=250,
personas=["adversarial", "noisy"]
)
SYNTHETIC DATA PITFALLS
- [!] MODE COLLAPSE: Inputs are too clean and polite.
- [!] SELF-BIAS: Models overfit to their own phrasing.
- [!] BLIND SPOTS: Misses real production timeouts and weird state.
PIPE IN REAL DATA
Start with synthetic data now. Replace it with real production usage traces at the final stage.
REAL DATA DRIVES THE TRAIN.
step 02 · defining the agent process
HARNESS GOALS: MODELS AS MIMIC OPERATORS
Let the model do most of the work. Give it tools and point it at something that works well.
MODELS ARE NATURAL MIMIC OPERATORS.
Instead of writing brittle rules, point the model at a working reference repo, handler, or golden trace to mimic.
01 // Point at a gold-standard exemplar
02 // Give full tool access (shell, files, search)
03 // Grade the outcome against the Eval Set
LET THE MODEL DO THE WORK
Give it raw tools and let it iterate in its native loop.
POINT AT WHAT WORKS
One golden example beats pages of negative constraints.
EVAL SET + PROCESS READY
With the Eval Set and Agent Process locked, we optimize deployment.
step 03 · deployment & token efficiency
SAVING TOKENS: DIFFICULTY JUDGES & SUBAGENTS
Judge task difficulty upfront, use heavy models sparingly, and spin up subagents on demand.
JUDGE TASK DIFFICULTY
Score task complexity upfront and offload to the matching model tier.
medium -> standard_worker
hard -> frontier_reasoner
USE MODELS SPARINGLY
Reserve frontier reasoning for hard synthesis. Route lookups and parsing to smaller models.
ZERO DROP IN QUALITY.
SPIN UP SUBAGENTS
Spawn isolated subagents to finish subtasks and return only distilled results.
task=subtask,
model=judge.route(subtask)
)
step 04 · closing the loop
RECURSIVE SELF-IMPROVEMENT VIA RECURSE.PY
All recursiveness runs directly inside the coding agents.
RUN RANDOM EPISODES
Trigger random runs on the agent to surface edge cases and failure modes.
ADD LIKES & DISLIKES TO EVALS
Every liked or disliked run automatically appends to the Eval Harness.
POINT AGENT AT EVAL HARNESS
The Agent Harness points directly to the Eval Harness while the coding agent iterates.
# recurse.py (runs inside coding agent)
for run in random_runs(agent_harness):
res = eval_harness.grade(run)
if res.liked or res.disliked:
eval_harness.add(run, res)
coding_agent.improve(
target=agent_harness,
verify=eval_harness
)
what goes wrong
MISTAKES WHEN BUILDING AGENTS
Three traps that nerf frontier models in production.
Instructing Too Much
Over-steering nerfs modelsMissing Review Flow
Human-review vs. autoNeglecting Classical ML
Agent-built classifierscontrary to popular belief
PROMPTING STILL KIND OF MATTERS
The agent will figure it out, but sharp prompting saves tokens and aligns tradeoffs.
PROMPTING SAVES TOKENS
Agents can brute-force vague prompts, burning thousands of exploration tokens.
Naming terms like "fault-resistant" or exact file paths collapses 20 search turns into 1.
-> Then I start reading the plan.
NOT INCORRECT, JUST MISALIGNED
We read less boilerplate now, but agents make silent architectural tradeoffs.
The code is rarely broken. Instead, it may make fundamental tradeoff decisions that don't match your system goals.
compounding system memory
TWO SELF-IMPROVING LOOPS + REAL DATA
One loop improves the runtime agent. A second loop improves the harness building the agent.
.AGENTIC/ FOLDER
Self-improving loop for the agent itself: stores plans, mimic exemplars, and recurse.py evals.
├── eval_harness.jsonl
├── mimic_exemplars/
└── recurse.py
.MISTAKES/ FOLDER
Logs mistakes the coding agent made so the builder harness learns and never repeats them.
├── over-steering.md
├── schema-tradeoffs.md
└── sandbox-leaks.md
KEEP FEEDING REAL DATA
Pipe live production usage traces into both loops to continuously upgrade accuracy.
verification gates
STRESS-TESTED SANDBOXES
Autonomous loops only work when the sandbox matches reality under load.
CLEAN WORKTREES
Isolated state per stacked issue.
FAST COMPILER
cargo check / tsc in milliseconds.
LOCAL RUNTIME
Real local D1 & Worker parity.
SESSION LOGS
Grep-searchable .boards/session.log.
PHANTOM GREEN BUILDS
Mocked DBs and shared state trick recurse.py into optimizing for false positives.
DETERMINISTIC FEEDBACK
Load testing and real bindings feed actionable failures into .mistakes/ and the Eval Harness.
and there you have it
BUILD BIGGER, BUILD MORE.
A self-improving agentic system that gets sharper with every run.
DATA & MIMIC OPERATORS
Synthesize Day-0 evals and point the model at gold exemplars.
JUDGES, SUBAGENTS & ML
Save tokens with difficulty judges, subagents, and classical ML.
STEER PROCESS & READ PLANS
Don't over-instruct. Control review flows and audit tradeoffs.
.AGENTIC/ + .MISTAKES/
Run recurse.py + builder memory, fueled by real usage data.