graflow: Instructions file for Claude Code

CLAUDE.md

graflow CLAUDE.md is an instructions file for Claude Code from GraflowAI/graflow. It costs 3,889 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Graflow, a Python engine that runs connected task workflows locally or across multiple machines. A task graph shows which tasks depend on one another and can include parallel work.

In plain words
What is it for?
Use them to develop and validate Graflow workflows, run examples, execute tests, check Python types, and perform the full formatting and quality checks.
Why use it?
They give developers the commands and workflow needed to install dependencies, format code, check types, and run tests consistently.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/graflowai/graflow/claude-md"><img src="https://agentmods.dev/badge/instructions/graflowai/graflow/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,889 This file is loaded in full into every session.
When invoked 3,889 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.03889 $0.03889
Opus 5.5 $0.01556 $0.01556
Sonnet 5.5 $0.00778 $0.00778
Haiku 4.5 $0.00389 $0.00389

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

Security

Grade A, and why

graflow 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 2mo 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 · 427 lines

How it starts

The opening of the file, as written. The whole thing — 427 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.

Project Overview

Graflow is an executable task graph engine for Python workflow execution. It provides both local and distributed execution capabilities with support for task graphs, parallel execution, inter-task communication via channels, cycle detection, and dynamic task generation.

Tech Stack: Python 3.11+, networkx, matplotlib, redis, cloudpickle Package Manager: uv Dev Tools: ruff (linting/formatting), mypy (type checking), pytest (testing)

Essential Commands

Development Workflow

# Setup
uv sync --dev              # Install development dependencies
uv sync --all-extras       # Install with graphviz extras (macOS: see install-extras target)

# Code Quality (run before commits)
make format                # Format code with ruff (auto-fix imports, whitespace)
make lint                  # Run ruff + mypy type checking
make test                  # Run pytest test suite
make check-all             # Run format + lint + test (full validation)
make fix                   # Quick fix with ruff --fix --unsafe-fixes

# Running Examples
make py examples/01_basics/hello_world.py    # Run specific example
PYTHONPATH=. uv run python <file>            # Alternative: run any Python file

# Testing
uvx pytest tests/ -v                         # Run all tests
uvx pytest tests/core/ -v                    # Run specific test directory
uvx pytest tests/core/test_task.py -v        # Run specific test file
uvx pytest tests/core/test_task.py::test_name -v  # Run specific test

# Single Test Pattern
PYTHONPATH=. python3 tests/worker/test_task_worker_integration.py  # Direct test execution

Makefile Notes

  • Line 23: Coverage reports to flowlet (legacy name, but works)
  • Line 46-48: macOS graphviz extras require CFLAGS/LDFLAGS from Homebrew

Architecture Overview

Core Execution Model

Graflow uses a task graph execution engine where tasks are nodes and dependencies are edges. The engine supports:

  • Local execution: In-process task execution
  • Distributed execution: Redis-based queue with worker processes
  • Parallel execution: ParallelGroup for concurrent task execution
  • Dynamic tasks: Runtime task generation via next_task() and next_iteration()

Read the full file on GitHub · 427 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. 2mo ago First seen · 427 lines · 3,889 tokens per session scan A 905ac52be8bf

Subscribe to this mod's changes

graflow CLAUDE.md is an instructions file published in the GitHub repository GraflowAI/graflow (41 stars, last pushed 13d ago), licensed Apache-2.0. It adds 3,889 tokens to every session, about $0.0156 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

graflow CLAUDE.md compared with instructions from other repositories

graflow CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
graflow CLAUDE.mdGraflowAI/graflowInstructions file4113d agoApache-2.0A3,889Claude Code
flow-like copilot-instructions.mdRheosoph/flow-likeInstructions file972yesterdaynoneA1,349GitHub Copilot
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