agent-workspace AGENTS.md

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

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/web3dev1337/agent-workspace/agents-md
Clone the repo
git clone --depth 1 https://github.com/web3dev1337/agent-workspace

Made for: Codex, OpenCode.

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. 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.00437 $0.00437
Opus 5 $0.00218 $0.00218
Sonnet 5 $0.00087 $0.00087
Haiku 4.5 $0.00044 $0.00044

Measured 2d ago against content hash f7cf9575f7d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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 · 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. 2d 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 (33 stars, last pushed 2d ago), licensed MIT. It adds 437 tokens to every session, about $0.0022 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-30.