cd /news/ai-agents/self-improving-ai-agents-what-it-fee… · home › topics › ai-agents › article
[ARTICLE · art-183085] src=shaharia.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Self-Improving AI Agents: What It Feels Like to Be the Approver

A developer's self-improving agent system, hello-bot, runs a work loop every 15 minutes that triages, refines, implements, reviews and merges GitHub issues via the Claude Code CLI, and a Sunday improvement loop at 01:00 that consolidates a shared knowledge base and at 04:00 evaluates each job's weekly runs and proposes changes to the agents' own prompts, scripts and config. The human approver accepts or rejects each proposal, and approved changes ship through the same pull request and CI path as any feature. One sample proposal, P-4, would send the reviewer only the diff after the first review round, with an expected drop in peak context from 168k to under 120k tokens and about 25% lower cost per run.

recommendation

Gate every agent job with a model-free shell script so blank output means no tokens are spent, and require human approval plus CI for any agent-proposed change to its own prompts or config.

more in playbook: Designing agent systems
by read7 min views1 publishedDec 6, 2026
Self-Improving AI Agents: What It Feels Like to Be the Approver
Image: Shaharia (auto-discovered)

← All posts

My AI agents ship code all week, then grade their own runs and propose changes to their own workflows. I approve or reject. Here is how the loop works.

On this page ▾ #

Every Sunday at 04:00 an AI agent reads the transcripts of every other agent I run. It finds where they wasted money, where they got stuck, and where their instructions were wrong. Then it asks for permission to change those instructions.

I am the one who says yes or no.

This post explains how that self-improving agent loop works, what keeps it safe, and what it feels like to become the approver of a system that rewrites itself. I prepared it as a five minute demo for One Last Prompt #4 in Berlin, and you can play the same demo below.

TL;DR #

  • The work loop runs every 15 minutes: a GitHub issue is triaged, refined, implemented, reviewed and merged by agents, and every run audits itself.
  • The improvement loop runs every Sunday: the agents consolidate what they learned into a shared brain, evaluate every job, and propose changes to their own prompts, scripts and config.
  • The human approves or rejects each proposal. Approved changes ship through the same pull request and CI path as any feature. Rejections are remembered.

Meet hello-bot #

hello-bot is a small Go service that lives in Slack. When something needs doing, it runs the Claude Code CLI as a subprocess and posts the result back to a thread. One Slack thread is one agent session, so replying in a thread continues the same conversation.

Most of its work is not triggered by people. It runs scheduled jobs across my open source repositories: triaging issues, refining them, implementing them, reviewing pull requests, handling Dependabot, cutting releases. Each job reports in its own Slack channel, so the whole system is readable by scrolling.

The two loops #

Loop 1: from issue to merged pull request

Every job starts with a gate: a tiny shell script with no language model in it. It asks one question, such as “is there an untriaged issue?”, and prints the answer. Blank output means no work, so no agent starts and no tokens are spent. A failing gate is reported as broken, never confused with “nothing to do”.

When the gate finds work, the agents take over:

  1. Triage reads the repo’s own docs, reproduces the problem, labels the issue and asks the reporter for anything missing.
  2. Refine writes a spec (what, why, how) and moves the card to Ready. The Ready column is the authorization: nothing else gets built.
  3. Implement takes a lease on the issue so no other job touches it, works in its own git worktree, writes a failing test first, then the fix.
  4. Review is a separate agent with no context from the builder. Nothing it has not approved is pushed.
  5. Merge happens after CI passes. No human touches it.

Every run ends with a self-audit: a small classifier model reads the run’s outcome and records whether it delivered, stalled or needs a human.

Loop 2: the agents grade themselves

On Sunday at 01:00 a consolidation job compacts the shared brain, the knowledge base every agent reads before acting and writes to when done. Duplicate memories are merged, memories the code now contradicts are corrected, and lessons that held up twice are promoted.

