Skip to content

Add AGENTS.md and crucible config for coding agents - #314

Closed
lwaldron wants to merge 3 commits into
develfrom
agents-md
Closed

lwaldron wants to merge 3 commits into
develfrom
agents-md

Conversation

@lwaldron

Copy link
Copy Markdown
Member
  • AGENTS.md: stack, layout, related repositories (pointing to the README's pipeline table), commands and rules (version and NEWS, deprecation, network-free tests, Bioconductor style, data changes, writing) for coding agents. pi-crucible reads it first at every stage.
  • .pi/crucible.json: pi-crucible config from /crucible init --write, with two changes from the generic starter: the design record names what bugphyzz has (no docs/ here; the data decisions are bugphyzzExports ADRs), and checks runs devtools::document() (fails if man/ or NAMESPACE would change) and devtools::test(). Both pass locally (156 tests).
  • .Rbuildignore: ^AGENTS\.md$ and ^\.pi$, so R CMD check doesn't flag them.

Crucible can't run on this repo yet, because it assumes a main branch (seandavi/pi-crucible#63); this config is ready for when it does.

Written with Claude Code.

Co-authored-by: Claude Code <noreply@anthropic.com>
Comment thread AGENTS.md Outdated

Data releases follow bugphyzzExports `RELEASING.md` and are tracked in one checklist issue here (v1.3.0
is #313). Work that gates a release goes on that checklist.
- waldronlab/bugphyzzAnalyses and the private bugphyzz-manuscript only use the package.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bullet is orphaned: it follows a prose paragraph, so it renders as a one-item list. It also duplicates the bugphyzzAnalyses bullet above, and it calls bugphyzzAnalyses "only use the package" while the earlier text says changes to importBugphyzz() or makeSignatures() break it. Fold the private bugphyzz-manuscript mention into the earlier bullet and delete this line.

Comment thread .pi/crucible.json Outdated
"checks": [
{
"name": "document",
"command": "Rscript -e 'devtools::document()' && git diff --exit-code -- man NAMESPACE"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git diff --exit-code -- man NAMESPACE compares against the index, not HEAD. It also ignores new untracked man/*.Rd files. If the agent stages changes or document() creates a new Rd file, this check passes even though man/ or NAMESPACE is out of date. Use git diff --exit-code HEAD -- man NAMESPACE && test -z "$(git ls-files --others --exclude-standard man NAMESPACE)", or compare against git status --porcelain -- man NAMESPACE.

@claude

claude Bot commented Nov 26, 2026

Copy link
Copy Markdown

Two issues, both inline:

  1. .pi/crucible.json: the document check uses git diff --exit-code -- man NAMESPACE, which misses staged changes and new untracked Rd files, so it can pass when man/ is stale.
  2. AGENTS.md line 73: orphaned, duplicated bullet about bugphyzzAnalyses that contradicts the earlier bullet.

Nothing else found. The PR adds no exported functions or R code. Version and NEWS bumps are not needed for docs that users don't see.

lwaldron and others added 2 commits November 26, 2026 15:25
… new and staged Rd files

Co-authored-by: Claude Code <noreply@anthropic.com>
Rscript is now on PATH in every shell on the dev machine.

Co-authored-by: Claude Code <noreply@anthropic.com>
@lwaldron lwaldron closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant