agentleFS
Kevin-Liu-01Kevin-Liu-01/Claude-of-Tanks/AGENTS.md

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.

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
  1. Very specific:

    Treat current origin/main as active shared work: isolate broad changes in a worktree and never stage generated tank work wholesale.

    line 12
  2. Distinctive:

    Keep this block compact. Put full command catalogs in a generated command index, not in AGENTS.md.

    line 65
  3. Very specific:

    Use Graphify for repo topology, path/explain/affected questions, PR risk, and unfamiliar codebase orientation.

    line 94
  4. Very specific:

    Use rg for exact strings; use Kevin-Wiki qmd for people, tools, decisions, and compiled wiki knowledge.

    line 95
  5. Very specific:

    Use agent-browser for browser/UI work.

    line 96
  6. Very specific:

    Never run Graphify installers/hooks or commit generated graphify-out/ artifacts.

    line 101
  7. Distinctive:

    Keep simulation and network modules Node-runnable and free of DOM/WebGL.

    line 116
  8. Distinctive:

    No per-frame allocation in established hot loops.

    line 117
  9. Distinctive:

    All playable tanks are first-party procedural runtime models.

    line 118
  10. Very specific:

    Every first-party file and asset is attributed to Kevin B.

    line 120
  11. Very specific:

    Every game-mode rule (gravity, speed, hull, damage, reload, ammunition, equipment, consumables, respawn, clock, roster split, assault …

    line 124
  12. Very specific:

    Add focused *.selftest.mjs coverage and include it in npm test.

    line 137
  13. Distinctive:

    Never modify or clean the shared dirty checkout to integrate unrelated work.

    line 146
  14. Distinctive:

    Never equate a player/entity ID with a vehicle spec ID.

    line 147
  15. Distinctive:

    Never send hidden enemy coordinates to a client and rely on rendering to hide them.

    line 149
  16. Distinctive:

    Never make a client authoritative for hits, damage, reloads, or match result.

    line 151
  17. Distinctive:

    Do not import full fleet builders into a new boot-critical module.

    line 152
  18. Distinctive:

    Do not add multicrew roles or multiple player seats inside one vehicle.

    line 153
  19. Very specific:

    Never deploy per commit. Git auto-deploys are disabled in vercel.json (git.deploymentEnabled off for main and codex/*).

    line 154

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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:auto blocks.

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 changing src/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 with docs/audio-generation/SKILL.md before 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 with docs/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.json as the exhaustive source.
  • npm run build - VITE_PUBLIC_BUILD=1 vite build && node tools/strip-nc-assets.mjs
  • npm run test - node tools/run-selftests.mjs core
  • npm test runs 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 test runs everything), every failure in a group is reported in one run (COT_SELFTEST_FAIL_FAST=1 stops at the first), and tank:release:check runs 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.mjs
  • npm 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 -->
DirectorySkillPurpose
api/api/SKILL.mdMaintain the deployed ICE credential, telemetry, Jev proxy and public GitHub-count HTTP entrypoints.
server/server/SKILL.mdImplement and operate the match actor, the LAN room helper, collision manifests, ICE and telemetry services.
src/src/SKILL.mdNavigate browser boot and shared source contracts while preserving subsystem and bundle boundaries.
src/app/src/app/SKILL.mdMaintain typed application composition, lazy owner access, frame wiring, and combat warm lifecycle.
src/audio/src/audio/SKILL.mdWork on event-driven spatial audio, radio voices, engines, weapons, ambience, and mix state.
src/dev/src/dev/SKILL.mdMaintain opt-in diagnostics, bounded traces, deterministic shot controls, and capture readiness gates.
src/docs/src/docs/SKILL.mdMaintain the public field manual, indexed topic pages, typed icons, and battle-reel interactions.
src/engine/src/engine/SKILL.mdWork on renderer, lighting, camera, postprocessing, device quality, and frame diagnostics.
src/fx/src/fx/SKILL.mdWork on pooled particles, impacts, destruction effects, decals, and shared FX time.
src/gallery/src/gallery/SKILL.mdBuild and verify the public Tank Gallery, its technical dossiers, diagnostic overlays, and exact-surface markup review packets.
src/game/src/game/SKILL.mdWork on battle integration, bots, input, garage dressing, progression, replays, and studio state.
src/presentation/src/presentation/SKILL.mdMaintain lightweight public navigation, media loading, archive presentation, and public-site contracts.
src/sim/src/sim/SKILL.mdWork on deterministic movement, armor, ballistics, damage, and spotting simulation.
src/ui/src/ui/SKILL.mdWork on garage, HUD, settings, mobile controls, transitions, and battle presentation UI.
src/vehicles/src/vehicles/SKILL.mdWork on first-party procedural tank specs, builders, materials, profiles, ordering, and asset provenance.
src/world/src/world/SKILL.mdWork on terrain, maps, collision, vegetation, props, destructibles, and world streaming.
tools/tools/SKILL.mdMaintain deterministic performance, screenshot, fleet, geometry, asset, and release verification tools.
tools/marketing-shots/tools/marketing-shots/SKILL.mdGenerate 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 rg for exact strings; use Kevin-Wiki qmd for people, tools, decisions, and compiled wiki knowledge.
  • Use agent-browser for 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_KEY
  • VITE_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 from src/authorship.ts. Record third-party exceptions in docs/ATTRIBUTION.md and run npm 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 and src/game/matchModeWorldPresentation.ts both 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.mjs lists the exports nothing else mentions and drives the periodic un-export passes; npm run typecheck runs 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.mjs coverage and include it in npm 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 targeted npm 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.deploymentEnabled off for main and codex/*); production changes only through the once-per-round prebuilt CLI deploy in docs/DEPLOYS.md (vercel pull --yes --environment=production && vercel build --prod && node tools/vercel-output-immutable.mjs && vercel deploy --prebuilt --prod, scope kl01s-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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.