dsh-factory: Instructions file for Codex

AGENTS.md

dsh-factory AGENTS.md is an instructions file for Codex, OpenCode from monotykamary/dsh-factory. It costs 336 tokens per session, scanned A, original, MIT.

Architecture and safety instructions for DSH Factory, a system that stores tasks and workflows, schedules their runs, executes agents, and displays them in a web interface. They describe the separate packages that own storage, scheduling, agent tools, and the user interface.

In plain words
What is it for?
Adding or changing task graphs, recurring schedules, persistence, state transitions, agent execution, model tools, and the React screens that show work and run status.
Why use it?
They prevent duplicate agent loops, tool registries, or state stores from being added in the wrong package. This keeps task history durable and separates backend business rules from interface-only state.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is monotykamary/dsh-factory's own configuration. It tells Codex and OpenCode how to work on dsh-factory itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dsh-factory configures →

Reuse

Borrowing it

Nothing to install: this file belongs to monotykamary/dsh-factory. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/monotykamary/dsh-factory/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/monotykamary/dsh-factory

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dsh-factory AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/monotykamary/dsh-factory/agents-md/github.svg)](https://agentmods.dev/instructions/monotykamary/dsh-factory/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/monotykamary/dsh-factory/agents-md"><img src="https://agentmods.dev/badge/instructions/monotykamary/dsh-factory/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dsh-factory AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/monotykamary/dsh-factory/agents-md"><img src="https://agentmods.dev/badge/instructions/monotykamary/dsh-factory/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 336 This file is loaded in full into every session.
When invoked 336 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00336 $0.00336
Opus 5.5 $0.00134 $0.00134
Sonnet 5.5 $0.00067 $0.00067
Haiku 4.5 $0.00034 $0.00034

Measured 2mo ago against content hash 738c41ce0462, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dsh-factory AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 27 lines

What it actually says

AGENTS.md

Scope

This repository implements the durable Factory task graph as external DeepSeek Harness plugins. Keep protocol, persistence, scheduling, DSH execution, model tools, and browser presentation in their owning packages.

Architecture

  • dsh-factory-protocol: host-independent task, flow, recurring schedule, run, observation, and graph records.
  • dsh-factory-store: persistence Service Definition.
  • dsh-factory-store-sqlite: transactional document, presence, and scheduler-lease provider.
  • dsh-factory-domain: state transitions and Typert Remote methods.
  • dsh-factory-scheduler: dependency/lane/cron reconciliation and DSH Agent execution.
  • dsh-factory-tools: model tools, explicit run completion, and the bundled Factory skill.
  • dsh-factory-client-ui: Work, task card, all-run Triage, and workspace settings surface.
  • The workspace root is the installable dsh-factory bundle.

Do not introduce a second agent loop, tool registry, session store, or React business store. Factory tasks and flows are durable Factory state; model-visible run input and completion remain logged in DSH Sessions. React owns only filters, selection, expansion, drafts, and viewport state.

Safety

A checkout is one serialized writer lane. Never force-remove a worktree, delete dirty work, or release a lane while shared presence reports a live Session. Publishing remains an explicit task and cleanup cannot rewrite the flow outcome.

Verification

Run bun run check. Browser screenshots additionally run bun run test:e2e after building the client bundle.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · -2 tokens per session 738c41ce0462
  2. 2mo ago First seen · 27 lines · 338 tokens per session scan A 3904b17d680a

Subscribe to this mod's changes

dsh-factory AGENTS.md is an instructions file published in the GitHub repository monotykamary/dsh-factory (4 stars, last pushed 2mo ago), licensed MIT. It adds 336 tokens to every session, about $0.0013 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

dsh-factory AGENTS.md compared with instructions from other repositories

dsh-factory AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dsh-factory AGENTS.mdmonotykamary/dsh-factoryInstructions file42mo agoMITA336Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode