cdesktop
AGENTS.md154 starsChanged 8 months agoApache-2.0View on GitHub
ts-rs allows you to derive TypeScript types from Rust structs/enums. By annotating your Rust types with #[derive(TS)] and related macros, ts-rs will generate .ts declaration files for those types. When making changes to the types, you can regenerate them using pnpm run generate-types Do not manually edit shared/types.ts, instead edit crates/server/src/bin/generate_types.rs For remote/cloud types, regenerate using pnpm run remote:generate-types Do not manually edit shared/remote-types.ts, instead edit crates/remote/src/bin/remote-generate-types.rs (see crates/remote/AGENTS.md for details).
- Reads credentials
1 other project uses a version of this.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- BloopAI/vibe-kanbanword for word, first seen Mar 24, 2026
Other versions1 project uses a version of this.
Word for word · 1
- BloopAI/vibe-kanban★ 28k100% 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,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 repository3 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 0 are distinctive, and 7 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.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 22
When making changes to the types, you can regenerate them using pnpm run generate-types Do not manually edit shared/types.ts, instead edit …
- Very specific: line 23
Do not manually edit shared/types.ts, instead edit crates/server/src/bin/generate_types.rs
- Very specific: line 26
Do not manually edit shared/remote-types.ts, instead edit crates/remote/src/bin/remote-generate-types.rs (see crates/remote/AGENTS.md for …
- Very specific: line 30
Run dev (web app + backend with ports auto-assigned): pnpm run dev
- Very specific: line 43
Run pnpm run format to format all Rust workspaces and web code.
- Very specific: line 48
Keep functions small, add Debug/Serialize/Deserialize where useful.
- Very specific: line 55
Use .env for local overrides.
≈ “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
Repository Guidelines
Project Structure & Module Organization
crates/: Rust workspace crates —server(API + bins),db(SQLx models/migrations),executors,services,utils,git(Git operations),api-types(shared API types for local + remote),review(PR review tool),deployment,local-deployment,remote.packages/local-web/: Local React + TypeScript app entrypoint (Vite, Tailwind). Shell source inpackages/local-web/src.packages/remote-web/: Remote deployment frontend entrypoint.packages/web-core/: Shared React + TypeScript frontend library used by local + remote web (packages/web-core/src).shared/: Generated TypeScript types (shared/types.ts,shared/remote-types.ts) and agent tool schemas (shared/schemas/). Do not edit generated files directly.assets/,dev_assets_seed/,dev_assets/: Packaged and local dev assets.npx-cli/: Files published to the npm CLI package.scripts/: Dev helpers (ports, DB preparation).docs/: Documentation files.
Crate-specific guides
crates/remote/AGENTS.md— Remote server architecture, ElectricSQL integration, mutation patterns, environment variables.docs/AGENTS.md— Mintlify documentation writing guidelines and component reference.packages/local-web/AGENTS.md— Web app design system styling guidelines.
Managing Shared Types Between Rust and TypeScript
ts-rs allows you to derive TypeScript types from Rust structs/enums. By annotating your Rust types with #[derive(TS)] and related macros, ts-rs will generate .ts declaration files for those types.
When making changes to the types, you can regenerate them using pnpm run generate-types
Do not manually edit shared/types.ts, instead edit crates/server/src/bin/generate_types.rs
For remote/cloud types, regenerate using pnpm run remote:generate-types
Do not manually edit shared/remote-types.ts, instead edit crates/remote/src/bin/remote-generate-types.rs (see crates/remote/AGENTS.md for details).
Build, Test, and Development Commands
- Install:
pnpm i - Run dev (web app + backend with ports auto-assigned):
pnpm run dev - Backend (watch):
pnpm run backend:dev:watch - Web app (dev):
pnpm run local-web:dev - Type checks:
pnpm run check(frontend + all backend Rust workspaces) andpnpm run backend:check(all backend Rust workspaces, includingcrates/remote) - Rust tests:
cargo test --workspace - Generate TS types from Rust:
pnpm run generate-types(orgenerate-types:checkin CI) - Prepare SQLx (offline):
pnpm run prepare-db - Prepare SQLx (remote package, postgres):
pnpm run remote:prepare-db - Local NPX build:
pnpm run build:npxthenpnpm packinnpx-cli/ - Format code:
pnpm run format(runscargo fmtfor all backend Rust workspaces + web-core/web Prettier) - Lint:
pnpm run lint(runs web/ui ESLint +cargo clippyfor all backend Rust workspaces)
Before Completing a Task
- Run
pnpm run formatto format all Rust workspaces and web code.
Coding Style & Naming Conventions
- Rust:
rustfmtenforced (rustfmt.toml); group imports by crate; snake_case modules, PascalCase types. - TypeScript/React: ESLint + Prettier (2 spaces, single quotes, 80 cols). PascalCase components, camelCase vars/functions, kebab-case file names where practical.
- Keep functions small, add
Debug/Serialize/Deserializewhere useful.
Testing Guidelines
- Rust: prefer unit tests alongside code (
#[cfg(test)]), runcargo test --workspace. Add tests for new logic and edge cases. - Web app: ensure
pnpm run checkandpnpm run lintpass. If adding runtime logic, include lightweight tests (e.g., Vitest) in the same directory.
Security & Config Tips
- Use
.envfor local overrides; never commit secrets. Key envs:FRONTEND_PORT,BACKEND_PORT,HOST - Dev ports and assets are managed by
scripts/setup-dev-environment.js.
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.

