Skip to content

feat: add a food meter, a Random faction, and duo mode - #13

Merged
mitchtech merged 1 commit into
mainfrom
feat/food-meter-and-faction-modes
Oct 29, 2026
Merged

mitchtech merged 1 commit into
mainfrom
feat/food-meter-and-faction-modes

Conversation

@mitchtech

Copy link
Copy Markdown
Owner

Brings Agent Warcraft level with features the newer siblings added, and releases 0.4.0.

Food meter (from Agent StarCraft's supply meter)

  • agent-warcraft statusline now also shows the context window as food against Warcraft III's 100 cap: ⛏ 18% gold (5h) low · 42/100 food.
  • Crossing food.lowPercent (default 85) plays the new out_of_food event once per rise: "Build more burrows!" (GruntNoFood1) or "Build more farms." (KnightNoFood1), from the same Sounds Resource archive as the gold and lumber alarms. Both transcripts were verified with whisper.
  • goldCue is generalized to meterCue with per-meter state. The gold state key is unchanged, so existing sessions keep their level. A gold alarm takes priority over food in the same update.
  • out_of_food joins the attention preset.

Faction modes

  • faction random picks one faction per session from a hash of the session ID (from Agent StarCraft).
  • faction duo assigns a faction per event (from Agent Star Wars). The Peon handles session start, prompts, annoyed lines, subagents, tool failures, and session end. The Alliance answers approvals and questions, announces "Job's done!", and raises the usage alarms.

Docs

  • docs/sounds.md explains each event's lines and the faction modes (from Agent Rocky).
  • docs/promotion/listings.md holds community listing drafts (from Agent StarCraft); nothing is submitted.
  • The README, budget guide, compatibility table, skill triggers, site event map, usage-alarm ledger, and control examples are updated.

Checks

  • npm run check; npm test 49/49, with new tests for the food meter, random, and duo.
  • npm run test:package; build-audio.py --check; build-assets.py --check; check-pet.py.
  • Built site checked in a browser at 1440 and 390 px: no overflow, no console messages, and the new clip loads and plays.

Not verified: a live Claude Code session crossing the food threshold. The cue logic is covered by fixture tests only.

- Show the context window as food against the 100 cap in the statusline, with an out_of_food cue (Build more burrows! / Build more farms.).
- Add faction random (one faction per session) and faction duo (the Peon works, the Alliance reports).
- Add sound notes and community listing drafts; release 0.4.0.
@mitchtech
mitchtech merged commit 1b5cbc0 into main Oct 29, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant