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.
npx agentmods add commands/kaeawc/auto-mobile/dead-codegit clone --depth 1 https://github.com/kaeawc/auto-mobileWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.01308 |
| Opus 5 | $0.00000 | $0.00654 |
| Sonnet 5 | $0.00000 | $0.00262 |
| Haiku 4.5 | $0.00000 | $0.00131 |
Grade A, and why
dead-code 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Dead Code Cleanup
Detect and remove dead code across TypeScript, Bash, Kotlin, and iOS/Swift codebases.
Arguments
The user may specify a target scope as arguments: $ARGUMENTS
Supported scopes:
- ts / typescript — TypeScript dead code (ts-prune + knip)
- bash / shell — Unused variables, functions, and files in shell scripts
- kotlin / android — Unused Kotlin code in android/ (plus a specific module like
android/control-proxy) - swift / ios — Unused Swift code in ios/ (plus a specific package like
ios/control-proxy) - all — Run all of the above
- No argument or empty — Default to all
The user may also specify a subdirectory or module (e.g., kotlin android/ide-plugin, swift ios/control-proxy).
Instructions
Step 1: Determine scope
Parse $ARGUMENTS to determine which language(s) and optional subdirectory to scan. If ambiguous, ask the user.
Step 2: Run detection for each target
TypeScript
- Run the existing detection scripts:
bun run dead-code:ts:prune bun run dead-code:ts:knip - Cross-reference results against
dead-code-allowlist.json— items already allowlisted with valid reasons are false positives. - For each flagged item, grep the codebase to verify it is truly unused (check
src/,test/,scripts/, barrelindex.tsre-exports, and namespace imports likeimport * as). - Classify each as DEAD (zero references, safe to remove) or FALSE POSITIVE (used in tests, public API, barrel re-export, namespace import, etc.).
Bash / Shell
- Run shellcheck on all
.shfiles in the target directory (default:scripts/):shellcheck scripts/*.sh - Focus on SC2034 (unused variables) and SC2317 (unreachable code).
- Also look for script files in
scripts/that are never referenced frompackage.json, other scripts, CI workflows (.github/workflows/), or documentation.
Kotlin / Android
- Identify the Gradle module(s) to scan (default: all modules under
android/). - Run Android lint if available:
cd android && ./gradlew :<module>:lintDebug 2>&1 - Grep for unused imports, classes, and functions using IDE-style heuristics:
- Find all public/internal class and function declarations
- Search for references to each across the module and its dependents
- Flag any with zero external references (excluding the defining file)
- Check for unused Gradle dependencies in
build.gradle.ktsfiles.
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.
- 2d ago First seen · 119 lines · 0 tokens per session scan A f9d8cb5c2059
dead-code is a command published in the GitHub repository kaeawc/auto-mobile (45 stars, last pushed 2d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,308 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.
Other commands, from other repositories
feature
Post a feature to the Features Board on production and write tweets.
commit-all
Group all changes semantically and commit each group separately.
responsive-design-specialist
Use when a layout breaks between sizes. Arbitrary breakpoints, type that does not scale, images that blow out the grid, or a desktop design retrofitted onto mobile.
compose-test
Run Compose UI tests with Espresso. Verify critical user flows.
app-store-audit
Run an enterprise pre submission compliance audit on an iOS or Android app against Apple App Store and Google Play rejection rules. Pass a project path or run from the project root.
build-verify
Run the full build / test / analyze / format verification pass for this Flutter app.