Config
Three files control App Army. All live in ~/.army/. Secrets never go in any of them.
| File | What |
|---|---|
~/.army/army.conf |
your answers from kappmaker-army init and every optional setting |
~/.army/models.conf |
which Claude model tier each agent runs on |
~/.army/guard.json |
optional tuning for the guard hook |
Precedence: an environment variable beats army.conf, which beats the default. Full variable reference with
the renderer rules: docs/cli/CONFIG.md. Annotated example: kit/installer/templates-cli/army.conf.example.
army.conf
A plain KEY="value" file. Bash tools source it. Python tools parse it and never execute it. After editing it,
run kappmaker-army update --no-pull to re-render agents and workspace files with the new values.
Asked by kappmaker-army init
| Variable | Default | Used for |
|---|---|---|
ARMY_KIT |
the kit you ran init from | agent source, skeleton, templates |
ARMY_PROJECTS |
$HOME/projects |
one folder per app, plus the workspace CLAUDE.md and MEMORY.md |
ARMY_HOME |
$ARMY_PROJECTS/.army |
factory/, concepts/, loop-template/, claims/ |
APP_ID_PREFIX |
com.example |
new apps become <prefix>.<app> |
SUPPORT_EMAIL |
support@example.com |
apps, store listings, legal pages |
COMPANY_NAME |
Your Company |
legal pages, store listings |
LEGAL_SITE |
example.com |
privacy and terms hosting |
GITHUB_OWNER |
empty | owner of new private app repos |
ARMY_WORKERS |
main |
always-on worker names, space separated |
ARMY_DEFAULT_WORKER |
first worker | worker id when nothing else says |
ARMY_TELEGRAM |
no |
yes = workers listen on Telegram |
ARMY_NOTIFY_CHAT_ID |
empty | Telegram chat for routine messages. No chat id means no message |
Optional
| Variable | Default | Used for |
|---|---|---|
ARMY_NOTIFY |
telegram if Telegram is on, else stdout |
routine messages: telegram, cmd, stdout, none |
ARMY_NOTIFY_CMD |
empty | with ARMY_NOTIFY=cmd, gets the message on stdin (Slack, email, ntfy) |
ARMY_NOTIFY_TOKEN_FILE |
first worker's bot .env |
bot token used for notifications |
ARMY_SKIP_PERMISSIONS |
yes |
workers use skip-permissions only when the guard is active. no = never |
ARMY_WORKER_UNIT |
army-worker@%w.service |
systemd unit per worker |
ARMY_TMUX_PREFIX |
army- |
tmux session name per worker |
ARMY_WORKSPACES |
~/.army/workspaces |
one boot folder per worker |
ARMY_SKIP_APPS |
empty | parked app folders that status and health checks ignore |
ARMY_STITCH_ROOT |
~/stitch-previews |
Stitch preview output |
STITCH_KEY_FILE |
~/.config/stitch/api_key |
Stitch API key file (mode 600) |
GOOGLE_SA_JSON |
empty | path to your Google Play service-account JSON (mode 600) |
WHISPER_DIR |
~/.army/tools/whisper |
faster-whisper venv for voice notes |
PREVIEW_RESERVED_PORTS |
empty | ports kappmaker-army preview must never use |
BOX_CPUS / BOX_RAM_GB |
detected | machine size for build and overload checks |
KEEP_KEYSTORE_IN_REPO |
false |
true = commit the Android keystore to the app repo. Only for private repos |
IOS_IPHONE_ONLY |
true |
new apps target iPhone only, so no iPad screenshots are needed |
PPP_ENABLED |
true |
store products keep purchasing-power-parity prices |
ARMY_ENV_FILE |
~/.army/env |
toolchain env for systemd units (written by setup-vps.sh) |
ARMY_BOARD_PORT |
7788 |
project board port (loopback only) |
See what the renderer will use, and find files that still hold {{ NAME }} placeholders:
kappmaker-army render vars
kappmaker-army render scan ~/.claude/agents
models.conf
One line per agent: <agent>=<fable|opus|sonnet|haiku>. An empty file means each agent keeps the tier in its
source. Do not edit ~/.claude/agents/*.md by hand; they are generated and a hand edit is replaced on the next sync.
Change tiers with the model tool (it edits models.conf and re-renders):
kappmaker-army model show # session model + every agent's tier
kappmaker-army model agents sonnet delight-specialist # move one agent to sonnet
kappmaker-army model session opus --restart # the always-on session's model (restarts the worker)
kappmaker-army model downshift "usage limit" # top-tier agents to opus for now
kappmaker-army model restore # and back
kappmaker-army model is the same tool as kappmaker-model. Both names work.
Then check nothing drifted:
kappmaker-army agents check
kappmaker-army agents sync # re-render if it reports drift
guard.json
Optional. Anything you leave out keeps its default.
{
"mode": "enforce",
"projects_root": "~/projects",
"disabled_rules": [],
"allow_edit": [],
"production_publish": "ask",
"add_protected_files": ["~/projects/CLAUDE.md"],
"add_rm_allow_paths": ["~/scratch"],
"extra_deny_commands": [{"pattern": "terraform destroy", "reason": "Ask the owner first."}]
}
mode:enforce(default),warn(logs what it would block, blocks nothing),off.- Keys that start with
add_extend a default list instead of replacing it. allow_editlets the agent edit a protected file. Example: add~/projects/MEMORY.mdif you want "remember X" to write to memory without you.
Every rule id and option: SAFETY.md and docs/SAFETY-guard.md.
Where things live
| Path | What |
|---|---|
~/.army/army.conf, models.conf, guard.json |
config |
~/.army/bin/ |
the CLI, on your PATH |
~/.army/hooks/guard.py |
the guard hook |
~/.army/logs/guard.log |
every guard decision, secrets masked |
~/.army/workers.conf, workspaces/, bots/ |
always-on workers |
$ARMY_HOME/factory/ |
ideas, keywords, prompts, rules, checklists, learnings, routines, skills |
$ARMY_HOME/concepts/ |
concept recipes and INDEX.md |
$ARMY_HOME/loop-template/ |
the loop scaffold copied into each app |
$ARMY_HOME/claims/ |
which worker is on which project |
$ARMY_PROJECTS/CLAUDE.md, MEMORY.md |
workspace instructions and your memory file |
~/.claude/agents/*.md |
rendered agents (generated) |
~/.claude/session-history-<worker>.md |
recent turns, for recovery after a restart |
~/.claude/channels/telegram-<worker>/.env |
a worker's bot token (mode 600) |
Docs for the App Army kit. The Claude Code plugin has its own page.