amelia: Instructions file for Claude Code

CLAUDE.md

amelia CLAUDE.md is an instructions file for Claude Code from existential-birds/amelia. It costs 955 tokens per session, scanned A, original, Apache-2.0.

A project instruction file for Amelia, a Python backend and dashboard project. It documents the commands, code conventions, data-model rules, asynchronous design, and test-first development process.

In plain words
What is it for?
Use it when changing Amelia's backend, command-line interface, dashboard, data models, agents, drivers, or automated tests.
Why use it?
It removes guesswork about how to build, test, lint, and type-check Amelia. TDD, or test-driven development, means writing tests before the code they check.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/existential-birds/amelia/claude-md"><img src="https://agentmods.dev/badge/instructions/existential-birds/amelia/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 955 This file is loaded in full into every session.
When invoked 955 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.00955 $0.00955
Opus 5.5 $0.00382 $0.00382
Sonnet 5.5 $0.00191 $0.00191
Haiku 4.5 $0.00096 $0.00096

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

Security

Grade A, and why

amelia 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.

CLAUDE.md · 66 lines

How it starts

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

CLAUDE.md

Build & Development Commands

This project uses uv for Python and pnpm for the dashboard frontend (dashboard/).

# Backend
uv run ruff check --fix amelia tests   # Lint (auto-fix)
uv run mypy amelia                     # Type check
uv run pytest                          # Full test suite
uv run pytest tests/unit/              # Unit tests only

# Dashboard (run from dashboard/)
pnpm build        # Production build
pnpm test:run     # Tests (CI mode)
pnpm lint:fix     # ESLint auto-fix
pnpm type-check   # TypeScript checking

# Full stack
uv run amelia dev                      # API on :8420, dashboard on :8421

Pre-push hook runs ruff check, mypy, pytest, and pnpm build — all must pass.

Code Conventions

  • Test-Driven Development (TDD) — write tests first, then implementation
  • Python 3.12+ with type hints everywhere
  • Pydantic models for all data structures — not ad-hoc dicts
  • Async throughout — avoid blocking calls in async functions
  • Loguru for logging (logger), not print. Use kwargs for structured fields: logger.info("msg", key=value)
  • Typer for CLI with annotated parameters
  • Raise ValueError with clear messages for validation failures
  • New drivers/agents must conform to interfaces in amelia/core/

Test Conventions

Tests use pytest-asyncio with asyncio_mode = "auto".

  • DRY — extract common setup into fixtures in tests/conftest.py
  • Integration tests (tests/integration/) must use real components — only mock at the external boundary (e.g., HTTP calls to LLM APIs). Never mock internal classes like Architect, Developer, or Reviewer. If you're patching internals, it's a unit test — put it in tests/unit/.
  • High-fidelity mocks — return the same types production code returns (e.g., Pydantic model instances, not .model_dump() dicts)

Browser Automation

Use agent-browser for web automation: agent-browser open <url>, then agent-browser snapshot -i for interactive element refs, then agent-browser click @e1 / agent-browser fill @e2 "text".

Read the full file on GitHub · 66 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 First seen · 66 lines · 955 tokens per session scan A 2860c56d7fa8

Subscribe to this mod's changes

amelia CLAUDE.md is an instructions file published in the GitHub repository existential-birds/amelia (21 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 955 tokens to every session, about $0.0038 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