Working practices

How to work with your army day to day. These are habits that kept the original setup fast and cheap, written as rules with the reason behind each one. Most are already in your workspace CLAUDE.md or MEMORY.md, so the agents follow them on their own. This page is for you: it explains what to expect and what to say.

Paths: ~/projects is your projects folder (ARMY_PROJECTS) and $ARMY_HOME is the App Army data root (~/projects/.army by default). See Configuration. New words are explained in Glossary.

Talking to the army

Keep the main session lean

  • Rule: the session you talk to is a dispatcher: it hands work out instead of doing it. Real work (research, edits, builds, reviews, log reading) goes to a fresh subagent (a helper session) with a short brief, and independent parts go to several subagents at once. The main session relays short results.
  • Why: the main session runs on the most expensive model and its context (everything it holds in mind) lives for days. Heavy reads and builds in it make it slow and costly, and have crashed workers.
  • How: nothing to do on your side. If you see the main session reading many files or running a long Gradle build itself, say "do that in a subagent".

Vague asks become briefs first

  • Rule: a real but loose request ("improve the UI", "make it viral", "it feels cheap", "redesign the home screen") goes to the prompt-architect agent first. It writes a precise brief; you get a 3 to 6 line "here's how I'm reading that" and the work starts right away.
  • Why: the top-tier model's judgement on design direction is worth the cost, and a hand-written interpretation in the main session tends to miss what you meant.
  • How: read the short summary. If it misread you, say so in one line; otherwise do nothing. Precise one-liners, status questions and confirmations skip this step.

Questions come as numbered lists

  • Rule: when the army needs a decision it sends a numbered list with a default ("say 'go' for 1") and waits.
  • Why: pickers and plan dialogs only show in a terminal and block a remote session.
  • How: reply with a number, "go", or your own words. The next message you send is taken as the answer.

Tell it a rule once

  • Rule: a general rule for every app ("the paywall always comes right after onboarding") goes into $ARMY_HOME/factory/standards/APP_RULES.md in the same turn. A personal preference or one-off decision ("remember: Adapty, not RevenueCat") goes into ~/projects/MEMORY.md.
  • Why: chat history is forgotten; these two files are read at the start of every project and every review.
  • How: say "from now on, …", "remember …" or "forget …". "What do you remember" shows the file. If you had to correct the same thing twice, ask for it to be saved.

Building apps

One order for every app

  • Rule: "new app: " starts the same order every time, and the worker runs it by itself: the idea is scored, you pick a name, the app is designed in four passes until you say "design approved", the project is set up, you approve the product documents, the first version is built, the improvement pass runs (onboarding, paywall, look and feel, quality, sharing, delight), every word a user reads is checked so it sounds like a person wrote it, the release check, the store listing with screenshots and the feature graphic, the landing page and legal pages, publishing after your "yes publish ", and a check one week later. It says in one line when each step starts and stops only where it needs you.
  • Why: skipping or swapping steps is what turns a three-day app into a three-week one. A paywall designed before the onboarding, or code written before the design is finished, gets redone.
  • How: say "new app: " and answer when it asks. "Where are we on ?" shows the step it is on. The full walk-through is in Your first app.

Prototype before you build, in two tools

  • Rule: every new app is designed before any code, and the first look is made in Google Stitch and in a Claude Design canvas side by side. You get both links and pick one. Nothing is built until you say "design approved".
  • Why: one Kotlin Multiplatform build loop takes hours just to see a look. A prototype takes minutes, and two tools give you two different looks to choose from.
  • How: expect four design passes: the general look in both tools, then the onboarding and paywall on their own, then every remaining screen and state, then a careful check of every screen by four specialist agents. Say "design approved" when you are happy; that starts the build. A reskin of one of your apps keeps that app's look and only redoes the onboarding and paywall.

The first build is not the end

  • Rule: when the first version runs, the worker tells you and goes straight on with the improvement pass. You do not need to ask for it.
  • Why: a working app that doesn't convert earns nothing. Onboarding and paywall come first because nobody sees your paywall if the onboarding loses them.
  • How: you hear from it at the end of each part. Say "stop" any time.

Every step feeds the next app

  • Rule: at the end of each step the worker writes back what it learned: lessons, your rules, ready-made features, prompts that worked, and new skills.
  • Why: this is how the tenth app goes faster than the first.
  • How: nothing to do. "What did you learn from ?" shows it.

A started loop keeps going

  • Rule: once you start the dev loop or a "keep going until done" build, it moves from item to item without you sending "continue". You hear from it at milestones or when it is blocked.
  • Why: a loop that waits for a nudge after every item is not a loop.
  • How: start it in plain words, stop it with "stop" or "pause the loop". If it sits still, tell the worker; it schedules its own next step when the Stop hook (the check at the end of each turn) doesn't fire. See Self-improve loop.

Follow the skill, and name it in briefs

  • Rule: when a skill covers the task (store screenshots, safe push to main, kickoff, landing page), the agent follows it step by step, and a brief to a subagent says "follow the X skill, steps N to M" instead of a home-made recipe.
  • Why: home-made recipes skip the research, approval and QA gates that the skill has. The usual result is screenshot captions that lead with features, which you then have to reject.
  • How: if a skill was wrong, say so; the agent fixes the skill in the same session. A flow repeated twice becomes a new skill on its own.

Use the design system

  • Rule: screens use the app's design-system components. If one is missing, it is added to the design system, not hand-built on one screen.
  • Why: raw platform widgets render with default styling and the app drifts screen by screen.
  • How: in reviews, treat a raw text field or a stock button on a styled screen as a bug.

