PokeClaw: Instructions file for Claude Code

CLAUDE.md

PokeClaw CLAUDE.md is an instructions file for Claude Code from agents-io/PokeClaw. It costs 1,720 tokens per session, scanned A, original, Apache-2.0.

A project rulebook for PokeClaw, an Android mobile-agent harness that lets an AI agent operate mobile devices. It documents the important project files, development priorities, and required quality checks.

In plain words
What is it for?
Use it before changing prompts, skills, task routing, runtime behavior, quality assurance, or release behavior in the PokeClaw repository. It helps identify which documentation and test files must be updated.
Why use it?
It keeps changes aligned with the project's runtime, hardware, storage, accessibility, foreground-service, installation, signing, and testing requirements. It also requires quality assurance work for every change.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is agents-io/PokeClaw's own configuration. It tells Claude Code how to work on PokeClaw itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything PokeClaw configures →

About the project

PokeClaw is an open-source Android app that uses AI to operate a phone, such as reading messages and carrying out tasks. Its local mode runs Gemma 4 on the device without an account or API key, while optional cloud models can help with more difficult reasoning.

agents-io/PokeClaw · 1,140 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to agents-io/PokeClaw. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/agents-io/PokeClaw/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/agents-io/PokeClaw

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 PokeClaw CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/agents-io/pokeclaw/claude-md/github.svg)](https://agentmods.dev/instructions/agents-io/pokeclaw/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/agents-io/pokeclaw/claude-md"><img src="https://agentmods.dev/badge/instructions/agents-io/pokeclaw/claude-md/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 PokeClaw CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/agents-io/pokeclaw/claude-md"><img src="https://agentmods.dev/badge/instructions/agents-io/pokeclaw/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,720 This file is loaded in full into every session.
When invoked 1,720 The same file — it is already loaded in full.
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.01720 $0.01720
Opus 5.5 $0.00688 $0.00688
Sonnet 5.5 $0.00344 $0.00344
Haiku 4.5 $0.00172 $0.00172

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

Security

Grade A, and why

PokeClaw CLAUDE.md 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 2mo 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.

CLAUDE.md · 123 lines

How it starts

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

PokeClaw — Project Rules

Read This First

Before changing prompts, skills, task routing, local runtime, QA, or release behavior, read README.md sections Product Direction, Roadmap, and Known platform constraints.

The short version: PokeClaw is a generic Android mobile-agent harness, not a collection of hardcoded demo tasks. Prioritize runtime, hardware, storage, accessibility, foreground-service, install/signing, and QA-harness correctness before narrow prompt or workflow tuning.

Project Files

File What When to update
README.md Public product direction, roadmap, changelog When product direction, roadmap, release notes, or public claims change
AI_INDEX.md Repo map for coding agents When files or directories move
CLAUDE.md Project rules When workflow/rules change
QA_CHECKLIST.md E2E test cases + debug changelog Every code change
RELEASING.md Stable signing and release workflow When the release process changes
BACKLOG.md Features, bugs, ideas with priority When new items come in or items get done
ARCHITECTURE_RECONSTRUCTION.md Historical architecture/refactor guardrails When reconstruction phases change
CLAUDE.local.md Current session state Every session

When Nicole mentions a feature idea, bug, or "之後要做" item → write it into BACKLOG.md immediately. Don't rely on session memory.

QA-First Development (MANDATORY)

Every code change MUST include E2E QA. No exceptions. This is the highest-priority practice in this project.

QA must reflect the product direction in README.md: do not turn stochastic model performance into one-off prompt drilling. Fix and gate deterministic harness failures first, then measure exploratory model tasks by repeated-trial success rate.

Per-Change QA (every commit)

  1. Design QA tests FIRST — before writing code, define what the E2E test looks like
  2. Add tests to QA_CHECKLIST.md — permanent, under the relevant section (A-K or new section)
  3. Tests must be E2E via ADB — simulate real user behavior: adb shell input tap/text, adb shell am broadcast, uiautomator dump, logcat verification. No unit tests, no mocks. Control the phone like a user would.
  4. Cover edge cases — happy path + error path + boundary conditions. For every feature, ask: "what if permission is missing?", "what if network drops?", "what if user taps twice?", "what if another task is running?"
  5. Run the new tests — execute them yourself, verify PASS, record results in the QA Debug Changelog
  6. Run affected existing tests — any section that could be impacted by the change, re-run those tests
  7. After a big feature — run the FULL checklist top to bottom (all sections A-K+)

Read the full file on GitHub · 123 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. 2mo ago First seen · 123 lines · 1,720 tokens per session scan A 115198be8413

Subscribe to this mod's changes

PokeClaw CLAUDE.md is an instructions file published in the GitHub repository agents-io/PokeClaw (1,140 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 1,720 tokens to every session, about $0.0069 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

PokeClaw CLAUDE.md compared with instructions from other repositories

PokeClaw CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
PokeClaw CLAUDE.mdagents-io/PokeClawInstructions file1.1k5mo agoApache-2.0A1,720Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode