inferrail
CLAUDE.md1 starsChanged 55 days agoApache-2.0View on GitHub
Inferrail provides external evidence APIs and independent inference spending controls. Read docs/PRODUCT.md for exact implementation scope and docs/product-catalog.json for dated deployment/release evidence. Merged source does not establish commercial activation. The Python package remains a self-hosted OpenAI/Anthropic gateway, with no dependency on Inferrail-operated services. Public commercial contracts are generated by the production deployment. Keep experimental/testnet capabilities separate from commercial offers. Architecture: docs/ARCHITECTURE.md. - docs/PRODUCT.md — authoritative source for exact current scope: what works, what's explicitly not supported yet - docs/ARCHITECTURE.md —…
In this repository5 other files it gives its agents.
- docs/llms.txtllms.txt
- llms.txtllms.txt
- inferrail-domain-checkSkill
- inferrail-package-checkSkill
- inferrail-web-readSkill
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 4
Read docs/PRODUCT.md for exact implementation scope and docs/product-catalog.json for dated deployment/release evidence.
- Distinctive: line 37
No prompt/response payload persistence in telemetry by default — this is a schema-level guarantee, not a runtime flag.
- Distinctive: line 39
No secret or silent telemetry — nothing leaves the machine unless a sink is explicitly configured to do that, and it must be documented.
- Very specific: line 41
No fabricated metrics. Values that can't be measured trustworthily (cost, time-to-first-token, etc.) stay null — never estimated or guessed.
- Distinctive: line 46
Prefer deterministic, testable behavior — keep the core engine independent of the web framework so it can be tested without an HTTP server.
- Distinctive: line 49
Keep the hot request-execution path small.
- Distinctive: line 73
Run lint, type-check, and the test suite before considering work complete.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Inferrail — Agent Context
Inferrail provides external evidence APIs and independent inference spending controls.
Read docs/PRODUCT.md for exact implementation scope and docs/product-catalog.json
for dated deployment/release evidence. Merged source does not establish commercial
activation. The Python package remains a self-hosted OpenAI/Anthropic gateway, with
no dependency on Inferrail-operated services. Public commercial contracts are generated
by the production deployment. Keep experimental/testnet capabilities separate from
commercial offers. Architecture: docs/ARCHITECTURE.md.
Before major feature work, read
docs/PRODUCT.md— authoritative source for exact current scope: what works, what's explicitly not supported yetdocs/ARCHITECTURE.md— package layout, request lifecycle, and the boundaries (provider, routing, telemetry, data-plane/control-plane) that keep the codebase easy to extenddocs/PRINCIPLES.md— the durable engineering principles behind this projectdocs/adr/— architecture decision records for specific structural choices
Before implementing something substantial, ask
- Which problem does this change solve?
- Does it match a principle in
docs/PRINCIPLES.md, or does it conflict with one? - Is there a smaller implementation?
- Does
docs/PRODUCT.mdneed to change alongside the code, so scope stays accurate? - What test proves this works?
Engineering rules
- Exact current scope must match the code. If a feature ships or a
non-goal changes, update
docs/PRODUCT.mdin the same change. - No prompt/response payload persistence in telemetry by default — this is a schema-level guarantee, not a runtime flag.
- No secret or silent telemetry — nothing leaves the machine unless a sink is explicitly configured to do that, and it must be documented.
- No fabricated metrics. Values that can't be measured trustworthily
(cost, time-to-first-token, etc.) stay
null— never estimated or guessed. - The OSS data plane must keep working with zero dependency on any Inferrail-operated service.
- Prefer deterministic, testable behavior — keep the core engine independent of the web framework so it can be tested without an HTTP server.
- Keep the hot request-execution path small; avoid unnecessary dependencies and speculative complexity.
- Clearly distinguish shipped features from future work — a missing capability is a documented non-goal, not a silent gap.
Hard boundary with the private strategy repo
Inferrail's founder maintains a separate, private repository for company
strategy (wedge hypotheses, ICP/GTM reasoning, competitive intel, bet
tracking, roadmap decisions, and similar). This repository is the public
product and must never contain content copied or paraphrased from that
private repo — no strategy documents, internal filenames, hypotheses,
supporting evidence records, or a history of past decisions — without the founder's explicit
approval. If a task or a file you're given here seems to reference or
originate from that private repo, stop and ask rather than incorporating
it. CLAUDE.local.md (gitignored, never committed) is the sanctioned
place to keep a local pointer to that repo's path if one is needed.
Repo-level conventions
- Python 3.11+, FastAPI, pydantic, strict mypy, ruff.
pytestruns fully mocked — no network/API key required except the one skipped integration test. - Package layout and request lifecycle:
docs/ARCHITECTURE.md. - Run lint, type-check, and the test suite before considering work complete.
- Money-related code (anything cost/pricing/budget) is held to a higher correctness bar than the rest of the codebase: never silently double-count, lose, or fabricate a cost value, and represent uncertainty explicitly rather than collapsing it into a guess.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

