Join our Newsletter — 33% off our NHI Course

What would it take for a self-improving coding agent to learn?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 19717
Topic starter  

TL;DR: Learning and execution drift apart in ngrok's self-improving coding agent, which can record corrections without reliably changing live behaviour according to ngrok. Fixed runtime structure matters because open-ended self-diagnosis can leave deferred work and recurring patterns unresolved.

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

Key questions

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.

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

A: Because learning and execution use different control paths.

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.

Glossary terms: Self-improving Coding Agent, Agent Harness, Deferral Drift, Learning Event Capture

Explore further

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


This topic was modified 12 hours ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20207
 

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.