gastown-gui CLAUDE.md

gastown-gui CLAUDE.md is an instructions file for coding agents from web3dev1337/gastown-gui. It costs 932 tokens per session, scanned A, original, MIT.

Project instructions for Gas Town GUI, a browser-based interface for coordinating multiple coding agents through the gastown tools.

In plain words
What is it for?
Understanding the project’s documentation, server and browser structure, supported command mappings, safety rules, and required documentation updates.
Why use it?
They give an agent the required architecture and command-compatibility context before it changes the codebase.

Instructions file

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/gastown-gui/claude-md
Clone the repo
git clone --depth 1 https://github.com/web3dev1337/gastown-gui

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-gui CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/web3dev1337/gastown-gui/claude-md.svg)](https://agentmods.dev/instructions/web3dev1337/gastown-gui/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/web3dev1337/gastown-gui/claude-md"><img src="https://agentmods.dev/badge/instructions/web3dev1337/gastown-gui/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 932 This file is loaded in full into every session.
When invoked 932 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.00932 $0.00932
Opus 5 $0.00466 $0.00466
Sonnet 5 $0.00186 $0.00186
Haiku 4.5 $0.00093 $0.00093

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

Security

Grade A, and why

gastown-gui CLAUDE.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 4d 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.

CLAUDE.md · 62 lines

How it starts

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

CLAUDE.md - Gas Town GUI

Web GUI for steveyegge/gastown multi-agent orchestrator.

READ THESE ENTIRE DOCUMENTS BEFORE DOING ANYTHING

  1. Read CODEBASE_DOCUMENTATION.md NOW — Complete file inventory. Do NOT grep blindly for files. Read this first so you know where everything lives.
  2. Read CLI-COMPATIBILITY.md — Which gt/bd commands work, which are broken/remapped. Critical if touching any CLI calls.

Update before PR: If you added/deleted/moved files, update CODEBASE_DOCUMENTATION.md.

Overview

Browser SPA (vanilla JS, no framework) backed by an Express server that wraps gt/bd CLI commands as HTTP endpoints. WebSocket streams real-time events from gt feed. Published to npm as gastown-gui.

Architecture

  • Entry: server.js — monolith Express server, partially refactored into server/ modules
  • Refactored path: Gateway → Service → Route (see server/gateways/, server/services/, server/routes/)
  • Legacy endpoints: Mail, agents, nudge, polecat control, service controls still inline in server.js
  • CLI safety: All commands use execFile (no shell) + SafeSegment input validation
  • Frontend: Vanilla JS in js/, components render via innerHTML, global state in js/state.js
  • Real-time: WebSocket client in js/api.js, server pipes gt feed --json output
  • CLI entry: bin/cli.js — supports start, doctor, version, help

File Size Discipline

  • No god files/classes: Do not keep adding logic to large files (especially server.js).
  • Extract by responsibility: New backend logic should be placed in focused modules under server/ (services/gateways/routes/infrastructure) and imported into server.js.
  • Refactor when touching: If a change makes a file larger or more complex, extract helpers into dedicated files in the same PR.

Commands

npm start              # Start server (port 7667)
npm run dev            # Dev mode with auto-reload
npm test               # All tests (unit + integration + e2e)
npm run test:unit      # Unit tests only
npm run test:e2e       # E2E tests only (needs Puppeteer)
npm run test:watch     # Watch mode
npm run test:ui        # Vitest UI

Read the full file on GitHub · 62 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. 4d ago First seen · 62 lines · 932 tokens per session scan A 4ae66c804e6e

Subscribe to this mod's changes

gastown-gui CLAUDE.md is an instructions file published in the GitHub repository web3dev1337/gastown-gui (87 stars, last pushed 4d ago), licensed MIT. It adds 932 tokens to every session, about $0.0047 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.