crit / scripts
AGENTS.md1.2k starsChanged 2 months agoMITView on GitHub
End-to-end integration tests for the crit CLI to crit-web share flow. Tests the full round-trip: sharing reviews, fetching web comments, re-sharing without duplicates, and unpublishing. Build tag: //go:build integration — these tests are excluded from go test ./... and only run via go test -tags integration. Tests use --output <dir> to write .crit.json to a temp directory (not ~/.crit/reviews/), and --share-url to point at the local crit-web instance. Every test logs its review URL (t.Logf(" -> Review: ...")) so you…
Trending
Less talk lately.about the whole repository
Who's talking about tomasz-tomczyk/crit
- A Hacker News story“Show HN: Crit – Review AI agent work like you review PRs”Hacker News · Mar 10, 2026 · 4 points
- @greatlittlebot.bsky.social“tomasz-tomczyk / crit: Your feedback loop with the agent ★498 https://github.com/tomasz-tomczyk/crit”Bluesky · Jun 17, 2026 · 2 likes
- shuymn/dotfiles“Update dependency github:tomasz-tomczyk/crit to v0.20.1”GitHub · Sep 9, 2026 · 1 reactions
- shuymn/dotfiles“Update dependency github:tomasz-tomczyk/crit to v0.20.0”GitHub · Sep 5, 2026 · 1 reactions
- shuymn/dotfiles“Update dependency github:tomasz-tomczyk/crit to v0.19.1”GitHub · Aug 29, 2026 · 1 reactions
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub, Bluesky and Hacker News (50 times).
On GitHub · 46
- Sep 9, 2026Update dependency github:tomasz-tomczyk/crit to v0.20.1 — shuymn/dotfiles1 reaction · 1 comment
- Sep 5, 2026Update dependency github:tomasz-tomczyk/crit to v0.20.0 — shuymn/dotfiles1 reaction
- Aug 29, 2026Update dependency github:tomasz-tomczyk/crit to v0.19.1 — shuymn/dotfiles1 reaction
- Aug 19, 2026Update dependency github:tomasz-tomczyk/crit to v0.19.0 — shuymn/dotfiles1 reaction
- Aug 6, 2026Update dependency github:tomasz-tomczyk/crit to v0.18.4 — shuymn/dotfiles1 reaction
41 more on GitHub
- Aug 5, 2026Update dependency github:tomasz-tomczyk/crit to v0.18.3 — shuymn/dotfiles1 reaction
- Jul 31, 2026Update dependency github:tomasz-tomczyk/crit to v0.18.2 — shuymn/dotfiles1 reaction
- Jul 25, 2026chore(deps): update dependency github:tomasz-tomczyk/crit to v0.18.1 — shuymn/dotfiles1 reaction
- Mar 28, 2026Add crit - human-in-the-loop review tool for AI agent workflows — jamesmurdza/awesome-ai-devtools1 reaction
- Oct 4, 2026Add Crit to Code Review & Collaboration — eltociear/awesome-AI-driven-development0 reactions
- Oct 4, 2026agent-skills.github.tomasz-tomczyk.crit: 0.20.2 → 0.21.1 — sudosubin/agents.nix0 reactions
- Oct 3, 2026Update dependency github:tomasz-tomczyk/crit to v0.21.1 — shuymn/dotfiles0 reactions · 1 comment
- Oct 3, 2026agent-skills.github.tomasz-tomczyk.crit: init at 0.20.2 — sudosubin/agents.nix0 reactions
- Oct 2, 2026crit 0.21.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Sep 29, 2026Update dependency github:tomasz-tomczyk/crit to v0.21.0 — shuymn/dotfiles0 reactions · 1 comment
- Sep 29, 2026chore(deps): bump the flake-inputs group across 1 directory with 8 updates — yktsnet/dotfiles-public0 reactions
- Sep 28, 2026fix: port release audit parity fixes from crit — tomasz-tomczyk/crit-web0 reactions · 1 comment
- Sep 28, 2026fix: handle highlight worker startup rejection — tomasz-tomczyk/crit-web0 reactions · 1 comment
- Sep 24, 2026crit 0.20.3 — Homebrew/homebrew-core0 reactions · 1 comment
- Sep 8, 2026crit 0.20.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Sep 7, 2026chore(deps): update crit to v0.21.1 — ryo246912/dotfiles0 reactions
- Sep 5, 2026ux: left-anchor content when the file tree collapses — bewa1t/crit0 reactions
- Sep 4, 2026crit 0.20.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 28, 2026crit 0.19.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 18, 2026crit 0.19.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 17, 2026fix: render markdown tables with native layout — tomasz-tomczyk/crit-web0 reactions · 1 comment
- Aug 15, 2026fix: render Markdown YAML frontmatter as a highlighted block — tomasz-tomczyk/crit-web0 reactions · 1 comment
- Aug 9, 2026chore: rename module path to github.com/sho-hata/crit — sho-hata/crit0 reactions
- Aug 5, 2026crit 0.18.4 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 4, 2026crit 0.18.3 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 31, 2026fix: skip hidden resolved comments during navigation — tomasz-tomczyk/crit-web0 reactions · 1 comment
- Jul 29, 2026crit 0.18.2 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 23, 2026fix: use correct go install path with /cmd/crit — tomasz-tomczyk/crit-web0 reactions · 1 comment
- Jul 17, 2026crit 0.18.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 10, 2026crit 0.18.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 3, 2026crit 0.17.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 1, 2026crit 0.17.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Jun 22, 2026crit 0.16.5 — Homebrew/homebrew-core0 reactions · 1 comment
- Jun 22, 2026crit 0.16.4 — Homebrew/homebrew-core0 reactions · 1 comment
- Jun 17, 2026crit 0.16.3 — Homebrew/homebrew-core0 reactions · 1 comment
- Jun 12, 2026suggestion: Add crit to the review tools — ai-for-developers/awesome-ai-coding-tools0 reactions
- Jun 9, 2026crit 0.16.2 — Homebrew/homebrew-core0 reactions · 1 comment
- Jun 9, 2026Submission: Crit — travisvn/awesome-claude-skills0 reactions
- Jun 4, 2026crit 0.16.1 — Homebrew/homebrew-core0 reactions · 1 comment
- May 7, 2026[Resource]: Crit — hesreallyhim/awesome-claude-code0 reactions · 1 comment
- Apr 8, 2026I vibe-planned a ui for chunk yesterday - maybe crit is further along? — chrismo/mta0 reactions · 1 comment
On Bluesky · 3
- Jun 17, 2026tomasz-tomczyk / crit: Your feedback loop with the agent ★498 https://github.com/tomasz-tomczyk/crit — @greatlittlebot.bsky.social2 likes and reposts
- Jul 28, 2026AIエージェントの成果物やコード変更に対してPR感覚でインラインコメントを残せるツールっぽい 開発のフィードバックループを回すのにすごく便利そう yug1224 starred tomasz-tomczyk/crit… — @yug1224.com1 likes and repost
- Jun 5, 2026It's at crit.md and repo + full docs at github.com/tomasz-tomcz... — @tomasztomczyk.bsky.social1 likes and repost
On Hacker News · 1
- Mar 10, 2026Show HN: Crit – Review AI agent work like you review PRs4 points · 1 comment
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 repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- .cursor/rules/frontend-architecture.mdcCursor rule
- .cursor/rules/frontend-css.mdcCursor rule
- .cursor/rules/frontend-js.mdcCursor rule
- .cursor/rules/go.mdcCursor rule
- .cursor/rules/proxy-auth-transport.mdcCursor rule
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 54
Every test logs its review URL (t.Logf(" -> Review: ...")) so you can open them in a browser for visual inspection.
- Very specific: line 82
Use the helpers: critShareCmd, critUnpublishCmd, writeTestCritJSON, readCritJSON, commentsFromAPI, documentFromAPI, seedComment, …
- Very specific: line 83
Always call logReview(t, output) after sharing so the URL is visible in test output
- Very specific: line 84
Use writeTestCritJSON (not writeCritJSON — that name conflicts with github.go)
≈ “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.
Files
Scripts
e2e-share.sh
End-to-end integration tests for the crit CLI to crit-web share flow. Tests the full round-trip: sharing reviews, fetching web comments, re-sharing without duplicates, and unpublishing.
Prerequisites
- A local crit-web checkout as a sibling directory (
../crit-webrelative to the crit repo root, or setCRIT_WEB_DIR) - PostgreSQL running locally (the script creates a
crit_e2edatabase) - mise (for Go and Elixir toolchain management)
Usage
# Full run: build crit, start crit-web on :4001, run tests, tear down
make e2e-share
# or directly:
./scripts/e2e-share.sh
# Start crit-web for manual testing (Ctrl+C to stop)
./scripts/e2e-share.sh --serve
# Run tests against an already-running crit-web
./scripts/e2e-share.sh --skip-web
# Run a specific test
./scripts/e2e-share.sh -run TestShareSyncFullLifecycleEnvironment variables
| Variable | Default | Description |
CRIT_WEB_PORT | 4001 | Port for the test crit-web instance |
CRIT_WEB_DIR | ../crit-web | Path to crit-web checkout |
DB_NAME | crit_e2e | PostgreSQL database name (separate from dev) |
What the script does
- Builds crit via
make build - Creates/resets the
crit_e2edatabase - Starts crit-web with
SELFHOSTED=trueon the test port (no OAuth) - Waits for
GET /healthto return 200 - Runs all
TestShareSync*integration tests withCRIT_AUTH_TOKEN=""to bypass any local auth config - Tears down crit-web on exit
Test file: share_integration_test.go
Build tag: //go:build integration — these tests are excluded from go test ./... and only run via go test -tags integration.
Tests use --output <dir> to write .crit.json to a temp directory (not ~/.crit/reviews/), and --share-url to point at the local crit-web instance.
Every test logs its review URL (t.Logf(" -> Review: ...")) so you can open them in a browser for visual inspection. Reviews persist on crit-web after tests run (except the unpublish test).
Test cases
| Test | What it covers |
TestShareSyncIntegration | Original: share, seed web comment, re-share, verify content + export |
TestShareSyncNoComments | Share with zero comments, verify document on web |
TestShareSyncLineComments | Line-scoped comments: body, position, scope verified on web |
TestShareSyncFileComment | File-scoped comment: body, scope, file_path verified on web |
TestShareSyncReviewLevelComments | Review-level comments shared (tests #297 fix for CLI path) |
TestShareSyncMixedCommentTypes | All 3 scopes together, each verified on web |
TestShareSyncResolvedExcluded | Resolved comments filtered out of share payload |
TestShareSyncReshareNoDuplicates | Re-share preserves comments without duplication |
TestShareSyncReshareNoChanges | No-op when content unchanged (round stays same) |
TestShareSyncFetchWebComments | Web-authored comments pulled into local .crit.json |
TestShareSyncFetchWebCommentsNoDuplicates | Repeated syncs don't duplicate web comments |
TestShareSyncMultipleFiles | Multi-file share with per-file comment association |
TestShareSyncMultipleRounds | Round progression across 3 share cycles, content verified |
TestShareSyncCommentWithReplies | Threaded replies included in share |
TestShareSyncUnpublish | Full unpublish: web deletion + local state cleared |
TestShareSyncExport | Export endpoint returns .crit.json-compatible shape |
TestShareSyncFetchReviewLevelWebComment | Review-level web comments merged into local ReviewComments |
TestShareSyncFullLifecycle | Complete round-trip: local comments with threads, share, web comments added, fetch, re-share (preserved), fetch again (no duplicates) |
Adding new tests
- Name test functions
TestShareSync*so they're picked up by the-run TestShareSyncfilter - Use the helpers:
critShareCmd,critUnpublishCmd,writeTestCritJSON,readCritJSON,commentsFromAPI,documentFromAPI,seedComment,seedCommentAt,seedReviewComment,logReview,extractToken - Always call
logReview(t, output)after sharing so the URL is visible in test output - Use
writeTestCritJSON(notwriteCritJSON— that name conflicts withgithub.go)
e2e-roundtrip.sh and e2e-gitlab-roundtrip.sh
These are the provider-specific runners for one live roundtrip suite in internal/session. GitHub uses the e2e_github tag, CRIT_ROUNDTRIP_REPO, and authenticated gh; GitLab uses the e2e_gitlab tag, CRIT_GITLAB_ROUNDTRIP_PROJECT, and authenticated glab (plus optional CRIT_GITLAB_ROUNDTRIP_HOST for self-managed instances). Both create and clean up a temporary change request and branch. See test/roundtrip/README.md for shared setup and authoring guidance.
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
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.

