agentleFS
ianshankianshank/Agents/examples/AGENTS.md

Agents / examples

AGENTS.md1 starsChanged 58 days agoApache-2.0View on GitHub

One runnable offline snippet. It has no README on purpose, and no gate watching it. The smallest complete use of the harness as a library: load a config, run the engine against a null client, evaluate the gate. It exists to be copied into a user's own script, so it must stay short, offline and dependency-free. Nothing here ships, and nothing here is imported by the package. - The absence of a README.md is a decision. examples sits in the…

The file

Files
AGENTS.md

AGENTS.md — examples

One runnable offline snippet. It has no README on purpose, and no gate watching it.

The smallest complete use of the harness as a library: load a config, run the engine against a null client, evaluate the gate. It exists to be copied into a user's own script, so it must stay short, offline and dependency-free. Nothing here ships, and nothing here is imported by the package.

Map

PathRole
run_offline.pyThe whole example: load_config, EvalEngine.from_config, evaluate_gate
datasets/sample.jsonlThe minimal dataset, and the precedent for harness-loadable data outside a package

Diagram

flowchart LR
  accTitle: what the offline example depends on
  accDescr: The example loads the protected example config from the config directory and runs the engine against a null Langfuse client, so a change to that config breaks the example with no gate watching.

  CFG["config/eval.example.yaml<br/>PROTECTED"]

  subgraph EX["examples/ (you are here)"]
    RUN["run_offline.py"]
    DS["datasets/sample.jsonl"]
  end

  ENG["EvalEngine"]
  NULL["NullLangfuseClient<br/>no network"]
  GATE["evaluate_gate"]

  CFG --> RUN
  DS --> RUN
  RUN --> ENG
  ENG --> NULL
  ENG --> GATE

  classDef here fill:#e8f0fe,stroke:#1a73e8,stroke-width:2px
  class EX here

Rules that bite here

  • The absence of a README.md is a decision. examples sits in the documented exempt set of the component-README job in .github/workflows/docs.yml, with the reason "runnable snippets, documented from the root README". Nothing is failing; do not add one to quiet a gate that is not firing.
  • This example reads a protected file it cannot protect. run_offline.py loads ../config/eval.example.yaml. That config is in the protected set and this directory is not, so a reviewed change there can break this example and no reviewer is obliged to notice. Run it after any change to that config.
  • It must stay offline and import-clean. NullLangfuseClient is the point: no SDK, no credential, no network. An example that needs a key is not an example.
  • Keep it one file. The value here is that a reader sees the whole flow at once. New surface belongs in a test or in ../demo/, which already has an orchestrated script.

Verify

python examples/run_offline.py

Subagents

Task in this directoryAgentWhy
Check whether a renamed public symbol is still used hereexplorerRead-only; this file is outside the suite so a rename breaks it silently
Run the example after a config or engine changetest-runnerHas Bash; no gate runs this, so someone has to invoke it deliberately
Review an added dependency before it landsnarrow-criticAn import that needs a credential turns the example into a live call

See also

DocRead it when
../config/README.mdYou need to know what eval.example.yaml declares before changing it
../config/AGENTS.mdYou are editing the config this example loads and need the approval obligation
../demo/AGENTS.mdYou want an orchestrated multi-beat walkthrough rather than one snippet
../corpora/README.mdYou are adding data and need the versioned, manifested form of this precedent
../src/eval_harness/README.mdYou need the library surface this example is demonstrating

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.