agentleFS
Maxsky5Maxsky5/openducktor/AGENTS.md

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.

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
  1. Very specific:

    Use Bun and bun run for dependency installation and workspace commands.

    line 7
  2. Distinctive:

    Read CONTRIBUTING.md for setup and command details.

    line 9
  3. Distinctive:

    Do not add fallback logic, a second probe, or an alternate path that hides a failure.

    line 17
  4. Distinctive:

    Do not poll or retry data that must come from an existing live event stream or subscription.

    line 18
  5. Distinctive:

    Keep the main path direct.

    line 22
  6. Distinctive:

    Add normalization or extra checks only for a known case.

    line 23
  7. Distinctive:

    Add defensive code only when a clear risk requires it.

    line 24
  8. Distinctive:

    Do not infer available runtime behavior from memory or an adapter shape.

    line 29
  9. Distinctive:

    Stop and ask for approval when a change needs new persisted data or a durable storage change.

    line 34
  10. Distinctive:

    Put adapters in infrastructure code.

    line 50
  11. Distinctive:

    Use an existing contract instead of coupling UI code to infrastructure code.

    line 51
  12. Distinctive:

    Read docs/effect.md before you change a host port, service, adapter, lifecycle, or typed error.

    line 56
  13. Distinctive:

    Keep Promise interop at transport and external package boundaries.

    line 59
  14. Very specific:

    Keep public Zod schemas in packages/contracts.

    line 61
  15. Distinctive:

    Read docs/runtime-integration-guide.md before you change a runtime, route, session, history, capability, prompt, approval, or catalog.

    line 65
  16. Distinctive:

    Keep runtime definitions, routes, and connections separate.

    line 67
  17. Distinctive:

    Keep live route data out of persisted session records and documents.

    line 68
  18. Distinctive:

    Do not use the repository default runtime as a fallback for a selected session or build.

    line 70
  19. Distinctive:

    Read docs/frontend-guidelines.md before you change frontend state, forms, components, or themes.

    line 74
  20. Distinctive:

    Read docs/tanstack-query-cache-strategy.md before you add or change a frontend read from the host or backend.

    line 76
  21. Distinctive:

    Use TanStack Query for server-owned reads.

    line 78
  22. Distinctive:

    Keep transient UI state and live event streams outside TanStack Query.

    line 79
  23. Distinctive:

    Use existing shadcn components and semantic theme tokens.

    line 80
  24. Distinctive:

    Treat the SQLite task store as the only source of truth for tasks.

    line 85
  25. Very specific:

    Read the applicable docs/task-workflow-*.md file before you change a task state or action.

    line 88
  26. Distinctive:

    Keep host command APIs typed and schema-validated.

    line 92
  27. Distinctive:

    Keep blocking work off the UI thread.

    line 94
  28. Distinctive:

    Read docs/external-mcp.md before you change the MCP package, host bridge, workspace scope, or public task tools.

    line 99
  29. Distinctive:

    Read docs/agent-orchestrator-module-map.md before you change Agent Studio orchestration.

    line 101
  30. Very specific:

    Keep ODT_TOOL_SCHEMAS and AGENT_ROLE_TOOL_POLICY consistent.

    line 103
  31. Distinctive:

    Update MCP, core, adapters, host, and frontend code together when a shared workflow tool or role policy changes.

    line 104
  32. Distinctive:

    Read docs/testing.md before you add or change tests.

    line 108
  33. Distinctive:

    Add deep tests for changed host, core, adapter, and MCP behavior.

    line 110
  34. Distinctive:

    Add frontend tests for changed frontend behavior.

    line 111
  35. Distinctive:

    Keep production APIs independent from test-only needs.

    line 112
  36. Distinctive:

    Write project prose in ASD-STE100 Simplified Technical English.

    line 116
  37. Distinctive:

    Keep exact code, command, path, schema, and API terms unchanged.

    line 117
  38. Distinctive:

    Use sentence case, active voice, one idea per sentence, and one physical line per Markdown paragraph or list item.

    line 118
  39. Distinctive:

    Remove sales language, filler, stock AI phrases, vague claims, decorative bold text, emojis, and em dashes.

    line 119
  40. Distinctive:

    Keep one source for each rule and link to branch-specific details.

    line 120
  41. Distinctive:

    When preparing a PR that needs a visual explanation, follow pr-spotlight for scene authoring and media delivery.

    line 124
  42. Distinctive:

    Run every full repository check before you complete any change:

    line 126
  43. Distinctive:

    Use a Conventional Commit.

    line 136

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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: AgentEnginePort adapter.
  • packages/host-client: Frontend IPC adapter.
  • packages/openducktor-mcp: MCP server for odt_* 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/contracts before 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-*.md file 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_SCHEMAS and AGENT_ROLE_TOOL_POLICY consistent.
  • 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 build

Use a Conventional Commit.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.