Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
501 changes: 501 additions & 0 deletions AGENTS.md

Large diffs are not rendered by default.

500 changes: 8 additions & 492 deletions CLAUDE.md

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ Thanks for your interest in Tetrak. This document covers how we work in this
repository: the checks, the commit style, and the automation they feed. It
applies to us as much as to anyone sending a pull request.

`CLAUDE.md` is the fuller orientation (the layout, the conventions and the
`AGENTS.md` is the fuller orientation (the layout, the conventions and the
things that will catch you out), and [tetrak.dev](https://tetrak.dev/) is the
reference for how the backends behave and how they are measured.

If you work with a coding agent — Claude Code, Codex, Cursor, Gemini CLI or
another — point it at `AGENTS.md` and at the guides under `.claude/skills/`,
which are plain Markdown any tool or person can open.

## Getting set up

```bash
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ pytest -m "not slow" # the fast loop
cd site && npm run start # the site at :1313
```

[`CLAUDE.md`](CLAUDE.md) covers conventions and the things that catch people
[`AGENTS.md`](AGENTS.md) covers conventions and the things that catch people
out. Commits follow [Conventional Commits](https://www.conventionalcommits.org/);
releases and `CHANGELOG.md` are generated by git-cliff and should never be
written by hand.
Expand Down
2 changes: 1 addition & 1 deletion evaluation/ocr/corpus/SOURCES.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ for the same reason: a number is only as good as what produced it.
**Most of these were written by Claude, and Claude is scored against them.**
`tools/generate_expected.py` sends each image to the Anthropic vision API and
commits the result. That makes the `claude` column of the benchmark a measure
of self-consistency rather than accuracy, and it is why `CLAUDE.md` says not to
of self-consistency rather than accuracy, and it is why `AGENTS.md` says not to
quote Claude's average as a measurement of Claude. It also means every *other*
engine is scored against a reference that may itself be wrong.

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ dev = ["pytest>=8.0", "pytest-cov>=5.0", "ruff>=0.5"]
# auto-local unavailable, which is the one backend the docs recommend.
# Per-pipeline umbrellas. The individual extras keep their own names --
# `easyocr` and a future `whisper` do not collide, so namespacing them would
# churn CI, CLAUDE.md and the devcontainer for nothing.
# churn CI, AGENTS.md and the devcontainer for nothing.
ocr = ["tetrak[claude,easyocr,paddle,paddle-vl,marker,vision,qa]"]
all = ["tetrak[ocr]"]

Expand Down
1 change: 1 addition & 0 deletions site/.markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Matches scattercode.dev, with two additions for this repo.
ignores:
- ../CLAUDE.md
- ../AGENTS.md
# Sphinx output and the autosummary stubs it generates; both gitignored.
- ../docs/_build/**
- ../docs/generated/**
Expand Down
2 changes: 1 addition & 1 deletion site/archetypes/articles.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ tags: []
research pages, which read them from the benchmark CSV; an article may point
at a figure and argue about it, but must not carry a copy of one.

CLAUDE.md, under "Adding things", has the rest. Delete this comment.
AGENTS.md, under "Adding things", has the rest. Delete this comment.
-->

Opening paragraph.
Expand Down
2 changes: 1 addition & 1 deletion site/layouts/partials/bands.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
build time.

Why this exists: the band edges were written out by hand in five places --
two docstrings, CLAUDE.md, and two pages of this site -- with nothing
two docstrings, AGENTS.md, and two pages of this site -- with nothing
checking any of them. That survived while the numbers were hand-fitted and
never moved. They are fitted from a measured sweep now, by
evaluation/ocr/calibration/fit.py, and the first re-fit moved every one of
Expand Down
2 changes: 1 addition & 1 deletion tests/ocr/test_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Unmarked, so they run in the fast loop: this is TOML parsing and set algebra,
with no OCR anywhere near it.

These exist to make a documented rule mechanical. `CLAUDE.md` says the held-out
These exist to make a documented rule mechanical. `AGENTS.md` says the held-out
fixtures must not be folded into a re-fit without saying so, and until now that
was advice. A new scan now fails CI until it is classified, and promoting a
held-out fixture costs a visible diff in `splits.toml`.
Expand Down
2 changes: 1 addition & 1 deletion tools/generate_tuning_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""Publish the auto-configuration bands from the module that uses them.

The Tesseract band edges were written out by hand in five places -- two
docstrings, `CLAUDE.md`, and two site pages -- with nothing checking any of
docstrings, `AGENTS.md`, and two site pages -- with nothing checking any of
them against the code. That was survivable while the numbers were hand-fitted
and never moved. They are fitted from a measured sweep now, and they move, so
the published copies have to be generated or they become wrong quietly.
Expand Down
Loading