OpenAgentd
AGENTS.md211 starsChanged 2 months agoApache-2.0View on GitHub
OpenAgentd is a local-first coding-agent cockpit: a native Rust backend (appv3/, v3), one React UI, and separate Tauri desktop and mobile shells. The end-of-life Python/FastAPI backend (app/, v2) stays in the tree as source-only reference for the database and config formats v3 shares; it has no build, test, or CI tooling. The canonical catalogue of shipped behavior is documents/docs/features.md. Apply this file repository-wide, then add the nearest nested AGENTS.md for the path you edit. The main local guides are: -…
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.
- app/AGENTS.mdAGENTS.md
- appv3/AGENTS.mdAGENTS.md
- desktop/AGENTS.mdAGENTS.md
- documents/AGENTS.mdAGENTS.md
- mobile/AGENTS.mdAGENTS.md
- .openagentd/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- web/AGENTS.mdAGENTS.md
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 1 is distinctive, and 11 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.
11
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 77
Use the native subtree Makefiles for desktop/mobile packages (make -C desktop sidecar stages the v3 binary).
- Very specific: line 82
Keep route handlers (axum in appv3/crates/api/, FastAPI in app/api/) focused on transport validation and response shaping.
- Very specific: line 107
Keep the v3 network guard (Host check, cross-origin refusal without an access key) and the child-environment secret scrub in …
- Very specific: line 110
Treat auth, shell/file tools, MCP launch configuration, Tauri CSP/ capabilities, keyring storage, and updater/signing code as …
- Very specific: line 114
Do not edit generated/build state such as web/dist/, desktop/sidecar-bundle/, native target/ (including appv3/target/) or gen/ trees, or …
- Very specific: line 118
Keep release versions synchronized through the repository release scripts.
- Very specific: line 120
Read DESIGN.md before changing UI.
- Very specific: line 141
Use focused checks while iterating, then run the applicable target above.
- Very specific: line 142
Always run Bun tests with --parallel (bun test --cwd web --parallel or cd web && bun test --parallel <path>) for per-file module isolation.
- Very specific: line 159
Update documents/docs/features.md for shipped user-visible behavior.
- Distinctive: line 161
Update README.md only when setup or the user-facing product story changes.
- Very specific: line 162
Read SECURITY.md for vulnerability reporting and CONTRIBUTING.md for PR policy.
≈ “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
OpenAgentd Repository Guide
OpenAgentd is a local-first coding-agent cockpit: a native Rust backend
(appv3/, v3), one React UI, and separate Tauri desktop and mobile shells.
The end-of-life Python/FastAPI backend (app/, v2) stays in the tree as
source-only reference for the database and config formats v3 shares; it has
no build, test, or CI tooling. The canonical catalogue of shipped behavior is
documents/docs/features.md.
Instruction scopes
Apply this file repository-wide, then add the nearest nested AGENTS.md for
the path you edit. The main local guides are:
- Backend v3 (shipped):
appv3/AGENTS.md. - Backend v2 (Python):
app/AGENTS.md, plusapp/agent/AGENTS.md,app/api/AGENTS.md, orapp/services/AGENTS.md. - Frontend:
web/AGENTS.mdandweb/src/AGENTS.md. - Native shells:
desktop/AGENTS.md,desktop/src-tauri/AGENTS.md,mobile/AGENTS.md,mobile/src-tauri/AGENTS.md, andnative/shell-core/AGENTS.md. - Maintainer assets:
scripts/AGENTS.md,.openagentd/AGENTS.md,documents/AGENTS.md,documents/docs/AGENTS.md, andexperiments/turbovec_docs/AGENTS.md.
Ignored copies under build outputs, node_modules/, .openagentd/dev/, or
worktrees are not part of the tracked instruction hierarchy.
Repository map
appv3/: the shipped backend: Rust workspace for the API, agent runtime, CLI, scheduler, persistence, and the desktop sidecar binary.appv3/contract/holds data shared with other surfaces, including the SSE event contract.app/: v2 Python API, agent runtime, CLI, scheduler, SQLModel tables, migrations, and application services (end-of-life, source only).web/: shared React UI used by browser, desktop, and mobile clients.desktop/: Tauri shell that supervises the bundled nativeopenagentdsidecar built fromappv3/.mobile/: remote-backend-only Tauri shell; it does not bundle a backend.native/shell-core/: Tauri-free Rust crate shared by both shells (server config, URL normalization, keyring, download limits).scripts/: packaging, release, docs validation, and code-health utilities;scripts/tests/holds their pytest checks plus installer and workflow contracts.documents/: public feature catalogue and referenced assets..openagentd/: tracked repository commands, snippets, and agent skills; runtime state beneath ignored subdirectories is not source.experiments/turbovec_docs/: isolated semantic-search experiment; it is not imported by the product or shipped in release builds.
Setup and development
Prerequisites: Bun (CI uses 1.4.0), stable Rust/cargo, python3 (maintainer
scripts only), and lsof + nc for make dev. Native shells also need
cargo tauri (tauri-cli 2) and the platform's Tauri system dependencies.
From the repository root:
bun install --cwd web --frozen-lockfile
make run # v3 API only on :8000
make dev # v3 API + Vite on :5173Source checkouts run with APP_ENV=development, so the database, config,
logs, and telemetry live under the ignored .openagentd/dev/ tree, never in
the user's installed app state.
Build outputs have distinct targets:
make build-v3 # optimized v3 release binary
make build-web # web/dist for native packagingUse the native subtree Makefiles for desktop/mobile packages
(make -C desktop sidecar stages the v3 binary).
Architecture boundaries
- Keep route handlers (axum in
appv3/crates/api/, FastAPI inapp/api/) focused on transport validation and response shaping. Durable behavior belongs in the owning runtime crate (appv3/crates/agent/,tools/,providers/,db/) or, for v2,app/services/andapp/agent/. - v2 format parity is not a goal. v3 may change its wire and on-disk
formats (JSON spacing, field order, Python-style renderings) when the web
client changes in the same commit, but it must keep reading data that v2
installs wrote (DB schema and rows, YAML configs and frontmatter, snapshot
repos). Record every wire or on-disk change in
appv3/REPORT.md. - In the UI, TanStack Query owns server state and Zustand owns client/stream
state. Keep backend wire handling in
web/src/api/, queries inweb/src/queries/, and route registration inweb/src/router.ts. - The same
web/code runs in browsers and both Tauri shells. Desktop-only or mobile-only behavior must be gated through existing platform hooks/bridges. - Desktop may launch a sidecar; mobile always connects to an existing API. Preserve this distinction when changing connection or authentication flows.
Safety constraints
- Route every externally supplied workspace root through the workspace
validator (v3:
validate_workspaceinappv3/crates/agent/src/manager.rs; v2:app.services.agent_manager.validate_workspace()). Resolve paths within a workspace with the existingsafe_resolve/safe_joinhelpers. - Preserve constant-time secret comparison (v3:
auth::constant_time_eq; v2:hmac.compare_digest). - Keep the v3 network guard (Host check, cross-origin refusal without an
access key) and the child-environment secret scrub in
appv3/crates/core/andappv3/crates/api/intact; seeappv3/AGENTS.md. - Treat auth, shell/file tools, MCP launch configuration, Tauri CSP/
capabilities, keyring storage, and updater/signing code as
security-sensitive. Use argument-list subprocess APIs; do not introduce
shell=Truecommand construction. - Do not edit generated/build state such as
web/dist/,desktop/sidecar-bundle/, nativetarget/(includingappv3/target/) orgen/trees, or ignored.openagentd/runtime state. Change sources and rerun the owning build. - Keep release versions synchronized through the repository release scripts;
make verify-versionchecks the cross-project contract. - Read
DESIGN.mdbefore changing UI. Use its tokens and existing primitives, design mobile-first, preserve touch/pointer parity, and manually inspect both narrow and wide layouts for visual changes.
Validation
Choose every target covering the paths changed:
make verify-v3 # v3 Rust: cargo fmt check, clippy -D warnings, tests
make verify-scripts # pytest for scripts, installers, and workflow contracts (local .venv)
make verify-web # oxlint, app/test TypeScript (tsc -b), Bun tests
make verify-docs # Markdown links/frontmatter/Make references
make verify-version # synchronized release versions and catalogue metadata
make verify-desktop # locked desktop cargo check/test/clippy
make verify-mobile # locked mobile cargo check
make verify-shell-core # shared native crate fmt/clippy/test
make verify # portable v3 + scripts + web + docs + version checks
make verify-native # shell-core + desktop + mobile; native system dependencies requiredUse focused checks while iterating, then run the applicable target above.
Always run Bun tests with --parallel (bun test --cwd web --parallel or cd web && bun test --parallel <path>) for per-file module isolation.
Cross-surface API or event changes require both backend and web checks; SSE
event types must also match appv3/contract/sse_events.json. Run
make help for maintained health and build targets.
CI additionally runs bun run build for web/, which enforces the bundle
budget and chunk-cycle checks. Pre-commit hooks run file hygiene plus oxlint
and tsc for web/src.
Agent workflows
Repository workflows live in .openagentd/skills/oad/: oad/testing
(test-first and per-surface commands), oad/debug (including logs and
telemetry), oad/review, oad/commit (including the documentation pass),
and oad/release.
Documentation
- Update
documents/docs/features.mdfor shipped user-visible behavior; use the current version tag and keep entries factual. - Update
README.mdonly when setup or the user-facing product story changes. - Read
SECURITY.mdfor vulnerability reporting andCONTRIBUTING.mdfor PR policy. Keep implementation rationale near the relevant code/tests rather than expanding the public feature catalogue.
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.

