Skip to content

Commit daa89da

Browse files
mikasenghaasclaude
andauthored
chore: remove redundant agent artifacts (#2092)
Trim agent-facing scaffolding down to the essentials. Rewrite the repo-root AGENTS.md into topical sections (prime-rl style); CLAUDE.md is just an `@AGENTS.md` pointer. AGENTS.md: - Keep only the repo-root file (canonical, hand-maintained, no longer generated). - Rewrite it in the prime-rl format: Writing code / Running code / Docs / Skills / Testing sections with bold lead-in bullets. - Remove scoped guides: environments/AGENTS.md, tests/AGENTS.md, verifiers/envs/AGENTS.md, assets/lab/AGENTS.md, assets/lab/environments/AGENTS.md. Generation: - Remove scripts/sync.py, its sync-agents-md pre-commit hook, and the dead assets/agents/ source fragments. - CLAUDE.md -> `@AGENTS.md`; update docs/v0/development.md guidance. Editor/agent configs: - .codex/environments/environment.toml (autogenerated; already gitignored) - .cursor/BUGBOT.md Skills: - skills/train-with-environments/SKILL.md - skills/browse-environments/SKILL.md Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 1dd627d commit daa89da

18 files changed

Lines changed: 29 additions & 1504 deletions

File tree

.codex/environments/environment.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.cursor/BUGBOT.md

Lines changed: 0 additions & 109 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ repos:
1515
entry: uv run ruff format
1616
language: system
1717
types_or: [python, pyi]
18-
- id: sync-agents-md
19-
name: Check generated AGENTS.md / CLAUDE.md
20-
entry: uv run python scripts/sync.py --check
21-
language: system
22-
files: ^(AGENTS\.md|CLAUDE\.md|assets/lab/(AGENTS|CLAUDE)\.md|environments/AGENTS\.md|assets/lab/environments/AGENTS\.md|docs/v1/tasksets\.md|assets/agents/.*\.md|scripts/sync\.py)$
23-
pass_filenames: false
2418
- id: ty
2519
name: ty (ci parity)
2620
entry: uv run --python 3.13 ty check verifiers

AGENTS.md

Lines changed: 26 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,28 @@
11
# AGENTS.md
22

3-
<!-- Generated for repository development workflows. Do not edit directly. -->
4-
5-
## Shared Best Practices (All Contexts)
6-
7-
- Create new environments with `prime env init <MY_ENV_NAME>`.
8-
- Use `prime <command> --plain` to get better formatted command outputs.
9-
- Use the bundled skills first for create, browse, review, eval, optimization, training, and brainstorming workflows.
10-
- Go through the verifiers code as the source of truth.
11-
- Use toml files and validate them first before you run them.
12-
- Always look at the verifiers v1 code first to see whether helper functions or harnesses exist for your given task.
13-
- Never mix v1 and legacy verifiers functions in one environment. Always prefer and use v1.* code.
14-
15-
## Style Rules
16-
17-
Use these rules when shaping public v1 APIs, configs, and environment files.
18-
19-
- Prefer verifiers-native task, trace, server, harness, and runtime interfaces over repeated path/import/discovery plumbing in user packages.
20-
- Expose as few knobs in the configs as possible, but as many as needed.
21-
- Use strict Pydantic models for structured config, tasks, messages, and state.
22-
- A basic taskset should fit in a few dozen idiomatic lines: typed data/task/config classes, `load()`, and decorated scoring on the task.
23-
- Do not override `Taskset.__init__`; implement `load()`. Do not override `Harness.__init__` or `User.__init__`; use `setup()`.
24-
- Refer to the code as the source of truth.
25-
- Avoid mutable module globals. Process-level locks/rate limiters and immutable constants are the narrow exceptions.
26-
27-
## Repository Development Notes
28-
29-
Use this guidance when contributing to the `verifiers` repository itself.
30-
31-
- Ensure that `uv` is installed, see [uv docs](https://docs.astral.sh/uv/getting-started/installation/) for further information.
32-
- Always run `uv run pre-commit install` before making any changes.
33-
- Run the documented contributor checks for touched areas: `uv run ruff check --fix .`, `uv run pytest tests/`, and `uv run pre-commit run --all-files` as needed. (See `docs/v0/development.md`.)
34-
- The documentation (in `docs/`, `skills/`, `configs/`) is intentionally kept minimal. Do not touch them unless your changes break with these assumptions.
35-
- verifiers has two API surfaces under `verifiers/`: `verifiers/v1`, which is referred to as "v1", while the rest is "legacy". Unless specifically requested, always use and assume v1.
36-
- verifiers v1 uses Pydantic objects everywhere, so you should, too, when working in v1. Mimic the style of the existing code.
37-
- Do not add unit tests to your PRs. v1 has a few end to end tests, which are sufficient. Unit tests clog up the repository. You can, however, write temporary scripts to test.
38-
- The repository uses Python 3.11 or older, so you are encouraged to use modern Python functions to cut down on lines.
39-
- Do not add dependencies, optional extras etc. to the main pyproject.toml.
3+
## Writing code
4+
5+
- **Code is the source of truth**: before writing anything, read the v1 code for existing helpers, harnesses, and interfaces instead of reinventing them. Prefer verifiers-native task, trace, server, harness, and runtime interfaces over repeated path/import/discovery plumbing in user packages.
6+
- **Minimal config surface**: expose as few knobs as possible, but as many as needed.
7+
- **Keep tasksets small**: a basic taskset fits in a few dozen idiomatic lines — typed data/task/config classes, `load()`, and decorated scoring on the task. Don't override `Taskset.__init__` (implement `load()`); don't override `Harness.__init__` or `User.__init__` (use `setup()`).
8+
9+
## Running code
10+
11+
- **Always use uv**: run code and commands with `uv run`, never raw `python`. Make sure `uv` is installed ([docs](https://docs.astral.sh/uv/getting-started/installation/)).
12+
- **Scaffold environments**: create a new taskset/environment with `uv run init <name>` (`uv run init -h` lists options like `-T`/`-U`/`-H`), and run evals with `uv run eval <taskset>`.
13+
- **Validate TOML first**: validate config `.toml` files before running them.
14+
- **Don't add dependencies**: never add dependencies or optional extras to the top-level `pyproject.toml`.
15+
16+
## Docs
17+
18+
- **Kept intentionally minimal**: `docs/`, `skills/`, and `configs/` are deliberately sparse. Don't touch them unless your change breaks their assumptions.
19+
- **Docs reflect `main`, not history**: describe the current state of the codebase only — no removed/legacy fields, migration paths, or "this used to be X" anecdotes.
20+
21+
## Skills
22+
23+
- **Use bundled skills first**: the skills in `skills/` cover the core workflows — `create-environments` (build or migrate a v1 taskset/environment/harness), `evaluate-environments` (configure and run evals), and `brainstorm` (ideation and research planning). Reach for them before doing the work by hand.
24+
25+
## Testing
26+
27+
- **Prefer e2e tests over unit tests**: v1's end-to-end tests are sufficient — extra unit tests clog the repo. Editing existing tests is fine; to check your own work, write a temporary script instead of committing new tests.
28+
- **Run the contributor checks**: run `uv run pre-commit install` once, then for touched areas `uv run ruff check --fix .`, `uv run pytest tests/`, and `uv run pre-commit run --all-files` (see `docs/v0/development.md`).

CLAUDE.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
# CLAUDE.md
2-
3-
<!-- Generated for repository development workflows. Do not edit directly. -->
4-
5-
Before beginning work in this repository, read `AGENTS.md` and follow all scoped AGENTS guidance.
1+
@AGENTS.md

assets/agents/common_best_practices.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

assets/agents/end_user_best_practices.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

assets/agents/repo_development_best_practices.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

assets/lab/AGENTS.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

assets/lab/CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
> Managed by Prime Lab. Do not edit this file directly.
44
> `prime lab setup` and `prime lab sync` refresh it. Put project-specific agent guidance in workspace-root `AGENTS.local.md`; agents should read that file after this one if it exists.
55
6-
Before beginning any task, read `AGENTS.md`, `AGENTS.local.md` if present, and `environments/AGENTS.md` in this workspace.
6+
Before beginning any task, read `AGENTS.local.md` if present in this workspace.
77

88
Treat all `AGENTS.md` and `AGENTS.local.md` files as equivalent to `CLAUDE.md` files.

0 commit comments

Comments
 (0)