You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,10 @@ The skill's tools live under `skills/bibtidy/tools/` in this repo. At runtime, d
33
33
- Run `./tests/run_bibtidy_codex_tests.sh` for the Codex end-to-end path
34
34
- Unit tests only: `uv run pytest tests/`
35
35
36
+
## Previewing README
37
+
38
+
Preview `README.md` (including Mermaid charts) locally with `gh markdown-preview README.md` (requires the `gh-markdown-preview` extension).
39
+
36
40
## Website (docs/)
37
41
38
42
`docs/index.html` is generated by `docs/build.py`. Never edit `index.html` directly. Make changes in `build.py`, then run `python docs/build.py` to regenerate.
Copy file name to clipboardExpand all lines: README.md
+22-25Lines changed: 22 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,49 +55,46 @@ Start a new Codex session afterwards so the refreshed `SKILL.md` is loaded into
55
55
56
56
## bibtidy
57
57
58
+
In both Claude Code and Codex, use:
59
+
58
60
```text
59
-
Use bibtidy to validate and fix refs.bib
61
+
/bibtidy refs.bib
60
62
```
61
63
62
-
Or in Claude Code, use the slash command: `/bibtidy refs.bib`
63
-
64
64
bibtidy verifies each entry against [Google Scholar](https://scholar.google.com/) and [CrossRef](https://search.crossref.org/), fixes errors, and upgrades stale preprints to published versions. Every change includes the original entry commented out above so you can compare or revert, plus one or more `% bibtidy:` URL lines for verification. We recommend using git to track changes. If using [Overleaf](https://www.overleaf.com/), this can be done with [git sync](https://docs.overleaf.com/integrations-and-add-ons/git-integration-and-github-synchronization). To remove bibtidy comments after review, ask your agent to remove all `bibtidy` comments from the file.
65
65
66
-
bibtidy's output is non-deterministic: the same `.bib` file can yield different fixes across runs, and Claude Code and Codex may reach different conclusions on the same entry. See the [FAQ](#bibtidy)for why, and always verify changes via the `% bibtidy:` URLs before accepting them.
66
+
bibtidy's output is non-deterministic: the same `.bib` file can yield different fixes across runs, and Claude Code and Codex may reach different conclusions on the same entry. See the FAQ section below for more on why, and always verify changes via the `% bibtidy:` URLs before accepting them.
67
67
68
68
Note that bibtidy assumes standard brace-style BibTeX like `@article{...}`. Parenthesized forms like `@article(...)` are not supported. Special blocks such as `@string`, `@preamble`, and `@comment` are ignored by the parser.
69
69
70
70
### How it works
71
71
72
-
bibtidy walks each entry through a bounded state machine. Every entry has a **web-search budget of 1**, spent at most once across two possible waves:
72
+
Each entry goes through the following pipeline. A web search is used at most once per entry to keep runs fast. Each entry ends in one of four states: Clean (no change, no comment), Fix (patch applied with URLs + explanation), Not found (hallucinated, entry commented out), or Review (budget spent, entry unchanged, comment added for human attention).
Each entry ends in one of four states: **Clean** (no change, no comment), **Fix** (patch applied with URLs + explanation), **Not found** (hallucinated, entry commented out), or **Review** (budget spent, entry unchanged, comment added for human attention).
<p class="intro">bibtidy cross-checks BibTeX entries against Google Scholar, CrossRef, and conference/journal sites. It upgrades arXiv/bioRxiv preprints to published versions (even when the title changed upon publication), corrects metadata (authors, pages, venues), and flags duplicate entries.</p>
475
510
476
-
<p class="intro"><strong>Note:</strong> bibtidy's output is non-deterministic. The same <code>.bib</code> file can yield different fixes across runs, and Claude Code and Codex may reach different conclusions on the same entry, due to variability in search results, LLM sampling, and differences between the two agents' underlying models. Every change ships with <code>% bibtidy:</code> URLs for verification — treat the output as a reviewed first draft, not a final answer.</p>
<p class="intro">bibtidy cross-checks BibTeX entries against Google Scholar, CrossRef, and conference/journal sites. It upgrades arXiv/bioRxiv preprints to published versions (even when the title changed upon publication), corrects metadata (authors, pages, venues), and flags duplicate entries.</p>
<p class="intro">bibtidy's output is non-deterministic. The same <code>.bib</code> file can yield different fixes across runs, and Claude Code and Codex may reach different conclusions on the same entry, due to variability in search results, LLM sampling, and differences between the two agents' underlying models. Every change ships with <code>% bibtidy:</code> URLs for verification — treat the output as a reviewed first draft, not a final answer.</p>
<pclass="intro">bibtidy cross-checks BibTeX entries against Google Scholar, CrossRef, and conference/journal sites. It upgrades arXiv/bioRxiv preprints to published versions (even when the title changed upon publication), corrects metadata (authors, pages, venues), and flags duplicate entries.</p>
270
305
271
-
<pclass="intro"><strong>Note:</strong> bibtidy's output is non-deterministic. The same <code>.bib</code> file can yield different fixes across runs, and Claude Code and Codex may reach different conclusions on the same entry, due to variability in search results, LLM sampling, and differences between the two agents' underlying models. Every change ships with <code>% bibtidy:</code> URLs for verification — treat the output as a reviewed first draft, not a final answer.</p>
<pclass="intro">bibtidy cross-checks BibTeX entries against Google Scholar, CrossRef, and conference/journal sites. It upgrades arXiv/bioRxiv preprints to published versions (even when the title changed upon publication), corrects metadata (authors, pages, venues), and flags duplicate entries.</p>
<pclass="intro">bibtidy's output is non-deterministic. The same <code>.bib</code> file can yield different fixes across runs, and Claude Code and Codex may reach different conclusions on the same entry, due to variability in search results, LLM sampling, and differences between the two agents' underlying models. Every change ships with <code>% bibtidy:</code> URLs for verification — treat the output as a reviewed first draft, not a final answer.</p>
0 commit comments