AIDevHub
AGENTS.md0 starsChanged 8 months agoMITView on GitHub
These instructions are for AI assistants working in this project. Always open @/openspec/AGENTS.md when the request: - Mentions planning or proposals (words like proposal, spec, change, plan) - Introduces new capabilities, breaking changes, architecture shifts, or big performance/security work - Sounds ambiguous and you need the authoritative spec before coding Use @/openspec/AGENTS.md to learn: - How to create and apply change proposals - Spec format and conventions - Project structure and guidelines Keep this managed block so 'openspec update' can…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 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 repositoryOne other file it gives its agents.
- openspec/AGENTS.mdAGENTS.md
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
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
- could be automatic: a setting could enforce it
- Very specific: line 6
Always open @/openspec/AGENTS.md when the request:
- Very specific: line 11
Use @/openspec/AGENTS.md to learn:
- Distinctive: line 16
Keep this managed block so 'openspec update' can refresh the instructions.
- Very specific: line 26
Run all app commands from app-v2/.
- Very specific: line 46
Do not commit real user config, secrets, or local backup data.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
<!-- OPENSPEC:START -->OpenSpec Instructions
These instructions are for AI assistants working in this project.
Always open @/openspec/AGENTS.md when the request:
- Mentions planning or proposals (words like proposal, spec, change, plan)
- Introduces new capabilities, breaking changes, architecture shifts, or big performance/security work
- Sounds ambiguous and you need the authoritative spec before coding
Use @/openspec/AGENTS.md to learn:
- How to create and apply change proposals
- Spec format and conventions
- Project structure and guidelines
Keep this managed block so 'openspec update' can refresh the instructions.
<!-- OPENSPEC:END -->Repository Guidelines
Project Structure & Module Organization
The product code lives in app-v2/, a Tauri v2 desktop app with a React + TypeScript frontend and a Rust backend. Use app-v2/src/ for UI pages, shared components, and browser-side helpers; app-v2/src-tauri/src/ for Tauri entrypoints; and app-v2/src-tauri/crates/aidevhub-core/ for core Rust logic such as config sync, registry updates, backups, and health checks. Keep long-form specs in docs/, design references in design-system/, and CI templates in .github/.
Build, Test, and Development Commands
Run all app commands from app-v2/.
pnpm install: install frontend dependencies.pnpm dev: run the Vite frontend only.pnpm build: type-check and build the frontend bundle.pnpm tauri dev: start the desktop app locally.pnpm tauri build: build desktop packages.node --test tests/*.test.mjs: run the JavaScript integration/unit tests.cargo test -p aidevhub-core: run Rust core tests fromapp-v2/src-tauri/.
Coding Style & Naming Conventions
Follow the existing style before changing it. TypeScript uses 2-space indentation, double quotes, trailing commas, and PascalCase for React components such as ServersPage.tsx and TopNavShell.tsx. Keep utility modules in src/lib/ with descriptive camelCase names. Rust modules use snake_case filenames such as config_sync.rs and health_check.rs; format Rust changes with cargo fmt.
Testing Guidelines
Add or update tests for any behavioral change in UI state, config flow, registry sync, backup logic, or Rust core behavior. Place frontend-facing tests in app-v2/tests/ with *.test.mjs names matching the feature, for example servers-registry-sync.test.mjs. Keep Rust tests close to the core crate in app-v2/src-tauri/crates/aidevhub-core/tests/. Prefer focused assertions over broad snapshot-style checks.
Commit & Pull Request Guidelines
Recent history follows Conventional Commits, usually type(scope): summary, for example feat(mcp-ui): ..., fix(updater): ..., or docs: .... Keep scopes specific to the touched area. PRs should follow .github/PULL_REQUEST_TEMPLATE.md: include a short summary, a change list, a local test plan, target OS coverage, and screenshots for UI changes.
Security & Config Notes
Do not commit real user config, secrets, or local backup data. Changes touching managed files such as ~/.claude.json, ~/.codex/config.toml, or updater behavior should document rollback impact and be validated in pnpm tauri dev before review.
Code Review Policy ● When a code review scenario is present, invoke the code-reviewer role before commit or before declaring substantial code work complete. ● Treat these as review scenarios by default: ○ explicit review requests ○ any git commit ○ substantial multi-file code changes ○ edits to risky paths such as auth, payments, data writes, public APIs, shared state, build config, or shared UI primitives ○ changes with unclear or missing tests ● Skip automatic review only for: ○ pure explanation with no code changes ○ read-only investigation ○ trivial non-behavioral edits ○ explicit user instruction to skip review ● The code-reviewer role is review-only and should not silently implement fixes during review. ● Review output should prioritize concrete findings with file references and end in one verdict: ○ PASS ○ FLAG ○ BLOCK ● If verdict is BLOCK, do not commit. ● If verdict is FLAG, surface the risk explicitly before commit.
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.

