agent-workspace: Instructions file for Codex

AGENTS.md

agent-workspace AGENTS.md is an instructions file for Codex, OpenCode from web3dev1337/agent-workspace. It costs 437 tokens per session, scanned A, original, MIT.

A repository instruction file for the Agent Workspace project. It tells coding agents how to read project guidance, manage release versions, and update a live production checkout safely.

In plain words
What is it for?
Use it when changing code, preparing a release, or updating the running production copy of Agent Workspace.
Why use it?
It reduces mistakes caused by missing project rules, mismatched release versions, or restarting a production process while active terminal sessions are still running.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 agent-workspace AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/web3dev1337/agent-workspace/agents-md"><img src="https://agentmods.dev/badge/instructions/web3dev1337/agent-workspace/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 437 This file is loaded in full into every session.
When invoked 437 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.00437 $0.00437
Opus 5.5 $0.00175 $0.00175
Sonnet 5.5 $0.00087 $0.00087
Haiku 4.5 $0.00044 $0.00044

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

Security

Grade A, and why

agent-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 1mo 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 · 36 lines

What it actually says

Agent Workspace Repo Instructions

Read CLAUDE.md and CODEBASE_DOCUMENTATION.md before making changes.

Release Versioning

  • package.json is the release version source of truth.
  • Keep src-tauri/tauri.conf.json and src-tauri/Cargo.toml synced with npm run release:sync-version.
  • Run npm run release:check-version before tagging or shipping a release build.
  • Release tags must be v<package.json version>.
  • scripts/tauri/run-tauri-build.js clears stale bundle/ outputs and verifies that installer filenames include the expected version before CI uploads them.

In-place production updates

Terminals use the tmux persistence backend by default. The Node process owns only tmux clients, so a nodemon restart detaches those clients while the shell and agent panes keep running. The new server process re-adopts them after the browser reconnects.

Before updating the running master/ checkout, request GET http://127.0.0.1:3000/api/sessions/persistence. Proceed with a normal fast-forward update only when the response reports ok: true, enabled: true, backend: "tmux", and every expected active terminal appears under managed. Review any orphaned entries before restarting.

With persistence verified:

  1. Run git pull --ff-only origin main in master/.
  2. Let nodemon restart after server-file changes.
  3. Verify port 3000, the persistence endpoint, and the browser reconnect. Commander and worktree terminal processes should remain in their tmux panes.

If persistence is disabled, tmux is unavailable, or the managed-session list is incomplete, use the deferred restart procedure in PLANS/2026-08-15/PROD_UPDATE.md. A restart in that fallback state can terminate sessions. Never leave nodemon stopped across a stack shutdown.

Client-only changes under client/ need no nodemon restart. Express serves them directly, so a browser reload is enough.

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. 1mo ago First seen · 36 lines · 437 tokens per session scan A f7cf9575f7d5

Subscribe to this mod's changes

agent-workspace AGENTS.md is an instructions file published in the GitHub repository web3dev1337/agent-workspace (35 stars, last pushed 1mo ago), licensed MIT. It adds 437 tokens to every session, about $0.0017 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-30.

Related

Other instructions, from other repositories