Agentflow CLAUDE.md

Agentflow CLAUDE.md is an instructions file for coding agents from 10xHub/Agentflow. It costs 2,839 tokens per session, scanned A, original, MIT.

Engineering instructions for Agentflow, a Python library for building workflows that coordinate multiple AI agents and preserve their state.

In plain words
What is it for?
Use them when developing or importing the Agentflow core library, especially when working across its larger monorepo, a repository containing several related packages.
Why use it?
They explain the project’s real package layout, public imports, supported Python version, and development rules, reducing errors caused by its repository structure.

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/10xhub/agentflow/claude-md
Clone the repo
git clone --depth 1 https://github.com/10xHub/Agentflow

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/10xhub/agentflow/claude-md.svg)](https://agentmods.dev/instructions/10xhub/agentflow/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/10xhub/agentflow/claude-md"><img src="https://agentmods.dev/badge/instructions/10xhub/agentflow/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,839 This file is loaded in full into every session.
When invoked 2,839 The same file — it is already loaded in full.
Security scan A 0 findings. 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.02839 $0.02839
Opus 5 $0.01419 $0.01419
Sonnet 5 $0.00568 $0.00568
Haiku 4.5 $0.00284 $0.00284

Measured 3d ago against content hash 757991d709c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

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 · 184 lines

How it starts

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

agentflow (core Python library) — Engineering Guide

This file documents the core Python framework only (10xscale-agentflow, the package that lives in this folder). For the API/CLI, TS client, docs, or playground, see the CLAUDE.md in their respective folders and the workspace-root CLAUDE.md for the monorepo overview.

  • Package name (PyPI): 10xscale-agentflow
  • Version: 1.0.0 (single source of truth: pyproject.toml; agentflow.__version__ resolves from installed distribution metadata, so it cannot drift from this file)
  • Requires: Python >= 3.12
  • Importable top-level package lives at agentflow/agentflow/ (this folder is the repo root; the importable package is the nested agentflow/ directory).

What this package is

A graph-based orchestration engine for multi-agent LLM systems. It is LLM-agnostic: you bring the provider SDK (OpenAI / Google GenAI), and Agentflow provides the workflow engine, state, persistence, tools, memory, evaluation, and event publishing. Inspired by LangGraph but simpler.

Working principles for this codebase

  • Read before writing. The public API is large and re-exported through many __init__.py files. Confirm the real export path before referencing a symbol (see Import Map below).
  • Examples are the source of truth, not the README. examples/ uses current import paths; the README and several docstrings still show pre-refactor paths (see Known Doc Drift).
  • Surgical edits. This is Development Status :: 5 - Production/Stable. Don't refactor module boundaries or rename exports without checking every __init__.py that re-exports them.
  • Keep coverage green. pytest enforces --cov-fail-under=80. New code needs tests.
  • Optional deps are optional. Provider SDKs, MCP, Postgres, Redis, Qdrant, Mem0, Kafka, RabbitMQ, OTEL, a2a are all extras. Guard imports; never make core import a hard optional dep.

Package layout (real, current)

The importable package is agentflow/agentflow/. Top-level subpackages:

Read the full file on GitHub · 184 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 · 184 lines · 2,839 tokens per session scan A 757991d709c9

Subscribe to this mod's changes

Agentflow CLAUDE.md is an instructions file published in the GitHub repository 10xHub/Agentflow (20 stars, last pushed 18d ago), licensed MIT. It adds 2,839 tokens to every session, about $0.0142 per session on Opus 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.