Repository navigation
feat: add a food meter, a Random faction, and duo mode - #13
Merged
Merged
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 statuslinenow also shows the context window as food against Warcraft III's 100 cap:⛏ 18% gold (5h) low · 42/100 food.food.lowPercent(default 85) plays the newout_of_foodevent 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.goldCueis generalized tometerCuewith 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_foodjoins the attention preset.Faction modes
faction randompicks one faction per session from a hash of the session ID (from Agent StarCraft).faction duoassigns 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.mdexplains each event's lines and the faction modes (from Agent Rocky).docs/promotion/listings.mdholds community listing drafts (from Agent StarCraft); nothing is submitted.Checks
npm run check;npm test49/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.Not verified: a live Claude Code session crossing the food threshold. The cue logic is covered by fixture tests only.