agentleFS
Hugging FaceKnown publisherhuggingface/harbor-hf/AGENTS.md

harbor-hf

AGENTS.md9 starsChanged 3 months agoApache-2.0View on GitHub

- This repository is public. Treat all operator-specific information as private. - Do not publish personal names, usernames, account namespaces, email addresses, home paths, machine names, private repository names, private Space or Bucket names, Job IDs, token display names, credential aliases, or private topology. - This rule covers source, documentation, examples, tests, fixtures, generated files, logs, commits, branches, issues, pull requests, comments, and releases. Platform-assigned authorship is the only automatic exception. - Use placeholders such as <namespace>, <control-space>, <artifact-bucket>, and…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository2 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

29 rules. About 5 are common, 17 are distinctive, and 7 are very specific to this project.

  • ≈5

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈17

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Common:

    Do not publish personal names, usernames, account namespaces, email addresses, home paths, machine names, private repository names, private …

    line 6
  2. Very specific:

    Use placeholders such as <namespace>, <control-space>, <artifact-bucket>, and <service-token>.

    line 12
  3. Common:

    If private data is published, remove it from the current public surface, disclose what was exposed and where, and recommend rotation when a …

    line 18
  4. Very specific:

    Before each public commit, push, issue, pull request, comment, or release, run uv run python scripts/check_public_privacy.py ..

    line 21
  5. Distinctive:

    Before you add a field, record, loop, parser, adapter, or UI control, you MUST inspect the pinned Harbor source and relevant history.

    line 33
  6. Distinctive:

    When Harbor already has the behavior or field, you MUST use Harbor directly through its native API and configuration.

    line 36
  7. Distinctive:

    If you cannot prove that Harbor lacks required general behavior, you MUST stop local design work and report the evidence.

    line 58
  8. Distinctive:

    Before you finish a behavior change, you MUST compare each changed schema or persisted field with Harbor.

    line 63
  9. Very specific:

    Do not add model-, provider-, agent-, or harness-specific admission rules, compatibility lists, settings, defaults, request rewrites, or …

    line 69
  10. Distinctive:

    Treat a failed combination as benchmark evidence.

    line 74
  11. Distinctive:

    Put component-specific fixes and settings in the responsible provider, harness, agent, or upstream adapter.

    line 76
  12. Distinctive:

    Do not add a second preset format, a per-benchmark branch, or a fallback for a missing source.

    line 90
  13. Distinctive:

    Use a hard cutover. Do not add compatibility readers, dual writes, old profile support, or a second API version.

    line 102
  14. Common:

    Never put credential values in variables, source, requests, run records, Bucket objects, image arguments, labels, logs, tests, or results.

    line 114
  15. Common:

    Never copy a locally configured personal or broad account credential to a remote runtime.

    line 116
  16. Distinctive:

    Use Python 3.12+, uv, Typer, Ruff, ty, and pytest for the thin CLI.

    line 122
  17. Distinctive:

    Use the pinned Harbor package for the parent worker and agent adapters.

    line 123
  18. Very specific:

    Use Node.js from .nvmrc, npm workspaces, strict TypeScript, Fastify, React, Vite, Biome, Vitest, and Playwright for the control service and …

    line 124
  19. Distinctive:

    Keep versioned JSON Schema authoritative for durable records and presets.

    line 126
  20. Very specific:

    Avoid Any. Validate untrusted provider data at adapter boundaries.

    line 128
  21. Distinctive:

    Add tests for behavior changes and keep coverage at or above 85%.

    line 130
  22. Distinctive:

    Before finishing Python changes, run:

    line 134
  23. Distinctive:

    Before finishing TypeScript or web changes, run:

    line 144
  24. Distinctive:

    After project structure or CI changes, run:

    line 157
  25. Very specific:

    Read .agents/skills/project-authorization/SKILL.md before an external mutation.

    line 169
  26. Very specific:

    Read .agents/skills/harbor-hf/SKILL.md before submitting, launching, monitoring, pausing, resuming, cancelling, or publishing a run.

    line 172
  27. Distinctive:

    Use the paid-compute review before a paid Job launch, retry, or resume.

    line 176
  28. Distinctive:

    Do not run model inference locally.

    line 177
  29. Common:

    Stop for credential exposure, revision mismatch, duplicate execution, cost outside approval, an immutable conflict, a deterministic shared …

    line 178

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.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
AGENTS.md

