openducktor
AGENTS.md35 starsChanged 57 days agoApache-2.0View on GitHub
OpenDucktor is a Bun monorepo. It contains an Electron desktop app and a local browser runner for AI planning and build workflows. A workspace-scoped SQLite task store is the source of truth for tasks. Use Bun and bun run for dependency installation and workspace commands. Use npm only in Trusted Publisher workflows that run npm publish. Do not use Yarn. Read CONTRIBUTING.md for setup and command details. Read docs/effect.md before you change a host port, service, adapter, lifecycle, or typed…
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,736 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 repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- pr-spotlightSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
43 rules. About 0 are common, 39 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈39
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
- Very specific: line 7
Use Bun and bun run for dependency installation and workspace commands.
- Distinctive: line 9
Read CONTRIBUTING.md for setup and command details.
- Distinctive: line 17
Do not add fallback logic, a second probe, or an alternate path that hides a failure.
- Distinctive: line 18
Do not poll or retry data that must come from an existing live event stream or subscription.
- Distinctive: line 22
Keep the main path direct.
- Distinctive: line 23
Add normalization or extra checks only for a known case.
- Distinctive: line 24
Add defensive code only when a clear risk requires it.
- Distinctive: line 29
Do not infer available runtime behavior from memory or an adapter shape.
- Distinctive: line 34
Stop and ask for approval when a change needs new persisted data or a durable storage change.
- Distinctive: line 50
Put adapters in infrastructure code.
- Distinctive: line 51
Use an existing contract instead of coupling UI code to infrastructure code.
- Distinctive: line 56
Read docs/effect.md before you change a host port, service, adapter, lifecycle, or typed error.
- Distinctive: line 59
Keep Promise interop at transport and external package boundaries.
- Very specific: line 61
Keep public Zod schemas in packages/contracts.
- Distinctive: line 65
Read docs/runtime-integration-guide.md before you change a runtime, route, session, history, capability, prompt, approval, or catalog.
- Distinctive: line 67
Keep runtime definitions, routes, and connections separate.
- Distinctive: line 68
Keep live route data out of persisted session records and documents.
- Distinctive: line 70
Do not use the repository default runtime as a fallback for a selected session or build.
- Distinctive: line 74
Read docs/frontend-guidelines.md before you change frontend state, forms, components, or themes.
- Distinctive: line 76
Read docs/tanstack-query-cache-strategy.md before you add or change a frontend read from the host or backend.
- Distinctive: line 78
Use TanStack Query for server-owned reads.
- Distinctive: line 79
Keep transient UI state and live event streams outside TanStack Query.
- Distinctive: line 80
Use existing shadcn components and semantic theme tokens.
- Distinctive: line 85
Treat the SQLite task store as the only source of truth for tasks.
- Very specific: line 88
Read the applicable docs/task-workflow-*.md file before you change a task state or action.
- Distinctive: line 92
Keep host command APIs typed and schema-validated.
- Distinctive: line 94
Keep blocking work off the UI thread.
- Distinctive: line 99
Read docs/external-mcp.md before you change the MCP package, host bridge, workspace scope, or public task tools.
- Distinctive: line 101
Read docs/agent-orchestrator-module-map.md before you change Agent Studio orchestration.
- Very specific: line 103
Keep ODT_TOOL_SCHEMAS and AGENT_ROLE_TOOL_POLICY consistent.
- Distinctive: line 104
Update MCP, core, adapters, host, and frontend code together when a shared workflow tool or role policy changes.
- Distinctive: line 108
Read docs/testing.md before you add or change tests.
- Distinctive: line 110
Add deep tests for changed host, core, adapter, and MCP behavior.
- Distinctive: line 111
Add frontend tests for changed frontend behavior.
- Distinctive: line 112
Keep production APIs independent from test-only needs.
- Distinctive: line 116
Write project prose in ASD-STE100 Simplified Technical English.
- Distinctive: line 117
Keep exact code, command, path, schema, and API terms unchanged.
- Distinctive: line 118
Use sentence case, active voice, one idea per sentence, and one physical line per Markdown paragraph or list item.
- Distinctive: line 119
Remove sales language, filler, stock AI phrases, vague claims, decorative bold text, emojis, and em dashes.
- Distinctive: line 120
Keep one source for each rule and link to branch-specific details.
- Distinctive: line 124
When preparing a PR that needs a visual explanation, follow pr-spotlight for scene authoring and media delivery.
- Distinctive: line 126
Run every full repository check before you complete any change:
- Distinctive: line 136
Use a Conventional Commit.
≈ “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
AGENTS.md
Project
OpenDucktor is a Bun monorepo. It contains an Electron desktop app and a local browser runner for AI planning and build workflows. A workspace-scoped SQLite task store is the source of truth for tasks.
Use Bun and bun run for dependency installation and workspace commands. Use npm only in Trusted Publisher workflows that run npm publish. Do not use Yarn.
Read CONTRIBUTING.md for setup and command details.
Hard rules
Expose failures
- Fix failures in the source layer.
- Return or propagate an error that tells the user what to do.
- Do not add fallback logic, a second probe, or an alternate path that hides a failure.
- Do not poll or retry data that must come from an existing live event stream or subscription.
Keep code simple
- Keep the main path direct.
- Add normalization or extra checks only for a known case.
- Add defensive code only when a clear risk requires it.
Verify runtime behavior
- Inspect runtime source or an official contract before you change an adapter that depends on external runtime behavior.
- Do not infer available runtime behavior from memory or an adapter shape.
Protect durable data
- Get human approval before you change a database schema, migration file, persisted record schema, or durable SQLite task-store record shape.
- Stop and ask for approval when a change needs new persisted data or a durable storage change.
Monorepo map
apps/electron: Electron desktop shell, renderer startup, preload bridge, packaging, and IPC transport.packages/frontend: Shared React and Vite UI.packages/contracts: Shared runtime schemas and IPC contracts.packages/core: Core domain services and ports.packages/host: Effect-native TypeScript host, command routing, use cases, and infrastructure adapters.packages/adapters-opencode-sdk:AgentEnginePortadapter.packages/host-client: Frontend IPC adapter.packages/openducktor-mcp: MCP server forodt_*workflow tools.
Architecture
- Define ports in core or domain code.
- Put adapters in infrastructure code.
- Use an existing contract instead of coupling UI code to infrastructure code.
- Change
packages/contractsbefore the host or frontend code that uses a data contract.
Effect
Read docs/effect.md before you change a host port, service, adapter, lifecycle, or typed error.
- Return
Effect.Effect<Success, Failure, Requirements>from host ports and services that perform I/O or can fail. - Keep Promise interop at transport and external package boundaries.
- Model expected failures as typed errors in the Effect error channel.
- Keep public Zod schemas in
packages/contracts.
Runtimes
Read docs/runtime-integration-guide.md before you change a runtime, route, session, history, capability, prompt, approval, or catalog.
- Keep runtime definitions, routes, and connections separate.
- Keep live route data out of persisted session records and documents.
- Resolve the route for the selected session or build at the adapter call boundary.
- Do not use the repository default runtime as a fallback for a selected session or build.
Frontend
Read docs/frontend-guidelines.md before you change frontend state, forms, components, or themes.
Read docs/tanstack-query-cache-strategy.md before you add or change a frontend read from the host or backend.
- Use TanStack Query for server-owned reads.
- Keep transient UI state and live event streams outside TanStack Query.
- Use existing shadcn components and semantic theme tokens.
- Make each UI change work in light and dark themes.
Task data and workflow
- Treat the SQLite task store as the only source of truth for tasks.
- Store only durable task and workflow state in task records.
- Rebuild live state from the runtime, event stream, or runtime history.
- Read the applicable
docs/task-workflow-*.mdfile before you change a task state or action.
Host
- Keep host command APIs typed and schema-validated.
- Return actionable typed errors for expected host failures.
- Keep blocking work off the UI thread.
- Reuse known repository readiness. Do not repeat costly repository setup.
MCP and Agent Studio
Read docs/external-mcp.md before you change the MCP package, host bridge, workspace scope, or public task tools.
Read docs/agent-orchestrator-module-map.md before you change Agent Studio orchestration.
- Keep
ODT_TOOL_SCHEMASandAGENT_ROLE_TOOL_POLICYconsistent. - Update MCP, core, adapters, host, and frontend code together when a shared workflow tool or role policy changes.
Tests
Read docs/testing.md before you add or change tests.
- Add deep tests for changed host, core, adapter, and MCP behavior.
- Add frontend tests for changed frontend behavior.
- Keep production APIs independent from test-only needs.
Documentation
- Write project prose in ASD-STE100 Simplified Technical English.
- Keep exact code, command, path, schema, and API terms unchanged.
- Use sentence case, active voice, one idea per sentence, and one physical line per Markdown paragraph or list item.
- Remove sales language, filler, stock AI phrases, vague claims, decorative bold text, emojis, and em dashes.
- Keep one source for each rule and link to branch-specific details.
Finish
When preparing a PR that needs a visual explanation, follow pr-spotlight for scene authoring and media delivery.
Run every full repository check before you complete any change:
bun run format:check
bun run lint
bun run typecheck
bun run test
bun run buildUse a Conventional 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.

