ASFireWire: Instructions file for Claude Code

CLAUDE.md

ASFireWire CLAUDE.md is an instructions file for Claude Code from mrmidi/ASFireWire. It costs 7,167 tokens per session, scanned A, original, Apache-2.0.

Build and project instructions for ASFireWire, a macOS driver and control app that restores FireWire support. The driver uses Apple’s DriverKit frameworks, while a Swift app installs and controls it.

In plain words
What is it for?
Building and testing the driver and app, updating XcodeGen project settings, running CMake or CTest where applicable, and maintaining the separate project components.
Why use it?
They prevent edits to generated Xcode files and ensure source and project configuration stay in sync across local builds and continuous integration.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mrmidi/asfirewire/claude-md"><img src="https://agentmods.dev/badge/instructions/mrmidi/asfirewire/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,167 This file is loaded in full into every session.
When invoked 7,167 The same file — it is already loaded in full.
Security scan A 1 finding. 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.07167 $0.07167
Opus 5.5 $0.02867 $0.02867
Sonnet 5.5 $0.01433 $0.01433
Haiku 4.5 $0.00717 $0.00717

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

Security

Grade A, and why

ASFireWire CLAUDE.md scanned grade A with 1 finding 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 21d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

**Check references before implementing anything wire-observable** — not just device-specific audio features. This covers OHCI mechanism (DMA/descriptors/contexts), bus policy (reset/gap/IRM/BM/topology), protocol logic (
CLAUDE.md · 305 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) and other ai agents when working with code in this repository.

Project Overview

ASFW is a macOS DriverKit-based FireWire (IEEE 1394) driver restoring FireWire functionality removed in macOS Tahoe (26). It uses PCIDriverKit for user-space OHCI controller access, AudioDriverKit for CoreAudio integration, and SCSIControllerDriverKit for SBP-2 mass storage (SCSI HBA, in all builds since v0.3.0). TODO: MIDIDriverKit.

Two components:

  • ASFWDriver/ — C++23 DriverKit driver extension (dext)
  • ASFW/ — Swift 6 control app and installer (required to install the dext)

Build Commands

project.yml is the source of truth. ASFW.xcodeproj is generated by XcodeGen and is committed only because Xcode Cloud requires the project to be present in source control. Never edit the generated project or pbxproj manually; change project.yml and run xcodegen generate (./build.sh does it automatically when xcodegen is installed). After adding/removing/renaming source files or build settings, update project.yml, regenerate, and commit the updated project alongside it. CI asserts that ASFW.xcodeproj matches project.yml on every run. (The local-only ADKVirtualAudioLab/, when present, has its own separate project.yml.)

Every build setting must live in project.yml — anything set only in the generated project is lost on the next regeneration.

Primary build (Xcode — required for signing and producing .dext):

./build.sh                        # Quiet build (errors/warnings only)
./build.sh --verbose              # Full xcodebuild output
./build.sh --no-bump              # Skip version bump
./build.sh --config Release       # Release build

Generate compile_commands.json (for clangd, static analysis):

./build.sh --commands
# or via CMake:
cmake -S . -B build && cmake --build build --target compile_commands

C++ unit tests (no hardware/DriverKit needed):

./build.sh --test-only                        # Build + run all C++ tests
./build.sh --test-only --test-filter Pattern  # Run tests matching a regex

# Or directly with CMake/CTest:
cmake -S tests -B build/tests_build
cmake --build build/tests_build -- -j$(sysctl -n hw.ncpu)
ctest --test-dir build/tests_build -V
ctest --test-dir build/tests_build -V -R TopologyManager   # single test suite

Read the full file on GitHub · 305 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. 21d ago Changed · -12 tokens per session 0e6ada5af40e
  2. 22d ago Changed · +3 lines · +66 tokens per session 9ed40e896cdc
  3. 26d ago Changed · +4 lines · +354 tokens per session abe6f405ebee
  4. 27d ago Changed · +2 lines · +266 tokens per session c116cfdcf356
  5. 1mo ago Changed · -1 lines · -17 tokens per session 8ebc4f672c77
  6. 1mo ago Changed · +3 tokens per session dc6d5217ac24
  7. 1mo ago Changed · +24 tokens per session e808cd7cef37
  8. 1mo ago Changed · +9 lines · +296 tokens per session deb4a22501ce
  9. 2mo ago Changed · -1 lines · -91 tokens per session f2f8714a4734
  10. 2mo ago First seen · 289 lines · 6,278 tokens per session scan A 9bb61b01e546

Subscribe to this mod's changes

ASFireWire CLAUDE.md is an instructions file published in the GitHub repository mrmidi/ASFireWire (204 stars, last pushed 6d ago), licensed Apache-2.0. It adds 7,167 tokens to every session, about $0.0287 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ASFireWire CLAUDE.md compared with instructions from other repositories

ASFireWire CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ASFireWire CLAUDE.mdmrmidi/ASFireWireInstructions file2046d agoApache-2.0A7,167Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,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