Repository instructions

Public repository privacy

  • This repository is public. Treat all operator-specific information as private.
  • Do not publish personal names, usernames, account namespaces, email addresses, home paths, machine names, private repository names, private Space or Bucket names, Job IDs, token display names, credential aliases, or private topology.
  • This rule covers source, documentation, examples, tests, fixtures, generated files, logs, commits, branches, issues, pull requests, comments, and releases. Platform-assigned authorship is the only automatic exception.
  • Use placeholders such as <namespace>, <control-space>, <artifact-bucket>, and <service-token>.
  • Public availability elsewhere does not grant permission to repeat a private or operator-specific identifier in this repository.
  • Publishing an exact external identifier or destination requires explicit approval for that exact value and exact public destination.
  • If private data is published, remove it from the current public surface, disclose what was exposed and where, and recommend rotation when a credential could be affected. Ask before rewriting public history.
  • Before each public commit, push, issue, pull request, comment, or release, run uv run python scripts/check_public_privacy.py .. Inspect the complete diff and public metadata. Remove private values before publication.

Harbor-first design

  • You MUST NOT duplicate behavior, configuration, state, or data that Harbor already provides. This requirement is the first and controlling design rule for all work in this repository.
  • You MUST read the design principles before you design or implement a behavior change.
  • A feature request MUST NOT be treated as proof that Harbor lacks the feature.
  • Before you add a field, record, loop, parser, adapter, or UI control, you MUST inspect the pinned Harbor source and relevant history. The pull request description MUST name the checked files and public APIs.
  • When Harbor already has the behavior or field, you MUST use Harbor directly through its native API and configuration. You MUST treat Harbor output as authoritative. You MUST NOT add an alias, mirrored field, fallback reader, second state machine, or renamed wrapper for the same concept. For example, you MUST NOT add environment_flavor when Harbor already uses environment.kwargs.flavor.
  • Harbor owns JobConfig and benchmark task resolution. Harbor owns trial execution, including concurrency and retry behavior. It controls resume and locking behavior. Harbor results are authoritative for rewards and reported costs. The same rule applies to trajectories and built-in agent output.
  • Harbor-HF owns authenticated submission and reviewed restrictions. It also owns the control Space and Bucket as well as HF Job lifecycle and cost stops. The disposable SQLite projection and web console also belong in Harbor-HF. Harbor-HF owns the leaderboard.
  • The web console MAY have its own viewer for runs, trials, and trajectories, because it serves the Harbor-HF Space deployment. That viewer MUST follow Harbor's viewer (apps/viewer and src/harbor/viewer/server.py in Harbor): the same design, layout, page structure, and API shape. It MUST read Harbor's trial files, such as agent/trajectory.json, as the only source. You MUST NOT invent a separate layout or new data fields for the same views.
  • You MUST keep benchmark and model names as data. You MUST keep necessary harness-specific behavior in a Harbor agent plugin behind import_path.
  • If you cannot prove that Harbor lacks required general behavior, you MUST stop local design work and report the evidence. You MUST get explicit user confirmation before you open a Harbor issue or pull request.
  • A temporary local implementation MUST have separate approval for an exact upstream gap. It MUST name the Harbor revision that permits its removal.
  • Before you finish a behavior change, you MUST compare each changed schema or persisted field with Harbor. You MUST make the same comparison for API and UI values. You MUST remove any duplicate or renamed Harbor concept.

General benchmark contracts

  • Do not add model-, provider-, agent-, or harness-specific admission rules, compatibility lists, settings, defaults, request rewrites, or protocol workarounds to Harbor-HF.
  • Apply generic schema, authorization, budget, provenance, and lifecycle rules uniformly. A configuration that satisfies those rules can run and report its normal failure when its selected components are incompatible.
  • Treat a failed combination as benchmark evidence. Do not convert past failures into a hard-coded allowlist, denylist, compatibility matrix, or special case.
  • Put component-specific fixes and settings in the responsible provider, harness, agent, or upstream adapter. Keep reviewed presets declarative and do not use them to claim pair-specific compatibility.

