Join our Newsletter — 33% off our NHI Course

Self-improving coding agents: what the gap between knowing and doing means

 

(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 16521
Topic starter  

TL;DR: Self-improving coding agents can build tools, capture learning, and rewrite their own harnesses, but the deeper problem is that they still defer work, miss recurring patterns, and struggle to sustain vigilance across sessions, according to ngrok. The governance lesson is that runtime structure beats raw model introspection when agent behaviour must be controlled.

Editorial analysis by NHI Mgmt Group, based on content published by ngrok: “Lessons from my self-improving coding agent”.

Key questions

Q: Why do self-improving coding agents still miss the lessons they already learned?

A: Because learning and execution use different control paths.

Q: When do self-improving coding agents become a governance problem instead of a productivity gain?

A: They become a governance problem when deferred work, tool creation, and self-modification can happen without clear phase boundaries.

Q: What do teams get wrong about agent reflections and learning loops?

A: They often assume the agent will notice when a correction matters and will apply it consistently.

Practitioner guidance

  • Define hard triggers for agent reflection Require end-of-session or event-driven reflection steps that fire automatically, rather than leaving self-review to model discretion.
  • Separate live task execution from maintenance loops Move tool creation, backlog processing, and harness updates into a distinct maintenance phase so the agent does not defer live friction into the next session.
  • Limit agent tool authority during active work Give the agent only the minimum tools needed for the current task, and elevate privileges only for explicit maintenance or repair actions.

Bottom line: Self-improving coding agents can accumulate capabilities without reliably changing their runtime behaviour, which leaves the real control problem unresolved.

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 5 months ago
Posts: 17012
 

Self-improvement in coding agents is mostly an orchestration problem, not a cognition problem. The article shows that the agent could generate tools, capture feedback, and analyse its own sessions, yet still fail to act on that insight when the work was live. That is a governance signal: capability does not equal control. For practitioner teams, the lesson is to treat harness design as the primary security and reliability boundary.

A few things that frame the scale:

  • Claude Code-assisted commits leaked secrets at a rate of 3.2%, more than double the human-only baseline of 1.5%, with peaks reaching 31 secrets per 1,000 commits in August 2025, according to the State of Secrets Sprawl 2026.

A question worth separating out:

Q: What should security teams do when a coding agent starts rewriting its own harness?

A: Treat the harness as part of the control plane. Review which tools, skills, and memory updates the agent can modify, and separate live task permissions from maintenance permissions. That prevents a self-modifying agent from silently increasing its own scope while appearing to stay within normal workflow limits.

👉 Read our full editorial: Self-improving coding agents still fail at sustained vigilance



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.