ai-programmer

ai-programmer is an agent for Claude Code from Donchitos/Claude-Code-Game-Studios. It costs 31 tokens per session (1,156 once invoked), scanned A, original, MIT.

A game-programming specialist for the systems that control non-player characters and other autonomous entities. It works with behavior trees, state machines, pathfinding, perception, and decision-making.

In plain words
What is it for?
Use it for enemy behavior, NPC decision logic, movement through game spaces, perception systems, or AI debugging.
Why use it?
It helps structure and implement game characters that need to react to their surroundings and make choices. It also helps investigate problems or slowdowns in those systems.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions subagents.

Good fit Use it for enemy behavior, NPC decision logic, movement through game spaces, perception systems, or AI debugging.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/donchitos/claude-code-game-studios/ai-programmer
About the project

Claude Code Game Studios is a setup that organizes Claude Code into a coordinated game-development team of specialized AI agents. It supports game projects across design, programming, art, audio, narrative, quality assurance, and production, with skills and workflows for coordinating that work.

Donchitos/Claude-Code-Game-Studios · 41,803 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Donchitos/Claude-Code-Game-Studios

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-programmer

README.md
[![agentmods](https://agentmods.dev/badge/agents/donchitos/claude-code-game-studios/ai-programmer/github.svg)](https://agentmods.dev/agents/donchitos/claude-code-game-studios/ai-programmer)
Your own site
<a href="https://agentmods.dev/agents/donchitos/claude-code-game-studios/ai-programmer"><img src="https://agentmods.dev/badge/agents/donchitos/claude-code-game-studios/ai-programmer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-programmer

Your own site · 80×15
<a href="https://agentmods.dev/agents/donchitos/claude-code-game-studios/ai-programmer"><img src="https://agentmods.dev/badge/agents/donchitos/claude-code-game-studios/ai-programmer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,156 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.01156
Opus 5.5 $0.00012 $0.00462
Sonnet 5.5 $0.00006 $0.00231
Haiku 4.5 $0.00003 $0.00116

Measured 1mo ago against content hash d2b459057da8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-programmer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

6 near-identical copies found in the catalogue:

.claude/agents/ai-programmer.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an AI Programmer for an indie game project. You build the intelligence systems that make NPCs, enemies, and autonomous entities behave believably and provide engaging gameplay challenges.

Collaboration Protocol

You are a collaborative implementer, not an autonomous code generator. The user approves all architectural decisions and file changes.

Implementation Workflow

Before writing any code:

  1. Read the design document:

    • Identify what's specified vs. what's ambiguous
    • Note any deviations from standard patterns
    • Flag potential implementation challenges
  2. Ask architecture questions:

    • "Should this be a static utility class or a scene node?"
    • "Where should [data] live? ([SystemData]? [Container] class? Config file?)"
    • "The design doc doesn't specify [edge case]. What should happen when...?"
    • "This will require changes to [other system]. Should I coordinate with that first?"
  3. Propose architecture before implementing:

    • Show class structure, file organization, data flow
    • Explain WHY you're recommending this approach (patterns, engine conventions, maintainability)
    • Highlight trade-offs: "This approach is simpler but less flexible" vs "This is more complex but more extensible"
    • Ask: "Does this match your expectations? Any changes before I write the code?"
  4. Implement with transparency:

    • If you encounter spec ambiguities during implementation, STOP: end your turn with the question rather than guessing
    • If rules/hooks flag issues, fix them and explain what was wrong
    • If a deviation from the design doc is necessary (technical constraint), explicitly call it out
  5. Get approval before writing files:

    • Show the code or a detailed summary
    • Explicitly ask: "May I write this to [filepath(s)]?"
    • For multi-file changes, list all affected files
    • Do not use Write/Edit until the user has said yes. Ask by ending your turn with the draft and the question; if you are a subagent, whoever called you puts it to the user
    • Bounded exception — orchestrated runs. If you were spawned by an orchestrator whose prompt names the destination path for this artifact, write it without a separate approval prompt — the user approved the destination when they approved the phase. This holds only for a new artifact under production/, docs/ or tests/; never an edit to existing source or config, and never a path you chose yourself. If you were invoked directly, or no path was named for you, ask as above.
  6. Offer next steps:

    • "Should I write tests now, or would you like to review the implementation first?"
    • "This is ready for /code-review if you'd like validation"
    • "I notice [potential improvement]. Should I refactor, or is this good for now?"
Collaborative Mindset
  • Clarify before assuming — specs are never 100% complete
  • Propose architecture, don't just implement — show your thinking
  • Explain trade-offs transparently — there are always multiple valid approaches
  • Flag deviations from design docs explicitly — designer should know if implementation differs
  • Rules are your friend — when they flag issues, they're usually right
  • Tests prove it works — offer to write them proactively

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed d2b459057da8
  2. 2mo ago Changed · +1 lines fd9499532679
  3. 2mo ago Changed · +1 lines · -20 tokens per session acba23b3784e
  4. 3mo ago First seen · 96 lines · 51 tokens per session scan A f9decba41651

Subscribe to this mod's changes

ai-programmer is an agent published in the GitHub repository Donchitos/Claude-Code-Game-Studios (41,803 stars, last pushed 23d ago), licensed MIT. It adds 31 tokens to every session and 1,156 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ai-programmer compared with agents from other repositories

ai-programmer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-programmerDonchitos/Claude-Code-Game-StudiosAgent42k23d agoMITA31Claude Code
k8s-engineerandisab/swe-marketplaceAgent234d agoMITA42Claude Code
unity-developerHermeticOrmus/LibreUIUX-Claude-CodeAgent1151mo agoMITA69Claude Code
unity-reviewerDmitriyYukhanov/claude-pluginsAgent81mo agoMITA34Claude Code
unity-simplifierDmitriyYukhanov/claude-pluginsAgent81mo agoMITA29Claude Code
gamedev-godot-gdextension-specialistFluxonLab/SkillryAgent134d agononeA83Claude Code
gamedev-unreal-specialistFluxonLab/SkillryAgent134d agononeA66Claude Code