Presets

  • The catalog in presets/ holds presets for very popular benchmarks only. Every other benchmark, harness, model set, or personal campaign belongs in a pinned preset source, not in this repository.
  • A preset source is a Hugging Face repository at an exact 40-character commit. An operator names it in HARBOR_HF_PRESET_SOURCES; the service reads it at startup, merges it with the baked catalog, and reports its provenance. See preset sources.
  • A preset in this repository MUST NOT name a credential or a credential alias. Use the fixed inference template or a reviewed endpoint connection instead.
  • Do not add a second preset format, a per-benchmark branch, or a fallback for a missing source. A source that cannot be read, resolved, or verified stops the service before launch.

Storage and resources

  • The steady-state inventory is one private control Space and one private Bucket. Do not add a repository, Space, Bucket, Dataset, endpoint, schedule, backup store, lease store, status store, or result service for a run.
  • Store current data under runs/<run-id>/. The service writes run.json and state.json. Harbor alone writes below job/.
  • SQLite is a disposable three-table projection. It must rebuild from Bucket data and HF Job observations.
  • Use a hard cutover. Do not add compatibility readers, dual writes, old profile support, or a second API version.

Credentials

  • The control Space has two operator-managed secrets. HF_TOKEN is the purpose-scoped control credential. HF_INFERENCE_TOKEN is the separate inference credential. Their values must differ.
  • The reviewed parent Job receives both as ephemeral Job secrets. It uses the control credential to start and label child HF Sandbox Jobs. The benchmark agent receives only the inference credential through the fixed environment template.
  • Never put credential values in variables, source, requests, run records, Bucket objects, image arguments, labels, logs, tests, or results.
  • Never copy a locally configured personal or broad account credential to a remote runtime. Never copy any credential between stores without approval for that exact source and destination.

Development

  • Use Python 3.12+, uv, Typer, Ruff, ty, and pytest for the thin CLI.
  • Use the pinned Harbor package for the parent worker and agent adapters.
  • Use Node.js from .nvmrc, npm workspaces, strict TypeScript, Fastify, React, Vite, Biome, Vitest, and Playwright for the control service and console.
  • Keep versioned JSON Schema authoritative for durable records and presets. Generate TypeScript types and the browser OpenAPI file.
  • Avoid Any. Validate untrusted provider data at adapter boundaries. An override of an upstream variadic Python API can use a narrow lint exception.
  • Add tests for behavior changes and keep coverage at or above 85%.
  • Apply the configured Slophammer standards.
  • Use Conventional Commits.

Before finishing Python changes, run:

uv run ruff check .
uv run ruff format --check .
uv run ty check
uv run pytest --cov=src/harbor_hf --cov-fail-under=85
uv run pip-audit

Before finishing TypeScript or web changes, run:

npm run format:check
npm run lint
npm run typecheck
npm test
npm run build
npm run check:generated
npm audit --audit-level=low
npm run test:e2e

After project structure or CI changes, run:

uv run slophammer-py check . --baseline
uv run slophammer-py dry .

Build both Dockerfiles for linux/amd64. Run Ruff, ty, and pytest in packages/harbor-hf-agents.

Operations

  • Read .agents/skills/project-authorization/SKILL.md before an external mutation. Verify that the repository-indexed project authorization covers the exact scope.
  • Read .agents/skills/harbor-hf/SKILL.md before submitting, launching, monitoring, pausing, resuming, cancelling, or publishing a run.
  • Use docs/2026-09-04-simplification-implementation-spec.md, docs/architecture.md, and docs/CONTROL_SERVICE.md as the current contract.
  • Use the paid-compute review before a paid Job launch, retry, or resume.
  • Do not run model inference locally. Remote integration tests must be explicit.
  • Stop for credential exposure, revision mismatch, duplicate execution, cost outside approval, an immutable conflict, a deterministic shared defect, or a labeled Job that cannot be stopped.

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.