I stopped believing autonomous coding demos after watching a repo kill the plan in 6 minutes
The moment that broke the demo was painfully normal.
An agent got a clean task: do a small auth refactor.
It produced a nice plan. Confident. Structured. Looked exactly like the kind of thing people post in autonomous coding demos.
Then it opened the repo.
Six minutes later, the plan was dead.
The repo had:
- a monorepo layout
- generated SDK files mixed near app code
- a hidden integration test harness
- three auth paths still wired through old feature flags
- a shell script under
scripts/cithat explained why half the tests behaved differently in CI
At that point, the original task was no longer "refactor one service." It was "understand 40+ files, figure out what is source of truth, avoid editing generated junk, and don’t break auth in the worker path nobody documented."
That is the part most autonomous coding demos skip.
The flashy part is easy:
- ask Codex or Claude or GPT to implement something
- watch it edit files
- maybe watch tests pass
The hard part starts when repo inspection proves the first plan was wrong.
That is where "autonomous" usually turns back into "waiting for a human to write the next prompt."
While digging through how people are actually using OpenClaw, I found this r/openclaw thread:
Where is OpenClaw heading? Curious how people are using it
That thread felt more honest than most launch demos. People were trying to separate real workflows from demo theater.
And the pattern was obvious: the problem is not getting one good code edit. The problem is surviving the repo fight after the first assumptions collapse.
The best coding model still isn’t enough to make coding autonomous. The believable pattern is repeated replanning after repo inspection exposes generated files, hidden tests, and stale assumptions.
The real failure point is repo inspection
A polished demo usually starts with a task that already fits inside the model’s first mental frame.
Stuff like:
- add OAuth
- refactor this endpoint
- fix the flaky test
That works great right up until the repository disagrees.
Real repos are full of traps:
- generated files that should never be hand-edited
- migration ordering constraints
- undocumented test harnesses
- duplicate business logic
- stale feature flags
- naming conventions that only made sense 9 months ago
Once the agent sees those constraints, I keep seeing two failure modes.
Failure mode 1: the agent keeps executing a dead plan
This is the worst one because it looks impressive.
The model keeps going with the original strategy even though the repo has already disproved it.
That gives you:
- clean diffs
- plausible code
- totally wrong architecture decisions
You get output that looks sharp in a demo but falls apart in review.
Failure mode 2: the agent stalls and waits for adult supervision
This one is less dangerous, but more honest.
The agent hits ambiguity and effectively says:
- which auth path is real?
- should I edit generated code or the generator input?
- which test harness matters?
- is this worker flow still active?
Maybe it does not literally ask those questions in plain English.
But functionally, that is what happens. It needs:
- a new prompt
- narrower scope
- repo-specific guidance
- a human to resolve contradictions
That is why I think single-agent coding demos are the losers here.
Letting one model handle planning, memory, repo inspection, implementation, verification, and recovery sounds elegant.
It usually breaks the second the repo contradicts the first plan.
Codex is strong at implementation.
It is much less convincing as the only thing responsible for long-horizon orientation in a messy codebase.
I saw the same tension in this other r/openclaw discussion:
If OpenClaw still needs your next prompt, it is not autonomous
One commenter basically said the quiet part out loud: if the system cannot inspect, update its own goals, and continue, it is not autonomous yet.
I think that is exactly right.
What actually survives a 90-minute coding run?
Right now, the most believable setup is a split-brain one:
- OpenClaw coordinates
- Codex implements
That pattern is stronger than pretending one model can do everything equally well for an hour-plus run.
OpenClaw is better at keeping the loop alive.
Codex is better when it gets a concrete implementation step with enough local context.
The missing piece: a real GOALS.md
Not a vague scratchpad.
A living state file.
Something like this:
# GOALS.md
## Current objective
Refactor auth middleware to unify session validation across API and worker paths.
## Confirmed facts
- `packages/sdk/generated/` is generated and should not be edited directly
- Worker auth path still uses legacy token validation
- CI integration tests depend on `scripts/ci/run-auth-harness.sh`
## Invalidated assumptions
- Auth is not centralized in one service
- API middleware is not the only source of truth
## Files inspected
- apps/api/src/middleware/auth.ts
- apps/worker/src/jobs/auth-check.ts
- packages/sdk/generated/client.ts
- scripts/ci/run-auth-harness.sh
- tests/integration/auth-flow.spec.ts
## Tests run
- pnpm test --filter auth-flow
- pnpm test --filter middleware
## Blockers
- Need to confirm whether legacy worker path can be removed or only wrapped
## Next action
Implement shared validation helper in source package, then update API and worker callers.
That file matters because the repo keeps changing the truth.
If the agent discovers that auth is duplicated in a worker, or that generated files are downstream artifacts, the plan needs to change before the next implementation pass.
Without explicit state, the system drifts.
With it, the system can replan without pretending the first idea was correct.
What the loop should look like
If I were wiring this up, I would want the agent loop to look more like this:
Task received
-> inspect repo
-> update GOALS.md
-> choose next narrow implementation step
-> hand step to Codex
-> run tests
-> inspect failures / new repo facts
-> update GOALS.md
-> replan
-> continue
Or in shell-ish pseudo-automation:
# 1) Inspect relevant code
rg "auth|session|token" apps packages tests scripts
# 2) Update shared state
node tools/update-goals.js
# 3) Hand off a narrow task to implementer model
node tools/dispatch-codex-task.js --goal "extract shared auth validation helper"
# 4) Run verification
pnpm test --filter auth
pnpm lint
pnpm typecheck
# 5) Re-inspect if tests reveal new constraints
node tools/replan-from-results.js
That is less magical than the one-shot autonomous demo.
It is also much closer to reality.
Why this matters for OpenClaw, n8n, and custom agent workflows
Because long-running coding agents are exactly where per-token pricing gets weird fast.
If your workflow makes one clean API call, token billing is annoying but manageable.
If your agent does this:
- inspect a repo
- read tests
- replan four times
- write code
- rerun checks
- back out a bad path
- try again
then the cost profile becomes unpredictable fast.
That is especially true in:
- OpenClaw loops
- n8n automations
- Make scenarios
- Zapier AI steps
- custom orchestration calling OpenAI-compatible APIs over and over
And this is the part people underprice when they get excited about autonomous coding.
Replanning is not a bug.
Replanning is the work.
Every extra inspection pass, recovery loop, and verification step adds more model calls.
On per-token APIs, that turns into cost anxiety.
The practical cost problem nobody mentions
If your coding agent is doing the right thing, it should stop, reread, and change course.
That is good engineering behavior.
It is also expensive behavior on token-metered APIs.
This is why Standard Compute is relevant here in a very direct way.
If you are building long-running coding agents with OpenClaw, n8n, or your own OpenAI-compatible stack, flat-cost execution changes what you can safely automate.
You can let the agent:
- inspect more
- verify more
- recover more
- replan more
without treating every extra loop like a billing event.
Standard Compute is a drop-in OpenAI API replacement with flat monthly pricing, so existing SDKs and HTTP clients still work. That matters when your workflow is already built around OpenAI-compatible calls and you do not want to rewrite the whole stack just to make agent runs financially predictable.
For this kind of workload, predictable cost is not a nice extra. It changes system design.
When compute is flat-rate, you can optimize for correctness and recovery.
When compute is metered per token, teams start optimizing for fewer loops, which is often the opposite of what autonomous coding actually needs.
My current opinion: single-agent autonomy is mostly demo fuel
I still think autonomous coding is real.
I just do not believe the one-shot version anymore.
The useful pattern is not:
- pick the smartest coding model
- trust the magic
The useful pattern is:
- give the system a way to survive being wrong
- track state explicitly
- separate coordination from implementation
- expect replanning, not perfection
For me, that means:
- OpenClaw beats a single chat loop as coordinator
- Codex beats general-purpose planning when the task is narrowed
-
GOALS.mdbeats vibes because somebody has to record what the repo just taught the agent
That is also why the Reddit discussions were more convincing than most launch demos.
In the thread about where OpenClaw is heading, people were not asking whether an agent can write code at all.
They were asking what happens when it has to keep going after the first plan fails.
That is the right question.
A simple test for your own setup
If you are evaluating autonomous coding tools, do not ask:
Can it write code?
Ask:
What happens after repo inspection kills the first plan?
Try it on a repo with:
- generated code
- hidden scripts
- duplicate logic
- stale flags
- multiple test paths
Then see whether the system can:
- notice the contradiction
- update its own state
- narrow the next task
- keep moving without you rewriting the plan for it
If it cannot survive that, it is not autonomous.
It is a very impressive first-draft generator.
If you are building these workflows and the cost side is becoming as messy as the orchestration side, Standard Compute is worth a look: https://standardcompute.com
That part matters more as agents get better, not less.
Top comments (0)