timbal: Instructions file for Claude Code

CLAUDE.md

timbal CLAUDE.md is an instructions file for Claude Code from timbal-ai/timbal. It costs 11,843 tokens per session, scanned A, original, Apache-2.0.

Development instructions for timbal-ai/timbal, a Python project for building agents and workflows. They cover setup, tests, formatting, linting, benchmarks, and the repository layout.

In plain words
What is it for?
Use them to install dependencies, run all or selected tests, format and lint Python code, run benchmarks, and find the main source and test directories.
Why use it?
They give contributors the commands and project structure needed to develop and check changes consistently.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/timbal-ai/timbal/claude-md"><img src="https://agentmods.dev/badge/instructions/timbal-ai/timbal/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11,843 This file is loaded in full into every session.
When invoked 11,843 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.11843 $0.11843
Opus 5.5 $0.04737 $0.04737
Sonnet 5.5 $0.02369 $0.02369
Haiku 4.5 $0.01184 $0.01184

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

Security

Grade A, and why

timbal 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 13d 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 · 733 lines

How it starts

The opening of the file, as written. The whole thing — 733 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) when working with code in this repository.

Commands

Development and Testing

  • Install dependencies: uv sync --dev (from repo root — pyproject.toml is at root)
  • Run all tests: uv run pytest (from repo root)
  • Run single test: uv run pytest python/tests/core/test_agent.py::TestClass::test_method
  • Linting: uv run ruff check
  • Format: uv run ruff format
  • Fix lint: uv run ruff check --fix
  • Line length: 120 chars (configured in pyproject.toml)

Benchmarks

  • LangGraph benchmarks: uv pip install -r benchmarks/langchain/requirements.txt, then uv run --no-sync python benchmarks/langchain/bench_agent.py (or the other standalone bench_*.py scripts). JavaScript dependencies: npm ci --prefix benchmarks/langgraph_js.
  • Quick mode: pass --quick; full mode is the default. bench_revision.py emits repeated-comparison samples as JSON.
  • Current agent API: bench_agent.py --agent-api current benchmarks langchain.agents.create_agent; the default retains legacy create_react_agent for historical comparisons. Keep the same environment/harness and switch only PYTHONPATH when comparing Timbal revisions.

Repository Layout

timbal/
├── python/
│   ├── timbal/               # Main package
│   │   ├── __init__.py       # Top-level exports: Agent, Workflow
│   │   ├── core/
│   │   │   ├── runnable.py   # Base class for all executable components
│   │   │   ├── agent.py      # Agent execution engine
│   │   │   ├── workflow.py   # DAG workflow engine
│   │   │   ├── tool.py       # Tool wrapper
│   │   │   ├── tool_set.py   # ToolSet ABC for runtime tool resolution
│   │   │   ├── mcp.py        # MCPServer — MCP servers as tool sources
│   │   │   ├── llm/          # Multi-provider LLM dispatch (router, registry, clients, retry + one module per API)
│   │   │   ├── models.py     # Model strings + context window lookup
│   │   │   └── test_model.py # Offline TestModel for testing
│   │   ├── state/
│   │   │   ├── __init__.py   # get_run_context, get_call_id, etc.
│   │   │   ├── context.py    # RunContext definition
│   │   │   ├── background.py # Session-scoped background-task store
│   │   │   └── tracing/
│   │   │       ├── providers/
│   │   │       │   ├── base.py       # TracingProvider ABC + Exporter ABC
│   │   │       │   ├── in_memory.py  # Default in-memory provider
│   │   │       │   ├── jsonl.py      # JSONL file provider
│   │   │       │   └── platform.py   # Timbal platform provider
│   │   │       └── exporters/
│   │   │           └── otel.py       # OTelExporter (fire-and-forget OTLP/HTTP)
│   │   ├── types/
│   │   │   ├── message.py    # Message with role + content list
│   │   │   ├── file.py       # File type with auto content detection
│   │   │   ├── content/      # TextContent, ToolUseContent, FileContent, etc.
│   │   │   └── events/       # StartEvent, DeltaEvent, OutputEvent
│   │   ├── collectors/       # Output processing; TimbalCollector is default
│   │   └── tools/            # Built-in tool library (Bash, Slack, Gmail, etc.)
│   └── tests/
│       └── core/             # Test files mirroring package structure
├── benchmarks/
│   ├── README.md             # General benchmark guide
│   └── langchain/            # Timbal vs LangChain/LangGraph benchmarks
├── planning/                 # In-progress feature plans (gitignored)
└── pyproject.toml            # Root package config + dev deps

Read the full file on GitHub · 733 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. 13d ago Changed · +6 lines · +2,160 tokens per session 274a2d6a7a47
  2. 16d ago Changed · +2 lines · +182 tokens per session 19d3715a297a
  3. 1mo ago Changed · +2 lines · +231 tokens per session 4c336636005f
  4. 1mo ago Changed · +2 lines · +143 tokens per session 2f9d7f341cf3
  5. 1mo ago Changed · +12 lines · +1,399 tokens per session 87470b1d4e8e
  6. 2mo ago Changed · +1 lines · +9 tokens per session aecc25b79209
  7. 2mo ago Changed · +18 lines · +351 tokens per session 74ef4f03cc18
  8. 2mo ago First seen · 690 lines · 7,368 tokens per session scan A 96f1a53fdae7

Subscribe to this mod's changes

timbal CLAUDE.md is an instructions file published in the GitHub repository timbal-ai/timbal (48 stars, last pushed yesterday), licensed Apache-2.0. It adds 11,843 tokens to every session, about $0.0474 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

timbal CLAUDE.md compared with instructions from other repositories

timbal CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
timbal CLAUDE.mdtimbal-ai/timbalInstructions file48yesterdayApache-2.0A11,843Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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