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.
npx agentmods add instructions/dgenio/chainweaver/python-sourcegit clone --depth 1 https://github.com/dgenio/ChainWeaverWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00386 | $0.00386 |
| Opus 5 | $0.00193 | $0.00193 |
| Sonnet 5 | $0.00077 | $0.00077 |
| Haiku 4.5 | $0.00039 | $0.00039 |
Grade A, and why
ChainWeaver python-source.instructions.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 yesterday.
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.
What it actually says
Python source instructions — ChainWeaver
These instructions apply when editing production source code in chainweaver/.
Module conventions
- Every module has a module-level docstring explaining its role
- Include
from __future__ import annotationsimmediately after the module docstring - All public classes and functions have Google-style docstrings
Pydantic patterns
- Use
pydantic.BaseModelfor schemas / I/O contracts (v2 API) - For
BaseModeltypes, usemodel_dump()not.dict()(v2 migration) - For
BaseModeltypes, usemodel_validate()not.parse_obj()(v2 migration) - Field descriptions via
Field(description="...")for schema clarity - Internal runtime records that need to carry
Exceptioninstances may remaindataclasses per repo invariants
Exception patterns
- All custom exceptions inherit from
ChainWeaverError - Exceptions should carry relevant context attributes where applicable; do not assume a uniform
constructor signature — follow the API defined by each exception class in
chainweaver.exceptions - Import exceptions from
chainweaver.exceptions, never define inline - Available exception types:
ToolNotFoundError,FlowNotFoundError,FlowAlreadyExistsError,SchemaValidationError,InputMappingError,FlowExecutionError,ToolDefinitionError
Export rules
- Any new public class/function MUST be added to
chainweaver/__init__.py__all__ - If adding a new module, add its imports to
__init__.py
Executor invariant
executor.pymust remain deterministic: no LLM calls, no network I/O, no randomness- The executor runs a compiled graph — it does not make decisions
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.
- yesterday First seen · 36 lines · 386 tokens per session scan A 04fc7346e3f4
ChainWeaver python-source.instructions.md is an instructions file published in the GitHub repository dgenio/ChainWeaver (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 386 tokens to every session, about $0.0019 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-31.
Other instructions, from other repositories
wet-mcp AGENTS.md
Instructions for n24q02m/wet-mcp, covering agents.md - wet-mcp, cau truc, lenh thuong dung, mise shortcuts and cau hinh quan trong.
maidan CLAUDE.md
Instructions for david-engelmann/maidan, covering agent guide, 30-second orientation, read order, the cluster model in one paragraph and pr workflow (the short version).
luxembourg-mcp CLAUDE.md
Instructions for amirdaraee/luxembourg-mcp, covering claude.md, commands, hard constraint: zero dependencies, architecture and adding or changing a tool touches five places.
swag-mcp CLAUDE.md
Instructions for jmagar/swag-mcp, covering swag mcp - claude memory reference, project overview, core architecture, key components and common development commands.
datalens-dev-mcp AGENTS.md
Instructions for ADIKANT/datalens-dev-mcp, covering agents.md, scope, read order, local material policy and public change hygiene.
swiss-democracy-mcp CLAUDE.md
Instructions for malkreide/swiss-democracy-mcp, covering claude.md, vor der arbeit, tests, zahlen, die eine aufzählung wiederholen and wenn etwas rot ist.