deus-machine: Instructions file for Codex

AGENTS.md

deus-machine AGENTS.md is an instructions file for Codex, OpenCode from zvadaadam/deus-machine. It costs 3,187 tokens per session, scanned C, original, MIT.

Repository instructions for Deus Machine, an app for managing several AI coding agents at once. They describe its Electron desktop app, React interface, Node.js backend, and monorepo structure—a single repository containing multiple related applications or packages.

In plain words
What is it for?
Use them when developing Deus Machine, choosing Bun commands, starting the desktop or web version, or working across its frontend, backend, and shared packages.
Why use it?
They prevent incompatible tooling and startup choices, such as using the wrong package manager or running only part of the application.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Codex.

This is zvadaadam/deus-machine's own configuration. It tells Codex and OpenCode how to work on deus-machine 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 deus-machine configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zvadaadam/deus-machine. 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/zvadaadam/deus-machine/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/zvadaadam/deus-machine

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 deus-machine AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zvadaadam/deus-machine/agents-md/github.svg)](https://agentmods.dev/instructions/zvadaadam/deus-machine/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/zvadaadam/deus-machine/agents-md"><img src="https://agentmods.dev/badge/instructions/zvadaadam/deus-machine/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 deus-machine AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zvadaadam/deus-machine/agents-md"><img src="https://agentmods.dev/badge/instructions/zvadaadam/deus-machine/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,187 This file is loaded in full into every session.
When invoked 3,187 The same file — it is already loaded in full.
Security scan C 2 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.03187 $0.03187
Opus 5.5 $0.01275 $0.01275
Sonnet 5.5 $0.00637 $0.00637
Haiku 4.5 $0.00319 $0.00319

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

Security

Grade C, and why

deus-machine AGENTS.md scanned grade C with 2 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 2d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://bun.sh/install | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://bun.sh/install | bash
AGENTS.md · 222 lines

How it starts

The opening of the file, as written. The whole thing — 222 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deus Machine

IDE for managing multiple parallel AI coding agents. Built for semi-technical people who care about output, not the code underneath. AI chat is the first-class citizen, code is secondary.

Design inspiration: Linear, Vercel, Stripe, Perplexity. Dense, pro-consumer aesthetic.

Tech Stack

Electron desktop app + React frontend + Node.js backend. Monorepo under apps/.

  • Package manager: Bun. Always bun add, bun install, bun run, bunx. Never npm or yarn — CI uses bun install --frozen-lockfile.
  • Desktop + Mobile Web: Primary target is Electron. Web version lives at the root domain (deusmachine.ai — the landing worker edge-routes / to the landing for new visitors and everything else to the app; app.deusmachine.ai stays a working alias (canonical 301 configured at the edge)) and also supports mobile via MobileLayout. Don't write isElectronEnv conditionals for feature parity.
  • Key libraries: ts-pattern for discriminated unions (prefer .exhaustive()), Zustand for UI state, TanStack Query v5 for server state, Framer Motion for presence/layout animations, Tailwind CSS v4.

Running the App

bun run dev:web   # Web: backend + frontend (scripts/runtime/dev.ts)
bun run dev       # Desktop: Vite + backend + Electron

Never run bun run dev:frontend alone — it skips the backend.

New machine or broken toolchain? bun run doctor checks Node (22.x, see .node-version), Bun, Xcode and the rest; bun run setup installs the root, apps/cloud-relay and apps/landing dependencies.

  • Frontend: http://localhost:1420 (Vite auto-increments if taken)
  • Backend: dynamic port (check terminal output)

Cursor Cloud setup

Fresh cloud images should have Bun available. If command -v bun fails, install it before any repo commands:

curl -fsSL https://bun.sh/install | bash
export PATH="$HOME/.bun/bin:$PATH"

For a fresh cloud agent, set up and smoke-test the repo from the workspace root:

bun install --frozen-lockfile
bun run typecheck
bun run test:backend
bun run test:agent-server
bun run dev:web

Read the full file on GitHub · 222 lines

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. 2d ago Changed · +84 tokens per session d9659aaa9126
  2. 14d ago Changed · +2 lines · +57 tokens per session 7089cb1a9057
  3. 1mo ago Changed · +2 lines · +38 tokens per session c02f5ffa44b1
  4. 1mo ago Changed · +1 lines · +56 tokens per session a43d02f63be1
  5. 1mo ago Changed · +2 lines · +30 tokens per session 90b51c9bf4bf
  6. 2mo ago Changed · +47 tokens per session d72c448ad43a
  7. 2mo ago First seen · 215 lines · 2,875 tokens per session scan C b3175903dd6d

Subscribe to this mod's changes

deus-machine AGENTS.md is an instructions file published in the GitHub repository zvadaadam/deus-machine (27 stars, last pushed 3d ago), licensed MIT. It adds 3,187 tokens to every session, about $0.0127 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

deus-machine AGENTS.md compared with instructions from other repositories

deus-machine AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deus-machine AGENTS.mdzvadaadam/deus-machineInstructions file273d agoMITC3,187Codex, 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