gba-smoke

gba-smoke is a command for coding agents from intellegix/intellegix-code-agent-toolkit. It costs 0 tokens per session (696 once invoked), scanned A, original, MIT.

A basic smoke-test command for games running in a Game Boy Advance emulator. A smoke test quickly checks that the emulator and game can start and continue running.

In plain words
What is it for?
Use it to check emulator output, advance the game, identify supported ROMs, and run the matching game's documented smoke tests.
Why use it?
It catches connection, blank-screen, execution, and game-detection problems before more detailed tests begin.

Command

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.

agentmods
npx agentmods add commands/intellegix/intellegix-code-agent-toolkit/gba-smoke
Clone the repo
git clone --depth 1 https://github.com/intellegix/intellegix-code-agent-toolkit

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 gba-smoke

README.md
[![agentmods](https://agentmods.dev/badge/commands/intellegix/intellegix-code-agent-toolkit/gba-smoke.svg)](https://agentmods.dev/commands/intellegix/intellegix-code-agent-toolkit/gba-smoke)
Your own site
<a href="https://agentmods.dev/commands/intellegix/intellegix-code-agent-toolkit/gba-smoke"><img src="https://agentmods.dev/badge/commands/intellegix/intellegix-code-agent-toolkit/gba-smoke.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 696 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00696
Opus 5 $0.00000 $0.00348
Sonnet 5 $0.00000 $0.00139
Haiku 4.5 $0.00000 $0.00070

Measured 3d ago against content hash cec9daed1cc5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gba-smoke 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 3d 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.

commands/gba-smoke.md · 63 lines

How it starts

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

/gba-smoke — Universal GBA Emulator Smoke Test

5 ABSOLUTE RULES

  1. VERIFY state before every action (screenshot + frame check)
  2. ONLY named RECIPES — never invent button sequences
  3. Frame advances >30 → state check first
  4. Screenshot every 5 tool calls
  5. Assertion fail → STOP, report, never retry blindly

Tier 1: Universal Assertions (4 tests, any ROM)

These run BEFORE game detection. If any fail, stop immediately.

  1. gba_get_frame → ASSERT responds with frame number > 0 (emulator running)
  2. gba_screenshot → ASSERT visible content on screen (not black/blank)
  3. gba_advance_frames(60) → ASSERT no error (ROM executes without crash)
  4. gba_get_frame → ASSERT frame number increased (game loop is advancing)

Tier 2: Game-Specific Assertions

Step 1: Detect Game

Read ROM title: gba_read_memory(0x080000A0, 12) — decode as ASCII.

ROM Title Contains Profile Action
POKEMON EMER or POKEMON FIRE profiles/pokemon-embergold.md Load profile, run its smoke mode
BRAINATTIC profiles/brain-attic.md Load profile, run its smoke mode
(no match) none Skip Tier 2, report Tier 1 only

Step 2: Load Profile and Guide

  1. Read the matched profile from ~/.claude/commands/profiles/
  2. Read the game's guide file completely (path in profile) — MANDATORY
  3. Execute the profile's smoke mode test sequence

Step 3: Merge Reports

Combine Tier 1 + Tier 2 results into a single table.

Report Format

With Game Profile

| # | Tier | Test | Expected | Actual | Result |
|---|------|------|----------|--------|--------|
| 1 | T1 | Emulator responds | frame > 0 | ... | PASS/FAIL |
| 2 | T1 | Screenshot | visible screen | ... | PASS/FAIL |
| 3 | T1 | Frame advance | no error | ... | PASS/FAIL |
| 4 | T1 | Frame advancing | frame increased | ... | PASS/FAIL |
| 5+ | T2 | (game-specific) | ... | ... | PASS/FAIL |

Without Game Profile

| # | Tier | Test | Expected | Actual | Result |
|---|------|------|----------|--------|--------|
| 1 | T1 | Emulator responds | frame > 0 | ... | PASS/FAIL |
| 2 | T1 | Screenshot | visible screen | ... | PASS/FAIL |
| 3 | T1 | Frame advance | no error | ... | PASS/FAIL |
| 4 | T1 | Frame advancing | frame increased | ... | PASS/FAIL |

ROM title: <detected title> — no matching profile found. Only universal tests ran.

Read the full file on GitHub · 63 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. 3d ago First seen · 63 lines · 0 tokens per session scan A cec9daed1cc5

Subscribe to this mod's changes

gba-smoke is a command published in the GitHub repository intellegix/intellegix-code-agent-toolkit (57 stars, last pushed 10d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 696 tokens. 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.