open-codesign: Instructions file for Codex

AGENTS.md

open-codesign AGENTS.md is an instructions file for Codex, OpenCode from OpenCoworkAI/open-codesign. It costs 4,007 tokens per session, scanned C, original, MIT.

Repository instructions for AI coding agents working on Open CoDesign, an open-source desktop tool that turns prompts and local files into design artifacts. They describe the project, its constraints, and its planned architecture.

In plain words
What is it for?
Use them when an agent must understand Open CoDesign’s design workflow, local workspace, file-editing rules, and architecture direction.
Why use it?
They give coding agents the project context and rules they need before changing files. This reduces misunderstandings caused by outdated or missing documentation.

Instructions file for CodexOpenCode

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

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

About the project

Open CoDesign is a desktop design tool that turns prompts into artifacts such as prototypes, slides, and PDFs using models chosen by the user. It is for people who want to create designs locally with their own model access and laptop. The catalogue instructions support workflows for using the application.

OpenCoworkAI/open-codesign · 8,129 stars · on GitHub · opencoworkai.github.io

Reuse

Borrowing it

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

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 open-codesign AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/opencoworkai/open-codesign/agents-md"><img src="https://agentmods.dev/badge/instructions/opencoworkai/open-codesign/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,007 This file is loaded in full into every session.
When invoked 4,007 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.04007 $0.04007
Opus 5.5 $0.01603 $0.01603
Sonnet 5.5 $0.00801 $0.00801
Haiku 4.5 $0.00401 $0.00401

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

Security

Grade C, and why

open-codesign 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 7d 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.

- Tier 3: destructive system commands, `curl | sh`, and system-directory writes are blocked without override.

Makes network callslowCapability

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

- Tier 3: destructive system commands, `curl | sh`, and system-directory writes are blocked without override.
AGENTS.md · 237 lines

How it starts

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

AGENTS.md - Open CoDesign

Instructions for Codex and other AI coding agents working in this repository. Read this before making changes.

CLAUDE.md may lag behind the current plan. For Codex work, treat this file as the public source of truth. If local internal docs such as docs/VISION.md, docs/PRINCIPLES.md, or docs/v0.2-plan.md exist, use them as additional context; if they are missing, do not block public-contributor work on them.

What This Project Is

Open CoDesign is an open-source desktop design agent. It turns prompts, local files, skills, scaffolds, brand systems, and model output into design artifacts on the user's laptop.

The v0.2 direction is no longer a single-prompt generator. Each design is a long-running pi session with a real workspace. The agent can read and edit files, run permissioned commands, ask structured questions, preview artifacts, expose tweak controls, generate images when the configured model supports it, and produce DESIGN.md design-system artifacts.

The original inspiration was Claude Design. The product boundary is now clearer: Open CoDesign borrows proven coding-agent mechanics, then adds design-specific tools and a local-first workspace model.

Product model: a Design owns a workspace. The agent edits design source files in that workspace; the preview runtime turns those sources into a rendered web document; exporters turn the rendered/source document into standard outputs such as HTML, PDF, PPTX, ZIP, or Markdown. In v0.2 the default source entry is App.jsx; index.html is reserved for standalone exports or legacy workspace files.

docs/ is gitignored. Maintainers may have internal plans, handoffs, and research locally; public contributors may not. Do not cite docs/** in public PR review comments unless the file exists in the public checkout.

Hard Constraints

These are project commitments, not preferences:

  1. No bundled model runtimes. Do not ship Ollama, llama.cpp, Python, browser binaries, or model weights inside the installer. Use system installs or lazy-download with user-visible consent.
  2. BYOK only. No hosted account, proxied API, or telemetry by default. User credentials stay in human-readable local config.
  3. Local-first storage. v0.2 uses pi JSONL sessions plus real workspace files. Existing v0.1 SQLite data may be migrated, but do not add new SQLite tables for sessions, chat history, comments, snapshots, or design files.
  4. Every design has a workspace. No sealed/open split in v0.2. The workspace filesystem is the source of truth for artifacts and assets.
  5. Shipped app/runtime dependencies, bundled assets, scaffolds, skills, brand refs, and copied code must be MIT-compatible permissive. Reject GPL, AGPL, SSPL, proprietary deps, and unclear copied assets in anything that is bundled, linked, imported by app code, or distributed to users. Workflow-only CI/release tools may use copyleft licenses when they are not vendored, bundled, linked, or copied into the product; document the reason and keep their outputs limited to ordinary metadata or manifests.
  6. Lazy-load heavy features. PPTX export, web capture, scaffolds, skills, brand refs, and image generation must load on demand rather than at app start.
  7. Reuse pi primitives first. pi-coding-agent owns sessions, built-in tools, bash execution, event streaming, model registry, provider registration, and capability data unless a design-specific need proves otherwise.
  8. Brand values are data, not model memory. Use DESIGN.md, user files, official CSS/SVG/screenshots, or brand URLs. Do not invent brand hex values from memory.
  9. PRs should stay compatible, upgradeable, lean, and elegant. If docs/PRINCIPLES.md is present, use its Principles 5b wording as the detailed checklist.

Read the full file on GitHub · 237 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. 7d ago Changed · +44 lines · +664 tokens per session 12b2b953f570
  2. 2mo ago First seen · 193 lines · 3,343 tokens per session scan C c17ee5bf5d68

Subscribe to this mod's changes

open-codesign AGENTS.md is an instructions file published in the GitHub repository OpenCoworkAI/open-codesign (8,129 stars, last pushed yesterday), licensed MIT. It adds 4,007 tokens to every session, about $0.0160 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens