crit / rules
Cursor rule1.2k starsChanged 2 months agoMITView on GitHub
crit — proxy auth transport
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 Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 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
- scripts/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
The file
We split this proxy-auth-transport.mdc into the rules it gives an agent
8 rules. About 0 are common, 0 are distinctive, and 8 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.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Every CLI command or browser UI action that calls a crit-web API must work in both modes:
- Very specific: line 16
When adding a new crit-web interaction:
- Very specific: line 17
Add the direct HTTP path in Go (share.go or relevant file)
- Very specific: line 18
Add a server endpoint that returns the payload for the popup relay (server.go)
- Very specific: line 19
Add a popup handler in crit-web/assets/js/share_receiver/handlers.js (note: the directory/route is named share_receiver / /share-receiver — …
- Very specific: line 20
Add the relay call in web/app.js gated on proxy_auth
- Very specific: line 28
When proxy_auth: true (global config), crit-web sits behind an SSO reverse proxy.
- Very specific: line 47
When adding a new crit-web interaction, decide which surface owns it:
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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
---
description: crit — proxy auth transport
alwaysApply: false
---
# Proxy Auth Transport Rules
## Rule 1: Both transport modes required
Every CLI command or browser UI action that calls a crit-web API must work in both modes:
- **Direct** (default): Go server makes HTTP requests with bearer token
- **Browser relay** (`proxy_auth: true`): Browser popup mediates the same API call through an authenticated session
When adding a new crit-web interaction:
1. Add the direct HTTP path in Go (share.go or relevant file)
2. Add a server endpoint that returns the payload for the popup relay (server.go)
3. Add a popup handler in `crit-web/assets/js/share_receiver/handlers.js` (note: the directory/route is named `share_receiver` / `/share-receiver` — this describes what the component *does* (receives share data), while `proxy_auth` describes *why* it's needed. Both names are correct at their level.)
4. Add the relay call in `web/app.js` gated on `proxy_auth`
## Rule 2: Relay is transport, not protocol
The popup relay must hit the **same crit-web API endpoints** with the **same payload shapes** as the direct path. No relay-specific endpoints on crit-web. The popup handlers are same-origin fetch proxies.
## Rule 3: Terminal CLI commands cannot use direct HTTP when proxy_auth is on
When `proxy_auth: true` (global config), crit-web sits behind an SSO reverse proxy. The terminal cannot complete that auth flow — only the browser can (via the `/share-receiver` popup relay).
**Terminal subcommands** that HTTP-call crit-web directly (today: `crit share`, `crit fetch`, `crit unpublish`) must call `checkProxyAuthCLIAllowed("crit <cmd>")` at the top of their `Run*` entrypoint and exit with the shared error message. Do not attempt the network call.
**Browser UI actions** (Share / Pull / Unpublish / Re-share buttons in the review page) must still work: implement both transports per Rule 1 — direct when `proxy_auth` is false, popup relay when true (`web/crit-share.js` + crit-web `share_receiver/handlers.js`).
Direct (non-proxy_auth) browser actions must go through the **local Go server**, never `fetch(shareURL + …)` cross-origin:
| Action | Local endpoint |
|-----------|-----------------------------------------|
| Share | `POST /api/share` |
| Pull | `POST /api/share/pull` |
| Re-share | `POST /api/share/reshare` |
| Unpublish | `DELETE /api/share-url` |
(The Go handlers attach the bearer token and talk to crit-web. Cross-origin browser fetches fail CORS on selfhosted+OAuth instances because preflight has no `Authorization`, and even with CORS fixed the browser never sends the token.)
The `share-transport` Playwright project (`test/e2e/tests/share-transport.sharetransport.spec.ts`) drives these three actions against a stub crit-web on a different origin and fails if the page issues any request to it, so a regression to cross-origin fetches is caught in CI. Extend that spec when you add a browser action that talks to crit-web.
When adding a **new** crit-web interaction, decide which surface owns it:
- **Browser-only** (like today's share/pull/unpublish behind SSO): block the terminal path with `checkProxyAuthCLIAllowed`; add relay handler + frontend branch.
- **Terminal-only** (rare): document that it won't work behind SSO, or don't add it.
- **Both**: direct Go HTTP path + browser relay path; terminal path still blocked when `proxy_auth` is on unless you have a non-HTTP auth story.
Integration tests that spawn the `crit` binary must isolate config — use `runCritCmd` / `runCritCmdWithHome` with a temp `HOME`, not the developer's real `~/.crit.config.json`.
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.