Judge the UI against good apps, not against the reference

  • Rule: UI work runs as a critique loop: a design-director reviewer names what makes a screen look cheap, writes a fix prompt per issue, the implementer applies it and re-renders, and the reviewer checks again until it looks premium.
  • Why: matching a reference pixel for pixel still produces UI that looks cheap. Common causes: emoji used as art, a timid type scale, flat spacing, cards with no depth.
  • How: say what feels off in plain words ("looks like a todo app"); the loop and prompt-architect do the rest.

Copy sounds like a person

  • Rule: every user-facing string goes through the copywriter agent and kappmaker-army copy-check. Plain words, short sentences, no slogans, no em dashes in product copy.
  • Why: AI-flavoured copy reads as machine-made and hurts trust. Code, commits and PRs are exempt.
  • How: read copy out loud. If a friend wouldn't say it, send it back with "too AI". Before every release the whole app is checked (kappmaker-army copy-check --app <app>: all its text in every language plus the store text), and the release check refuses while anything is found.

Leave paywall logic alone

  • Rule: paywall, credits and premium logic in the template is shared and tested. Apps change paywall UI and copy; products and placements live in the subscription dashboard, not as hardcoded ids.
  • Why: this code handles money for every app; a rewrite risks new bugs (regressions) in all of them.
  • How: if an agent proposes a logic change, ask for the bug it fixes.

Let it do the setup work

  • Rule: store records, subscriptions, Adapty or RevenueCat products and placements, Play listings and Data safety are done through kappmaker and the provider CLIs. Only steps that exist nowhere but a web console come to you, with the answers ready.
  • Why: console work by hand is slow and can't be repeated for the next app.
  • How: if you get a long list of console steps, ask "can kappmaker or the CLI do these?".

Free before paid

  • Rule: use fake (mock) paid AI calls during development; do a first quick test with the provider's cheapest model; for voice, use on-device text-to-speech or a free local model first. Any real paid generation is announced with the number of calls times the price, and waits for your OK.
  • Why: dev loops retry a lot, and retries on expensive models add up without anyone noticing.
  • How: set a per-app cap in MEMORY.md if the default (about $1 to $2) doesn't suit you.

Shipping

Bump the version before every store build

  • Rule: kappmaker update-version runs before every TestFlight, App Store or Play upload.
  • Why: stores reject a build number they have already seen, and you lose a whole CI run (about 35 minutes on a Mac runner) finding out.
  • How: automatic. If a store build fails on "bundle version must be higher", this step was skipped.

iOS builds only when you ask

  • Rule: the army does not start the iOS CI build on its own. iOS fixes are committed and ride the next build you ask for ("run ios build").
  • Why: macOS runner minutes cost about 10 times Linux minutes and each build takes 30 to 40 minutes.
  • How: batch your iOS changes, then ask once. On a Linux server the army writes IOS_PROMPT.md for you to run on a Mac instead.

Web previews when you ask

  • Rule: a web (wasm, a version that runs in the browser) build of the app is built and sent only on request. Milestone messages say what merged.
  • Why: the wasm build is a quick look, not a product; building it every milestone wastes time.
  • How: say "send me a preview". It is served with preview-coi, because the app's local database on the web needs cross-origin isolation headers (special browser security settings); without them every screen loads empty and looks unfinished.

Signing files and repo remotes

  • Rule: each app has two remotes (the places git pulls from and pushes to): upstream is the KAppMaker template (fetch only, push disabled) and origin is the app's own private repo. The Android keystore goes into the repo only if you set KEEP_KEYSTORE_IN_REPO=true and the repo is private.
  • Why: template updates then merge cleanly, and nothing of yours ends up in the public template. A lost Play upload keystore is very hard to recover, so it needs a backup somewhere.
  • How: pick your keystore policy at kappmaker-army init. If git push over HTTPS fails on .github/workflows/*, your token lacks the workflow scope; push over SSH or add the scope.

Running workers

Never start claude inside a worker

  • Rule: a worker never runs claude mcp list, claude -p or a bare claude. To check MCP config it reads ~/.claude.json.
  • Why: a nested claude loads the same channel plugin and kills the worker's Telegram connection; the bot goes deaf until someone reconnects it.
  • How: if a script of yours must run headless Claude (with no chat attached) on the same machine, prefix it with TELEGRAM_STATE_DIR=$HOME/.claude/channels/telegram-headless. See Always-on workers.

Restarts: resume or fresh

  • Rule: after a crash, out-of-memory kill or reboot, a worker resumes its last conversation. kappmaker-army restart and rotations start a fresh session that reads the worker's latest handoff file first.
  • Why: crashes shouldn't wipe context, but a session that has grown for days gets slow and expensive and should start clean at a natural break.
  • How: workers rotate on their own at the end of a work block (handoff, then restart); you can also ask for it. If it lost track after a restart, say what you were doing; it reads its saved session history only when it is missing context.

Usage limits

  • Rule: if the top-tier model hits its usage limit, the heavy agents (orchestrator, prompt-architect) are moved to the next model down so work finishes, and the switch is noted in MEMORY.md.
  • Why: a pass that finishes on a smaller model beats one stopped halfway.
  • How: when the limit resets, say "back to the top model" (kappmaker-model restore).

Testing on a server with no emulator

  • Rule: most VPSes can't run an Android emulator (no KVM, the hardware support an emulator needs). For an end-to-end check and a walkthrough video, the army drives the app's desktop (JVM) build on a virtual display.
  • Why: it's the only way to tap through real flows on a box with no screen.
  • How: expect a short video instead of emulator screenshots. Record it as fragmented MP4 so a stopped recording is still playable. Real device tests stay on your phone.

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