gastown: Instructions file for Codex

AGENTS.md

gastown AGENTS.md is an instructions file for Codex, OpenCode from gastownhall/gastown. It costs 1,529 tokens per session, scanned C, original, MIT.

Repository instructions for the gastownhall/gastown project. They explain how to recover session context and use Beads, a file-backed issue tracker, along with its command-line tools.

In plain words
What is it for?
Use them to restore project context, manage Beads issues and dependencies, find ready work, and inspect the issue graph in read-only mode.
Why use it?
They give agents a consistent way to find, create, update, close, and synchronize project issues while avoiding unsafe interactive graph commands.

Instructions file for CodexOpenCode

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

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

About the project

Gas Town is a workspace manager for coordinating multiple AI coding agents across projects while preserving their work state in git-backed records. Developers use it to organize agents, tasks, identities, mailboxes, and handoffs across repositories. Its catalogue add-ons support operating and coordinating Gas Town workflows.

gastownhall/gastown · 17,960 stars · on GitHub

Reuse

Borrowing it

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

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 gastown AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/gastownhall/gastown/agents-md.svg)](https://agentmods.dev/instructions/gastownhall/gastown/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/gastownhall/gastown/agents-md"><img src="https://agentmods.dev/badge/instructions/gastownhall/gastown/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,529 This file is loaded in full into every session.
When invoked 1,529 The same file — it is already loaded in full.
Security scan C 1 finding. 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.01529 $0.01529
Opus 5 $0.00764 $0.00764
Sonnet 5 $0.00306 $0.00306
Haiku 4.5 $0.00153 $0.00153

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

Security

Grade C, and why

gastown AGENTS.md scanned grade C with 1 finding 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 8d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- beads-agent-instructions-v2 -->
AGENTS.md · 186 lines

How it starts

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

Agent Instructions

See CLAUDE.md for complete agent context and instructions.

This file exists for compatibility with tools that look for AGENTS.md.

Recovery: Run gt prime after compaction, clear, or new session

Full context is injected by gt prime at session start.


Beads Workflow Integration

This project uses beads for issue tracking. Issues live in .beads/ and are tracked in git.

Two CLIs: bd (issue CRUD) and bv (graph-aware triage, read-only).

bd: Issue Management

bd ready              # Unblocked issues ready to work
bd list --status=open # All open issues
bd show <id>          # Full details with dependencies
bd create --title="..." --type=task --priority=2
bd update <id> --status=in_progress
bd close <id>         # Mark complete
bd close <id1> <id2>  # Close multiple
bd dep add <a> <b>    # a depends on b
bd sync               # Sync with git

bv: Graph Analysis (read-only)

NEVER run bare bv — it launches interactive TUI. Always use --robot-* flags:

bv --robot-triage     # Ranked picks, quick wins, blockers, health
bv --robot-next       # Single top pick + claim command
bv --robot-plan       # Parallel execution tracks
bv --robot-alerts     # Stale issues, cascades, mismatches
bv --robot-insights   # Full graph metrics: PageRank, betweenness, cycles

Workflow

  1. Start: bd ready (or bv --robot-triage for graph analysis)
  2. Claim: bd update <id> --status=in_progress
  3. Work: Implement the task
  4. Complete: bd close <id>
  5. Sync: bd sync at session end

Session Close Protocol

git status            # Check what changed
git add <files>       # Stage code changes
bd sync               # Commit beads changes
git commit -m "..."   # Commit code
bd sync               # Commit any new beads changes
git push              # Push to remote

Key Concepts

  • Priority: P0=critical, P1=high, P2=medium, P3=low, P4=backlog (numbers only)
  • Types: task, bug, feature, epic, question, docs
  • Dependencies: bd ready shows only unblocked work

Read the full file on GitHub · 186 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. 8d ago First seen · 186 lines · 1,529 tokens per session scan C a55e7001c877

Subscribe to this mod's changes

gastown AGENTS.md is an instructions file published in the GitHub repository gastownhall/gastown (17,960 stars, last pushed 4d ago), licensed MIT. It adds 1,529 tokens to every session, about $0.0076 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). 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

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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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 · 6,785 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 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,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens