What the army does while you sleep

Short answer: only what you started, plus the jobs you turned on. Nothing starts by itself on a fresh install.

Three things can run while you are away:

  1. A loop you started on an app. It keeps improving that app until it is done, hits a limit or gets stuck.
  2. Routines, if you turned them on. They are off by default.
  3. The usage-limit watchdog, which keeps a worker from getting stuck when your Claude plan hits its limit.

Everything runs on your own machine or VPS with your own Claude account. Nothing is sent to us. The only thing the kit ever sends is the licence check (your key and a random install id).

New words are explained in Glossary.

1. The self-improve loop

You start it with a sentence, for example:

"Run the dev loop on Sprout: improve onboarding and the paywall, then UI polish. Keep going."

The worker turns that into a checklist in the app's PLAN.md, grouped in milestones. Then it repeats one pass after another:

  1. A fresh orchestrator agent takes the next unchecked item (or a few small ones of the same kind).
  2. It makes the change and asks one or two specialist agents to review it.
  3. It runs the build gate: the code must compile and the tests must pass.
  4. Green: the item is ticked and committed. Red: nothing is ticked, and the loop stops there until the build is fixed. A red build is never forced green.

Reviews are advice. The build decides.

When it stops by itself

Reason What happens
Every item in the plan is done a final full build check, then a run report in .loop/reports/
200 passes (40 for a new app built with the factory checklist) it stops
8 passes in a row with no item finished it stops, so it can't burn usage going in circles
The build is red it stops and picks up again once the build is fixed

Each stop ends with one plain message saying what happened. The limits can be changed with KAPP_LOOP_CAP and KAPP_LOOP_STALL_CAP. Details: Self-improve loop.

What you hear from it

One message per milestone, not per step. If it needs you, it says so and waits. Steps only you can do (a store console form, a real device test) go into the app's OWNER_TODO.md. The loop never picks from that file.

It keeps itself healthy

  • If the worker crashes, runs out of memory or the server reboots, the service restarts it and it resumes the conversation.
  • At natural breaks, the worker writes a short handoff note and starts a fresh, smaller session, so it stays fast and cheap.
  • If your top Claude model hits its limit, the heavy agents move to the next model down so work can finish. The switch is noted in MEMORY.md. When the limit resets, say "back to the top model".

The loop uses your Claude usage the whole time it runs. A Max plan or an API key is the realistic minimum for long overnight runs. See FAQ.

2. Routines (only if you turned them on)

Routines are scheduled jobs. They are off until you run:

kappmaker-army routines on      # asks you once, then schedules them
kappmaker-army routines off     # removes them again
Routine When (UTC) Uses Claude? What it does
nightly-health every day, 05:30 no checks each app and the machine, writes a portfolio table, sends one morning message
idea-scout Saturdays, 04:00 yes (Sonnet, a Claude model) finds and scores 3 to 5 new app ideas, adds them to your ideas backlog
systems-retro Sundays, 04:00 yes (Opus, the larger Claude model) reads the week's logs and failures, writes at most 5 proposals to improve how the army works

Each model routine has a 20-minute time limit. Every routine sends one Telegram message to your notification chat when it finishes. You can try one by hand first:

$ARMY_HOME/factory/routines/bin/run-routine.sh nightly-health --dry-run

What routines may write:

  • nightly-health: only the portfolio table (factory/portfolio/PORTFOLIO.md) and the message. It kills nothing; old build daemons (leftover background build processes) are reported, not stopped.
  • idea-scout: only new idea files and new rows in the ideas backlog. It never overwrites an existing idea and never touches an app.
  • systems-retro: new numbered proposals in factory/learnings/PROPOSALS.md, and at most 3 new or fixed App Army skills per run (for a flow done by hand twice or more). Nothing else.

Routines never push to git, never ask questions or wait for an answer, and never send Telegram themselves (the runner sends the one message). Before each run the runner takes a copy of the files only you may change (your MEMORY.md, the Safety section of CLAUDE.md, ~/.claude/settings.json). After the run, if one of them changed, it puts your version back.

3. The usage-limit watchdog

When your Claude plan hits its limit, Claude Code shows a menu in the terminal that Telegram can't answer. Without help, the bot would sit there and stop listening.

The watchdog checks each worker every 5 minutes. It is scheduled when you add a worker (kappmaker-army worker add). When it sees that menu, it picks only the free option ("wait, then continue") and sends you one message, for example: "main paused: usage limit, resets ~17:00 UTC. No usage credits used."

It never picks an option that spends money (usage credits, adding funds, upgrading your plan). If only paid options are shown, it tells you and does nothing. It never restarts a worker or types text.

Check it with bot-limit-watchdog --status.

What the morning message looks like

With nightly-health on, you get one message of at most 15 lines. Something like:

Morning health 2026-11-27
Sprout: 34/52, 3 dirty, last commit 2h, claim main 1h, loop flag on
Box: disk 41G free (48% used), mem 5.2G avail, swap used 0.3G
Old daemons: 0 >6h; build slot free
Concepts: <one line from the concepts check>
Skills: <one line from the skills check>
Waiting for your OK (1):
- 12. Run the fast gate before every screenshot pass - status: open
Table: factory/portfolio/PORTFOLIO.md

How to read it:

  • 34/52 is how many items in the app's progress list are done.
  • dirty means files changed but not committed yet. Normal while a loop runs.
  • claim is which worker is on the app, and how long ago it last checked in. STALE means more than a day.
  • DISK LOW (under 15 GB free) or MEM LOW means the machine needs attention.
  • Old daemons are leftover build processes. Say "kill old daemons" if there are many.
  • Waiting for your OK lists open proposals.

The idea scout and the retro send their own short summaries on Saturday and Sunday.

Lessons and proposals wait for you

The army writes down what it learns:

  • Lessons and failures (factory/learnings/LESSONS.md, FAILURES.md) are notes any worker adds when something went wrong or slow. They are read before similar work later.
  • Proposals (factory/learnings/PROPOSALS.md) are numbered changes to the army's own rules or tools, each with the evidence and the risk. Nothing in them is applied until you say so. Reply:

"approve 12" or "reject 12"

What it never does without you

Whether you are awake or not, the army does not:

  • publish an app to production or submit it for App Store review (you type "yes publish ");
  • start a paid iPhone build on a cloud Mac;
  • spend money: paid AI images or video, store fees, server changes. It states the rough cost first and waits;
  • push to the main branch, unless you wrote a standing rule for that in MEMORY.md (and even then only after a green full build and a secret scan, a check that no keys or passwords are being pushed);
  • force-push, or delete files, branches, repos or store listings;
  • change your MEMORY.md (only on your "remember …" or "forget …"), ~/.claude/settings.json or the Safety section of CLAUDE.md;
  • apply its own proposals.

The guard hook blocks the most dangerous of these even when nobody is there to ask. See Safety.

Turning it all off

  • Loop: say "stop" or "pause the loop". Committed work stays. Nothing is reverted.
  • Routines: kappmaker-army routines off.
  • A worker: kappmaker-army worker remove <name> --yes.

Docs for the App Army kit. The Claude Code plugin has its own page.