iohc-flipper: Instructions file for Claude Code

CLAUDE.md

iohc-flipper CLAUDE.md is an instructions file for Claude Code from samr037/iohc-flipper. It costs 2,512 tokens per session, scanned A, original, MIT.

A set of project instructions for an io-homecontrol Flipper Zero application, a program for a device that communicates with compatible wireless home controls. It documents the project's code map, constraints, progress, and known hardware risks.

In plain words
What is it for?
Use it when continuing work on the Flipper Zero application, especially wireless protocol research, hardware verification, interrupt or register code, and phase-by-phase development.
Why use it?
It gives future coding sessions the decisions and safety rules needed for this hardware project. It requires physical verification between phases and evidence before making protocol decisions.

Instructions file for Claude Code

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd iohc_flipper && ../.venv/bin/ufbt.

Reuse

Borrowing it

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

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 iohc-flipper CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/samr037/iohc-flipper/claude-md.svg)](https://agentmods.dev/instructions/samr037/iohc-flipper/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/samr037/iohc-flipper/claude-md"><img src="https://agentmods.dev/badge/instructions/samr037/iohc-flipper/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,512 This file is loaded in full into every session.
When invoked 2,512 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.02512 $0.02512
Opus 5 $0.01256 $0.01256
Sonnet 5 $0.00502 $0.00502
Haiku 4.5 $0.00251 $0.00251

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

Security

Grade A, and why

iohc-flipper 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 8d 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 · 199 lines

How it starts

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

CLAUDE.md — iohc-flipper

Context for future Claude Code sessions in this project. Read once at session start. Cross-reference with PROGRESS.md for the full historical trail.

What this is

A Flipper Zero FAP that speaks io-homecontrol (868 MHz, Velux + Somfy + others). User-driven RE / interop research on hardware the user owns. Phase 6 is achieved as of 2026-05-14: cross-vendor pairing + control works in software, no external programmer needed.

Hard constraints (from the user's brief)

These override defaults. Read first.

  1. Don't auto-advance phases. Each phase ends with the user physically verifying on hardware. Wait for explicit go-ahead before starting the next phase.
  2. For any change to ISR or register-init code, explain the timing budget and worst-case execution path before writing the code. CC1101 SPI timing is fragile; we burned a day on a chip-ready-wait omission.
  3. For every protocol decision cite the source. Captured frames, official docs, or upstream RE projects. Never guess byte semantics.
  4. Don't guess. Capture first, then reason.
  5. First action of every session: read PROGRESS.md. It carries the full context window of decisions and gotchas from prior sessions.

Code map

iohc_flipper/src/
├── iohc_app.c           # Entry, view dispatcher, consumer thread, callbacks
├── radio/
│   └── radio_cc1101.c   # SPI driver, register init, RX/TX state machine
├── phy/
│   └── phy_rx.c         # FIFO drain → frame assembly with sync alignment
├── iohc/
│   ├── frame_parse.c    # Bytes → IohcParsedFrame (Ctrl/dst/src/cmd/payload/seq/MAC/CRC)
│   ├── frame_build.c    # Build 1W frame + UART-wrap + bit-pack for FIFO
│   ├── crc.c            # CRC-16/KERMIT
│   ├── hmac_1w.c        # AES-128-ECB based HMAC for 1W suffix
│   ├── aes.c            # AES-128 primitives (CBC/ECB/CFB)
│   └── key_encrypt.c    # iohc_wrap_install_key (cmd 0x30 enc_key field)
├── state/
│   ├── identity.c       # Global Flipper identity (src+key+seq) on SD
│   ├── device_book.c    # Per-shutter identities, binary format v2 + JSON export
│   └── tx_runner.c      # High-level send_button / send_pair, vendor-mapped man_id
├── ui/
│   ├── view_main_menu.c
│   ├── view_sniffer.c       # Live raw frame display
│   ├── view_capture.c       # SRC-indexed capture (vendor only trusted on cmd 0x00)
│   ├── view_device_list.c   # Saved shutters with [S]/[V]/[?] prefix
│   ├── view_device_actions.c
│   └── view_identity.c
└── log/
    └── log.c            # Per-session CSV + raw .bin write

Read the full file on GitHub · 199 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. 8d ago First seen · 199 lines · 2,512 tokens per session scan A ddef4318ff4b

Subscribe to this mod's changes

iohc-flipper CLAUDE.md is an instructions file published in the GitHub repository samr037/iohc-flipper (12 stars, last pushed 3mo ago), licensed MIT. It adds 2,512 tokens to every session, about $0.0126 per session on Opus 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

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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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 · 6,785 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 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,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens