treq
AGENTS.md4 starsChanged 2 months agoApache-2.0View on GitHub
Treq is a Tauri v2 Stacking Agent Development Environment (ADE) built on Jujutsu (jj). The frontend is React/TypeScript in src/; the backend is Rust in src-tauri/, exposed to the frontend via Tauri commands. A native Node addon (NAPI) runs the real Rust commands inside the frontend test suite. Area guides (read the one for the area you are changing): - src/AGENTS.md — frontend architecture and state management - src-tauri/AGENTS.md — backend architecture, Rust tests, benchmarks - test/AGENTS.md — frontend unit…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- treq-dev/treqword for word, first seen Sep 28, 2026
Other versions1 project uses a version of this.
Word for word · 1
- treq-dev/treq★ 4100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
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,691 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 repository10 other files it gives its agents.
- src/AGENTS.mdAGENTS.md
- src-tauri/AGENTS.mdAGENTS.md
- test/AGENTS.mdAGENTS.md
- app-qaSkill
- audit-interlinkingSkill
- docs-writingSkill
- explain-to-meSkill
- service-qaSkill
- ui-storySkill
- writingSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use npm (not pnpm) for all JS commands
- Very specific: line 13
Keep commands layer thin: no business logic in commands/*.rs — delegate to core/
- Distinctive: line 14
Never write commits; the user owns all VCS operations
- Very specific: line 15
Prefer jj-lib or gix over subprocess calls.
- Distinctive: line 20
All backend Rust work must follow TDD.
- Distinctive: line 22
Write a failing test that captures the desired behaviour
- Distinctive: line 23
Run it — confirm the new test fails (and only the new test)
- Distinctive: line 24
Write the minimum code to make it pass
- Distinctive: line 25
Run tests — confirm all pass
- Very specific: line 28
Never write implementation code before the test exists.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
Treq Agent Guide
Treq is a Tauri v2 Stacking Agent Development Environment (ADE) built on Jujutsu (jj). The frontend is React/TypeScript in src/; the backend is Rust in src-tauri/, exposed to the frontend via Tauri commands. A native Node addon (NAPI) runs the real Rust commands inside the frontend test suite.
Area guides (read the one for the area you are changing):
src/AGENTS.md— frontend architecture and state managementsrc-tauri/AGENTS.md— backend architecture, Rust tests, benchmarkstest/AGENTS.md— frontend unit and integration test patterns
Workflow Rules
- Use npm (not pnpm) for all JS commands
- Keep commands layer thin: no business logic in
commands/*.rs— delegate tocore/ - Never write commits; the user owns all VCS operations
- Prefer jj-lib or gix over subprocess calls; never shell out to
jjorgitfrom Rust jj.rsfunctions that accept a workspace path must validate the path exists and return an empty/default value on missing path rather than propagating an IO error
TDD (Required)
All backend Rust work must follow TDD. Frontend work should too, where a test can be written before the feature.
- Write a failing test that captures the desired behaviour
- Run it — confirm the new test fails (and only the new test)
- Write the minimum code to make it pass
- Run tests — confirm all pass
- Refactor while keeping tests green
Never write implementation code before the test exists. For a bug, reproduce it in a test first. Do not add tests for styling-only changes (classes, z-index, spacing, color): jsdom applies no stylesheets. Verify those with /app-qa.
| Work type | Test location |
| Rust core function | #[cfg(test)] in the same .rs file, or src-tauri/tests/ |
| Tauri command | Rust test + integration test in test/integration/ |
| React component | test/integration/ for behaviour; test/*.test.tsx for isolated logic |
| Utility / pure function | test/*.test.ts |
| Performance-critical path | src-tauri/benches/ |
Running Tests
npm test # full suite (builds NAPI first)
npm run test:run # frontend only (needs prior build:napi)
npm run build:napi # rebuild the addon after any Rust change
cargo test --manifest-path src-tauri/Cargo.tomlDoes 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.

