dev-workspace AGENTS.md

An instruction manual for working in a software project's separate knowledge workspace, where product information, plans, architecture, and work status are stored. It explains what an agent should read and record during each session.

In plain words
What is it for?
Use it at the start of work in the specified development workspace, especially when reviewing project state, selecting tasks, or updating plans and records.
Why use it?
It prevents important project context from being kept only in a conversation. It also gives the agent a consistent way to check current work and leave a record of changes.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/iwe-org/dev-workspace/agents-md
Clone the repo
git clone --depth 1 https://github.com/iwe-org/dev-workspace

Made for: Codex, OpenCode.

Per session 2,625 This file is loaded in full into every session.
When invoked 2,625 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02625 $0.02625
Opus 5 $0.01313 $0.01313
Sonnet 5 $0.00525 $0.00525
Haiku 4.5 $0.00263 $0.00263

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

Security

Grade A, and why

dev-workspace 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 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.

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 · 178 lines

How it starts

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

Agent operating manual

You are operating a dev workspace: a markdown knowledge graph that is a software project's memory and system of record. The division of labor:

  • Code lives in the project's own repository. Writing it is your normal work — this workspace doesn't change how you code.
  • Project state lives here, in data/ — what the product is, how it must behave (specs), how it's designed (architecture), what's planned, shipped, broken, and released. Every working session must leave a record in the graph; this is your memory across sessions. Never keep project state only in conversation.

Start of every session

  1. Read data/product.md. If it still contains ✏️ placeholders, run the setup flow (.claude/skills/setup/SKILL.md) before anything else — planning without product context is guessing. Note ## Constraints and ## Authoring rules: they bind everything you write.
  2. Check the state of work: active plans under ## Active in data/plans.md, and high-priority tasks — iwe find --filter '{stage: planned, priority: high}' --included-by data/backlog -f keys.

The operating loop

  1. Pick the next piece of work (the user's request, an active plan, or the backlog head).
  2. Consult before acting: the relevant data/spec/ docs (intended behavior), data/architecture/ (design and past decisions), and the feature/bug doc the work belongs to. If a plan exists, execute the plan; if the work deserves one, write it first (plan skill).
  3. Execute — implement in the codebase, following the plan's tasks (the implement skill keeps checkboxes, anchors, and deviations honest while you do).
  4. Record — write the state back:
    • Idea (not a commitment) → data/someday/<slug>.md + link from data/someday.md.
    • Actionable item → data/backlog/<slug>.md (stage: planned, priority), linked under the priority section of data/backlog.md.
    • Work starts → plan skill: data/plans/YYYYMMDD-<slug>.md (created, verified code anchors, ## Spec changes) + link under ## Active.
    • Work ships → verify skill green (tasks, requirements, and scenarios checked against the code), then ship skill: specs synced first, then stage: done with completed, link moved to ## Done, feature doc implemented, inclusion link in data/releases/unreleased.md.
    • Plan abandoned → stage: cancelled, link moved to ## Cancelled (it stays listed — the record of why is worth keeping).
    • Bug found → data/bugs/<slug>.md (Symptom / Reproduction / Root cause / Fix, path:line anchors) + link from data/bugs.md. Fixed → stage: done.
    • Behavior defined or changed → the matching data/spec/ doc (Requirement/Scenario format); this happens inside the ship flow, not as an afterthought.
    • Design decision made → data/architecture/<slug>.md, including the rejected alternatives.
    • Code structure changed (module added, split, or moved) → re-read the code and refresh the touched data/codebase/ docs, bumping their commit and verified. git log <commit>..HEAD -- <source> finds the stale ones.
    • Vision insight → data/concept/<slug>.md.
    • Task finished → stage: done + completed on the task doc, link moved to ## Done in data/backlog.md.
    • Release cut → ship skill's release mode (rename unreleased, stamp version/date, fresh accumulator).
  5. Stamp — every document you create or meaningfully change gets generated: { by: claude-code/opus-5, at: <ISO 8601 now> }, a one-sentence description if it has none, and — when you derived it from code or an external page — a sources entry naming that path or URL. Whenever you set stage, derive OKF status from the table in SCHEMA.md and set or clear it in the same edit. If a hub gained or lost a document, update data/index.md.
  6. Validate & commitiwe normalize, then iwe schema validate must pass; commit with a short message describing the state change.

Read the full file on GitHub · 178 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 First seen · 178 lines · 2,625 tokens per session scan A efcd2d37e1c6

Subscribe to this mod's changes

dev-workspace AGENTS.md is an instructions file published in the GitHub repository iwe-org/dev-workspace (5 stars, last pushed 23d ago), licensed MIT. It adds 2,625 tokens to every session, about $0.0131 per session on Opus 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.