ASFireWire CLAUDE.md

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

Install

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.

agentmods
npx agentmods add instructions/mrmidi/asfirewire/claude-md
Clone the repo
git clone --depth 1 https://github.com/mrmidi/ASFireWire
Per session 6,278 This file is loaded in full into every session.
When invoked 6,278 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
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 $0.06278 $0.06278
Opus 5 $0.03139 $0.03139
Sonnet 5 $0.01256 $0.01256
Haiku 4.5 $0.00628 $0.00628

Measured 3d ago against content hash 9bb61b01e546, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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 · 289 lines

How it starts

The opening of the file, as written. The whole thing — 289 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 and AudioDriverKit for CoreAudio integration. TODO: MIDIDriverKit and SCSIControllerDriverKit.

Two components:

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

Build Commands

ASFW.xcodeproj is GENERATED from the root project.yml (XcodeGen) and is gitignored — never commit it. Never edit the pbxproj or hand-tune settings in Xcode either; change project.yml and run xcodegen generate (./build.sh does it automatically when xcodegen is installed). After adding/removing/renaming source files, update project.yml and commit that — there is no generated project to commit alongside it. XcodeGen is a build prerequisite for every checkout, including CI. (ADKVirtualAudioLab/ has its own separate project.yml.)

Because the pbxproj is no longer committed, 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 · 289 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. 3d 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 (135 stars, last pushed 3d ago), licensed Apache-2.0. It adds 6,278 tokens to every session, about $0.0314 per session on Opus 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.