midifier: Instructions file for Claude Code

CLAUDE.md

midifier CLAUDE.md is an instructions file for Claude Code from matheusfillipe/midifier. It costs 1,078 tokens per session, scanned A, a copy of deepseek-harness CLAUDE.md, MIT.

Project-specific instructions for Midifier, a service that turns a song into a multi-track General MIDI file, a standard format for separate instrument tracks. The project provides REST and MCP interfaces for other software to use it.

In plain words
What is it for?
Following Midifier’s instructions while developing or maintaining its song-conversion service and interfaces.
Why use it?
They give a coding agent the context needed to work safely in that project.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/matheusfillipe/midifier/claude-md"><img src="https://agentmods.dev/badge/instructions/matheusfillipe/midifier/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,078 This file is loaded in full into every session.
When invoked 1,078 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 100% copy Near-identical to another mod 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.01078 $0.01078
Opus 5.5 $0.00431 $0.00431
Sonnet 5.5 $0.00216 $0.00216
Haiku 4.5 $0.00108 $0.00108

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

Security

Grade A, and why

midifier 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 1mo 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.

Origin

This is a copy

100% identical to deepseek-harness CLAUDE.md — 104 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 103 lines

How it starts

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

AGENTS.md

Guidance for agents working in this repo. CLAUDE.md is a symlink to this file, so there is one set of instructions rather than two that drift.

What this is

An API that turns a recording into a multi-track General MIDI file: it identifies which instruments are playing, transcribes each, and names and assigns the tracks. It feeds kinesthesia, which renders MIDI as falling notes to practise against.

Toolchain

uv for everything. Never call pip or a bare python.

uv sync --extra dev          # install
uv run pytest                # tests
uv run mypy src tests        # types, strict
uv run ruff check --fix .    # lint
uv run ruff format .         # format
uv run prek run -a     # everything CI runs
uv run python -m midifier    # serve the API

uvx for one-off tools that are not dependencies.

Non-negotiables

  • mypy strict. No Any, no untyped defs, no # type: ignore without a reason on the same line. If typing something is hard, that usually means the design is unclear.
  • One import per line. force-single-line = true; do not group with commas or parentheses.
  • Coverage stays at or above 80%. Add tests with the code, not afterwards.
  • Every check runs as a prek hook, and CI runs prek. Adding a check anywhere else splits the definition of "clean" in two.
  • No bare except Exception. Catch what can actually be raised.

Style

Comments are rare and earn their place. The code says what it does; a comment exists only for a non-obvious why, a constraint, or a trap that would invite a wrong "simplification". Never narrate a change ("was X, now Y") — write code as though it always looked this way.

Prefer deleting to adding. The pipeline reached its current quality mostly by removing stages that sounded clever and measured worse; treat new stages with the same suspicion.

Where things are

src/midifier/
  config.py        settings, all from the environment, prefix MIDIFIER_
  api.py           REST surface, async job pattern
  mcp.py           MCP tools over the same job store
  storage.py       local filesystem or S3/MinIO behind one protocol
  fetch.py         SSRF-guarded URL fetching
  jobs.py          job model and in-memory store
  midi/
    cleanup.py     repairs the decoder's characteristic defects
    notes.py       reads chords out of a decode
    segments.py    where to cut a long decode
    parts.py       decides the song's instruments from every segment at once
tests/             mirrors src; e2e/ needs the model and is opt-in

Read the full file on GitHub · 103 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. 1mo ago Changed · +102 lines · +1,075 tokens per session d9bae81dd9f1
  2. 2mo ago First seen · 1 lines · 3 tokens per session scan A a54ff182c7e8

Subscribe to this mod's changes

midifier CLAUDE.md is an instructions file published in the GitHub repository matheusfillipe/midifier (1 stars, last pushed 1mo ago), licensed MIT. It adds 1,078 tokens to every session, about $0.0043 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to deepseek-harness CLAUDE.md, differing in 104 lines, and is treated as a copy.

Related

midifier CLAUDE.md compared with instructions from other repositories

midifier CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
midifier CLAUDE.mdmatheusfillipe/midifierInstructions file11mo agoMITA1,078Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot