ccpocket: Instructions file for Claude Code

CLAUDE.md

ccpocket CLAUDE.md is an instructions file for Claude Code from K9i-0/ccpocket. It costs 1,399 tokens per session, scanned A, original, MIT.

Project instructions for ccpocket, a mobile client for Claude Code and Codex. The project has a TypeScript bridge server that manages coding-agent sessions and a Flutter app that displays chats, differences, images, settings, and connections.

In plain words
What is it for?
Use them when developing the bridge server, WebSocket sessions, Claude or Codex process handling, stream parsing, or Flutter screens such as chat, session lists, diffs, galleries, and settings.
Why use it?
They explain how the mobile app communicates with coding-agent processes and where each feature lives. This reduces the risk of changing the wrong layer or breaking session communication.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

This is K9i-0/ccpocket's own configuration. It tells Claude Code how to work on ccpocket 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 ccpocket configures →

About the project

CC Pocket is a mobile and desktop client for controlling Codex and Claude coding-agent sessions through a self-hosted Bridge Server running on another computer. It lets users start sessions, approve actions, answer questions, review changes, and continue coding from supported devices. The catalogue entries provide the skills, hooks, MCP servers, agents, instructions, and settings used by this client.

K9i-0/ccpocket · 1,092 stars · on GitHub · k9i-0.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to K9i-0/ccpocket. 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/K9i-0/ccpocket/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/K9i-0/ccpocket

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/k9i-0/ccpocket/claude-md"><img src="https://agentmods.dev/badge/instructions/k9i-0/ccpocket/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,399 This file is loaded in full into every session.
When invoked 1,399 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.01399 $0.01399
Opus 5.5 $0.00560 $0.00560
Sonnet 5.5 $0.00280 $0.00280
Haiku 4.5 $0.00140 $0.00140

Measured 28d ago against content hash 81ea2af2a31a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ccpocket 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 28d 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 · 51 lines

How it starts

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

ccpocket

Claude Code / Codex 対応モバイルクライアント。Bridge は packages/bridge/(TypeScript / WebSocket)、アプリは apps/mobile/(Flutter / Dart)。npm workspaces を使う。

作業と完了条件

  • 依頼された変更に必要な実装・検証・不具合修正まで継続する。指定済みの対象や承認を繰り返し確認しない。
  • 計画には、その変更に必要な実装・検証・レビューを含める。調査や文書編集にアプリ起動・E2E・Webビルドを一律に追加しない。
  • プロトコルやサービス境界を変更する複雑な実装では、判断と互換性方針を docs/ に残す。
  • 検証は変更範囲とリスクに応じて選ぶ。成功済みの検証は、新たな変更・失敗・未解決の懸念がなければ繰り返さない。
  • 関連するローカル検証と、今回の変更に起因する失敗の修正・再検証は続けて行う。既存の無関係な問題は報告し、作業範囲を広げない。
  • 機能単位でコミットする。Conventional Commits (type(scope): description) を使う。

変更対象ごとの参照

Bridge と Flutter の両方を変更する場合は両方の検証を選ぶ。文書のみの変更は参照・形式・内容を検証する。

運用上の制約

  • 本番Bridgeの既定ポートは 8765。E2Eでは別のテスト用Bridge(既定 8766)を使い、本番を停止・再起動しない。終了時は自分が起動したプロセスだけ停止する。
  • ランタイム操作は dart-mcp / Marionette、テスト・静的解析・フォーマットはCLIを使う。詳細は mobile-automation を参照。
  • 新しいクライアントメッセージは古いBridgeの unsupported_message に対応する。通常チャットは _unsupportedActions、直接応答を待つ専用UIはそのUI内で更新案内を扱う。
  • TypeScript は ESM / strict / NodeNext module resolution。

リリース・配布

依頼された操作に対応するスキルを読む。リリース作成と既存ビルドの審査提出は別の操作。

Read the full file on GitHub · 51 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. 28d ago Changed · +1 lines · +106 tokens per session 81ea2af2a31a
  2. 1mo ago Changed · -291 lines · -3,083 tokens per session 15d6e8d40eda
  3. 1mo ago First seen · 341 lines · 4,376 tokens per session scan A 6f3ccae405a4

Subscribe to this mod's changes

ccpocket CLAUDE.md is an instructions file published in the GitHub repository K9i-0/ccpocket (1,092 stars, last pushed yesterday), licensed MIT. It adds 1,399 tokens to every session, about $0.0056 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,786 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens