Claude-of-Tanks
AGENTS.md448 starsChanged 4 months agoMITView on GitHub
Pointer index for agents working in this repo. Keep this file lean: load linked files on demand, prune no-op instructions, and keep generated facts inside agent-docs:auto blocks.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- public/llms-full.txtllms.txt
- public/llms.txtllms.txt
- improve-threejsSkill
- api-skillSkill
- server-skillSkill
- claude-of-tanks-skillSkill
- src-skillSkill
- tools-skillSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
19 rules. About 0 are common, 10 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Treat current origin/main as active shared work: isolate broad changes in a worktree and never stage generated tank work wholesale.
- Distinctive: line 65
Keep this block compact. Put full command catalogs in a generated command index, not in AGENTS.md.
- Very specific: line 94
Use Graphify for repo topology, path/explain/affected questions, PR risk, and unfamiliar codebase orientation.
- Very specific: line 95
Use rg for exact strings; use Kevin-Wiki qmd for people, tools, decisions, and compiled wiki knowledge.
- Very specific: line 96
Use agent-browser for browser/UI work.
- Very specific: line 101
Never run Graphify installers/hooks or commit generated graphify-out/ artifacts.
- Distinctive: line 116
Keep simulation and network modules Node-runnable and free of DOM/WebGL.
- Distinctive: line 117
No per-frame allocation in established hot loops.
- Distinctive: line 118
All playable tanks are first-party procedural runtime models.
- Very specific: line 120
Every first-party file and asset is attributed to Kevin B.
- Very specific: line 124
Every game-mode rule (gravity, speed, hull, damage, reload, ammunition, equipment, consumables, respawn, clock, roster split, assault …
- Very specific: line 137
Add focused *.selftest.mjs coverage and include it in npm test.
- Distinctive: line 146
Never modify or clean the shared dirty checkout to integrate unrelated work.
- Distinctive: line 147
Never equate a player/entity ID with a vehicle spec ID.
- Distinctive: line 149
Never send hidden enemy coordinates to a client and rely on rendering to hide them.
- Distinctive: line 151
Never make a client authoritative for hits, damage, reloads, or match result.
- Distinctive: line 152
Do not import full fleet builders into a new boot-critical module.
- Distinctive: line 153
Do not add multicrew roles or multiple player seats inside one vehicle.
- Very specific: line 154
Never deploy per commit. Git auto-deploys are disabled in vercel.json (git.deploymentEnabled off for main and codex/*).
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
claude-of-tanks - Agent Index
Pointer index for agents working in this repo. Keep this file lean: load linked files on demand, prune no-op instructions, and keep generated facts inside
agent-docs:autoblocks.
Overview
<!-- agent-docs:fill:overview -->Browser-native Three.js armored combat game. The runtime combines a fixed-step
60 Hz simulation, procedural first-party vehicle fleet, thirty battlefields,
garage/showroom presentation, bots, armor/ballistics/modules, and mobile input.
Treat current origin/main as active shared work: isolate broad changes in a
worktree and never stage generated tank work wholesale.
Architecture Pointers
<!-- agent-docs:fill:architecture -->docs/DEVELOPMENT.md#publishing-to-shared-main— shared Codex/Claude integration, overlap review and preflight; read before integrating or publishing changes.docs/ARCHITECTURE.md— original module contracts and simulation invariants.docs/AUDIO.md— the sound engine and how its sounds were generated (ElevenLabs catalog, takes, selection, mastering, crew script and cast); read before changingsrc/audio/or regenerating sounds.docs/audio-generation/README.md— the audio-generation handbook: pipeline and files, the prompt cookbook (what worked and failed), take scoring and failure modes, costs and recipes. Begin withdocs/audio-generation/SKILL.mdbefore generating or repairing any sound or crew line.docs/MULTIPLAYER-V2.md— the peer-to-peer multiplayer: rooms Worker, wire, host, client, the cutover (§13.10).docs/tank-generation/README.md— source/markup intake, measured construction, prompts, quality gates and resumable tank-generation handoffs. Read before new source-backed tanks, family rebuilds or exact-surface geometry repairs. Begin withdocs/tank-generation/SKILL.md; this documentation-only directory is not discovered by the source-code index.docs/tank-generation/fleet-style-performance-priority.md— urgent open fleet-wide primitive/cost, switching, roller/track, chassis-closure and material-role work; read before adding further tank micro-detail.src/main.ts— strict typed boot, scene composition, UI flow, and render-loop wiring across extracted lifecycle owners; keep changes surgical.src/game/stateCore.ts— dependency-free typed session shell, event bus, and deterministic integration RNG.src/game/state.ts— battle roster and authoritative simulation integration.src/sim/— movement, armor, damage, spotting, and ballistics logic.src/mp/— rooms, the binary wire, transports, the match client, the browser host and the session owner.
Stack
<!-- agent-docs:auto:stack start -->- Name: claude-of-tanks
- Package manager: npm
- Languages: typescript
- Framework: vite
<!-- agent-docs:auto:stack end -->Commands
<!-- agent-docs:auto:commands start -->- Package scripts detected: 122. Use
package.jsonas the exhaustive source. npm run build- VITE_PUBLIC_BUILD=1 vite build && node tools/strip-nc-assets.mjsnpm run test- node tools/run-selftests.mjs corenpm testruns the pre → core → post receipt groups; a receipt whose observable inputs are byte-identical to its last PASS is skipped with a SKIP line (COT_SELFTEST_CACHE=0 npm testruns everything), every failure in a group is reported in one run (COT_SELFTEST_FAIL_FAST=1stops at the first), andtank:release:checkruns its fleet probes beside the suite and the build after the serial scoring steps. See docs/DEVELOPMENT.md "Fast checks".npm run typecheck- node node_modules/typescript/bin/tsc -p tsconfig.json --noEmit && node tools/core-unused-check.mjsnpm run agent-docs- node scripts/run-agent-docs.ts- Keep this block compact. Put full command catalogs in a generated command index, not in AGENTS.md.
<!-- agent-docs:auto:commands end -->Directory index
<!-- agent-docs:auto:dirmap start -->| Directory | Skill | Purpose |
api/ | api/SKILL.md | Maintain the deployed ICE credential, telemetry, Jev proxy and public GitHub-count HTTP entrypoints. |
server/ | server/SKILL.md | Implement and operate the match actor, the LAN room helper, collision manifests, ICE and telemetry services. |
src/ | src/SKILL.md | Navigate browser boot and shared source contracts while preserving subsystem and bundle boundaries. |
src/app/ | src/app/SKILL.md | Maintain typed application composition, lazy owner access, frame wiring, and combat warm lifecycle. |
src/audio/ | src/audio/SKILL.md | Work on event-driven spatial audio, radio voices, engines, weapons, ambience, and mix state. |
src/dev/ | src/dev/SKILL.md | Maintain opt-in diagnostics, bounded traces, deterministic shot controls, and capture readiness gates. |
src/docs/ | src/docs/SKILL.md | Maintain the public field manual, indexed topic pages, typed icons, and battle-reel interactions. |
src/engine/ | src/engine/SKILL.md | Work on renderer, lighting, camera, postprocessing, device quality, and frame diagnostics. |
src/fx/ | src/fx/SKILL.md | Work on pooled particles, impacts, destruction effects, decals, and shared FX time. |
src/gallery/ | src/gallery/SKILL.md | Build and verify the public Tank Gallery, its technical dossiers, diagnostic overlays, and exact-surface markup review packets. |
src/game/ | src/game/SKILL.md | Work on battle integration, bots, input, garage dressing, progression, replays, and studio state. |
src/presentation/ | src/presentation/SKILL.md | Maintain lightweight public navigation, media loading, archive presentation, and public-site contracts. |
src/sim/ | src/sim/SKILL.md | Work on deterministic movement, armor, ballistics, damage, and spotting simulation. |
src/ui/ | src/ui/SKILL.md | Work on garage, HUD, settings, mobile controls, transitions, and battle presentation UI. |
src/vehicles/ | src/vehicles/SKILL.md | Work on first-party procedural tank specs, builders, materials, profiles, ordering, and asset provenance. |
src/world/ | src/world/SKILL.md | Work on terrain, maps, collision, vegetation, props, destructibles, and world streaming. |
tools/ | tools/SKILL.md | Maintain deterministic performance, screenshot, fleet, geometry, asset, and release verification tools. |
tools/marketing-shots/ | tools/marketing-shots/SKILL.md | Generate deterministic branded marketing screenshots from staged game states. |
<!-- agent-docs:auto:dirmap end -->Repo graph sidecar (Graphify)
<!-- agent-docs:auto:repo-graph start -->- Use Graphify for repo topology, path/explain/affected questions, PR risk, and unfamiliar codebase orientation.
- Use
rgfor exact strings; use Kevin-Wikiqmdfor people, tools, decisions, and compiled wiki knowledge. - Use
agent-browserfor browser/UI work; use Playwright only for committed regression tests. - Runtime memories (Hermes/Hindsight/Honcho) are not project truth until written back to AGENTS.md, SKILL.md, or the wiki.
- Status:
cd ~/Documents/GitHub/kevin-wiki && npm run graphify:sidecar -- status --run outputs/graphify/claude-of-tanks - Build from this repo:
PROJECT_ROOT="$(pwd)" && cd ~/Documents/GitHub/kevin-wiki && npm run graphify:sidecar -- build "$PROJECT_ROOT" --run outputs/graphify/claude-of-tanks --no-viz - Query after build:
cd ~/Documents/GitHub/kevin-wiki && npm run graphify:sidecar -- query "what should I inspect first?" --run outputs/graphify/claude-of-tanks - Never run Graphify installers/hooks or commit generated
graphify-out/artifacts.
<!-- agent-docs:auto:repo-graph end -->Environment variables (names only)
<!-- agent-docs:auto:env start -->VITE_COT_DEV_FLEET_KEYVITE_ROOMS_URL
<!-- agent-docs:auto:env end -->Conventions & invariants
<!-- agent-docs:fill:conventions -->- Runtime units are meters, seconds, and radians; tank forward is local
+Z. - Simulation advances at
SIM_DT = 1/60; rendering may be variable-rate. - Simulation randomness is seeded/injected. Do not use wall-clock time or
Math.random()in authoritative logic. - Keep simulation and network modules Node-runnable and free of DOM/WebGL.
- No per-frame allocation in established hot loops; reuse scratch state.
- All playable tanks are first-party procedural runtime models. Source GLBs are comparison/authoring inputs, never a playable loading path.
- Every first-party file and asset is attributed to Kevin B. Liu by
NOTICE.md; every playable spec inherits the named authorship record fromsrc/authorship.ts. Record third-party exceptions indocs/ATTRIBUTION.mdand runnpm run attribution:check. - Every game-mode rule (gravity, speed, hull, damage, reload, ammunition, equipment,
consumables, respawn, clock, roster split, assault escalation, score targets) lives in
src/sim/matchRuleset.ts; the mode controller,state.ts, the authority, the HUD and the rule cards read that table. Never add a mode literal elsewhere. - Objective markers (spawns, flags, zones, sectors, goals, caches) come from one derivation,
src/ui/minimapObjectives.ts, and one glyph set,src/ui/objectiveGlyphs.ts; the HUD minimap andsrc/game/matchModeWorldPresentation.tsboth consume them. A new objective gets a marker kind and a glyph there, never an ad-hoc drawing in the HUD or the world. - Export only what another file imports:
node tools/unused-exports.mjslists the exports nothing else mentions and drives the periodic un-export passes;npm run typecheckruns the unused-locals check on the core owners. Leave hash-pinned sources (vehicle profiles, terrain, sky, impact decals, the authority, match placement) to their receipts. - Add focused
*.selftest.mjscoverage and include it innpm test. - Any playable tank addition or geometry/profile change must run the complete
combat-anatomy procedure:
npm run tank:anatomy:update,npm run tank:anatomy:check, then the targetednpm run tank:release:check -- --ids=<ids> --gate. The update deliberately refreshes armor/module/crew receipts and all fleet technical diagrams.
Gotchas / never-do-X
<!-- agent-docs:fill:gotchas -->- Never modify or clean the shared dirty checkout to integrate unrelated work.
- Never equate a player/entity ID with a vehicle spec ID; duplicate tank picks are valid in multiplayer.
- Never send hidden enemy coordinates to a client and rely on rendering to hide them; spotting filters snapshots before serialization.
- Never make a client authoritative for hits, damage, reloads, or match result.
- Do not import full fleet builders into a new boot-critical module.
- Do not add multicrew roles or multiple player seats inside one vehicle.
- Never deploy per commit. Git auto-deploys are disabled in
vercel.json(git.deploymentEnabledoff formainandcodex/*); production changes only through the once-per-round prebuilt CLI deploy indocs/DEPLOYS.md(vercel pull --yes --environment=production && vercel build --prod && node tools/vercel-output-immutable.mjs && vercel deploy --prebuilt --prod, scopekl01s-projects) after a green gate. Do not add a second gate (Ignored Build Step) or a CI deploy.
Extending this project's agent system
<!-- agent-docs:fill:extending -->Refresh generated blocks with KEVIN_WIKI_ROOT=/Users/kevinliu/repos/Kevin-Wiki-v3
npm run agent-docs -- scaffold ., then run the corresponding doctor --json.
Edit prose only below agent-docs:fill markers; generated auto blocks are owned
by the scaffold command.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

