agentleFS
domondi1domondi1/inferrail/CLAUDE.md

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 —…

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
  1. Very specific:

    Read docs/PRODUCT.md for exact implementation scope and docs/product-catalog.json for dated deployment/release evidence.

    line 4
  2. Distinctive:

    No prompt/response payload persistence in telemetry by default — this is a schema-level guarantee, not a runtime flag.

    line 37
  3. Distinctive:

    No secret or silent telemetry — nothing leaves the machine unless a sink is explicitly configured to do that, and it must be documented.

    line 39
  4. Very specific:

    No fabricated metrics. Values that can't be measured trustworthily (cost, time-to-first-token, etc.) stay null — never estimated or guessed.

    line 41
  5. Distinctive:

    Prefer deterministic, testable behavior — keep the core engine independent of the web framework so it can be tested without an HTTP server.

    line 46
  6. Distinctive:

    Keep the hot request-execution path small.

    line 49
  7. Distinctive:

    Run lint, type-check, and the test suite before considering work complete.

    line 73

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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 yet
  • docs/ARCHITECTURE.md — package layout, request lifecycle, and the boundaries (provider, routing, telemetry, data-plane/control-plane) that keep the codebase easy to extend
  • docs/PRINCIPLES.md — the durable engineering principles behind this project
  • docs/adr/ — architecture decision records for specific structural choices

Before implementing something substantial, ask

  1. Which problem does this change solve?
  2. Does it match a principle in docs/PRINCIPLES.md, or does it conflict with one?
  3. Is there a smaller implementation?
  4. Does docs/PRODUCT.md need to change alongside the code, so scope stays accurate?
  5. 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.md in 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. pytest runs 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.