At 04:00 the job evaluation runs. It scans every job’s runs for the week (cost per run, delivered versus failed, peak context, review rounds, pushes after the pull request) and deep-evaluates the worst few. Then it writes proposals, each with four fields:

P-4  Send the reviewer only the delta
where     the implement procedure, review loop
change    review rounds after the first see only the diff since the last round
expected  peak context 168k to under 120k tokens, cost per run down about 25%
risk      low: the first round still reviews the whole branch

The risk line is the one I read first.

sequenceDiagram
    participant E as Evaluation agent
    participant S as Slack thread
    participant H as Me
    participant A as Implement agent
    participant B as Shared brain
    E->>S: Findings + proposals P-1 to P-4
    H->>S: approve 1, 2, 4. reject 3
    S->>A: Approved proposals
    A->>A: Pull request, CI, merge, reload
    A->>B: New procedure version
    S->>B: Rejection and its reason
    Note over E,B: Next Sunday: measure whether each change worked

Watch the loop in a Slack simulation #

This is the demo from the talk: a simulated week in a Slack-like workspace, modelled on real runs (names and numbers are illustrative).

Want to drive it yourself? Click inside the frame to advance, and when the proposals appear, approve or reject them. The agent’s follow-up messages change based on what you choose.

Small on your screen? Open the interactive demo full screen and use the arrow keys. It is the full five minute talk deck, starting at the demo.

What keeps a self-rewriting system safe #

Letting agents propose changes to their own workflows sounds risky. Five rules make it boring in the good way:

  • Code decides when to run, not the model. Gates are plain shell. An agent never wakes itself up because it feels like it.
  • Every proposal carries evidence and a risk. “Make it better” is not a proposal. “Count each message’s cost once, because the collector counted it per content block” is.
  • Changes ship like features. Code goes through a pull request, CI and review. Procedure changes become a new, versioned prompt that the next run renders.
  • Rejections are memory. A rejected idea and the reason are saved in the shared brain, so it is not proposed again next week without new evidence.
  • Every change is measured the next Sunday. If it did not work, the evaluation says so and proposes a revert.

What it feels like to be the approver #

I expected to feel like a manager. It feels more like being an editor.

I don’t write the workflows anymore. I write verdicts on them. My job shrank to taste, boundaries and saying yes or no.

“Approve all” is the most tempting button I own. A proposal reads like a code review, but it lands like a policy change. The efficiency fixes are easy yeses. The hard ones are about trust: should the agent act on my Slack replies directly, the same day? It would be faster. I said no, because I am not ready for an agent that takes orders from a chat message.

Every rejection is a boundary written down. The rejections are the part of the system that stays human, and they turn out to be the most valuable thing I contribute.

Trust grows one approved diff at a time, and so does the distance to the code. That is the part I am still not sure about. Each week the system needs me a little less for the work and a little more for the judgement.

How to build your own #

You do not need my exact stack. You need five pieces:

  1. A place where every run is visible. Slack threads work well: one thread per run, readable by anyone.
  2. Gates in plain code that decide whether a job has work before any model is called.
  3. Run records : cost, outcome, transcript, and an automatic audit of whether the run delivered.
  4. A shared brain that agents read before acting and write to after. I useVibeXP , which is open source and works for a single person, a team or a whole organization.
  5. A weekly evaluation job that turns run records into proposals with where, change, expected and risk, and waits for a human.

Start with the evaluation reading transcripts and writing proposals you apply by hand. Only let the agents ship their own approved changes once you trust the proposals.

Wrapping up #

The agents do the work. The system improves itself every week. What is left for me is the most human part of the job: deciding what not to delegate.

What would you refuse to hand over, and is that taste or fear? I would love to hear it. Find me on LinkedIn, and if a shared brain for your own agents sounds useful, give VibeXP a star.

── more in #ai-agents 4 stories · sorted by recency
── more on @hello-bot 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/self-improving-ai-ag…] indexed:0 read:7min 2026-12-06 · —