agtx: Instructions file for Claude Code

CLAUDE.md

agtx CLAUDE.md is an instructions file for Claude Code from fynnfluegge/agtx. It costs 14,903 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for agtx, a terminal-based kanban board that manages multiple coding agents in separate Git worktrees. They cover building, running project or dashboard mode, experimental features, trust settings, the server, hooks, logs, and updates.

In plain words
What is it for?
Use them to build and launch agtx, manage isolated agent workspaces, run its MCP server, handle lifecycle hooks, inspect logs, and check or install updates.
Why use it?
They provide the commands and safety settings needed to operate agtx correctly across projects and agent sessions.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions Claude Code.

This is fynnfluegge/agtx's own configuration. It tells Claude Code how to work on agtx 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 agtx configures →

About the project

agtx is a terminal-based shared workspace where multiple coding agents coordinate through a task board. Developers use it to delegate work, run agents in parallel across git worktrees, and move tasks through different workflow phases.

fynnfluegge/agtx · 1,715 stars · on GitHub

Reuse

Borrowing it

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

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fynnfluegge/agtx/claude-md/github.svg)](https://agentmods.dev/instructions/fynnfluegge/agtx/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/fynnfluegge/agtx/claude-md"><img src="https://agentmods.dev/badge/instructions/fynnfluegge/agtx/claude-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 agtx CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fynnfluegge/agtx/claude-md"><img src="https://agentmods.dev/badge/instructions/fynnfluegge/agtx/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14,903 This file is loaded in full into every session.
When invoked 14,903 The same file — it is already loaded in full.
Security scan A 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.14903 $0.14903
Opus 5.5 $0.05961 $0.05961
Sonnet 5.5 $0.02981 $0.02981
Haiku 4.5 $0.01490 $0.01490

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

Security

Grade A, and why

agtx CLAUDE.md scanned grade A 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 29d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

startup → background thread → curl api.github.com/…/releases/latest
CLAUDE.md · 654 lines

How it starts

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

AGTX - Terminal Kanban for Coding Agents

A terminal-native kanban board for managing multiple coding agent sessions (Claude Code, Codex, Gemini, Copilot, OpenCode, Cursor, Grok, Antigravity) with isolated git worktrees.

Quick Start

# Build
cargo build --release

# Run in a git project directory
./target/release/agtx

# Or run in dashboard mode (no git project required)
./target/release/agtx -g

# Enable experimental features (orchestrator agent)
./target/release/agtx --experimental

# Never run init_script / cleanup_script from project or plugin config
./target/release/agtx --no-init-scripts

# Trust the current project's config (enables its scripts and copy_files)
./target/release/agtx trust

# Run the MCP server (global mode, or project-scoped with a path)
./target/release/agtx mcp-serve [path]

# Serve the board to a phone (feature = "serve"; loopback needs no pairing)
./target/release/agtx serve [path] [--host 0.0.0.0] [--port 8787] [--tunnel private|public]
./target/release/agtx serve --devices          # paired devices
./target/release/agtx serve --revoke <id>      # or --revoke-all

# Record an agent lifecycle event (invoked by agent hooks, not by hand)
./target/release/agtx hook --env <agent> [--event <Name>] < payload.json

# Version, and self-update to the latest GitHub release
./target/release/agtx --version
./target/release/agtx update [--check]

Logs are JSON at ~/.config/agtx/logs/agtx.log (daily rotation, RUST_LOG respected).

Architecture

src/
├── main.rs           # Entry point, CLI arg parsing, AppMode, FeatureFlags
├── lib.rs            # Module exports
├── skills.rs         # Skill constants, agent-native paths, plugin command translation
├── tui/
│   ├── app.rs        # Main App struct, event loop, rendering (largest file)
│   ├── board.rs      # BoardState - kanban column/row navigation
│   ├── config_editor.rs # In-TUI config form: declared fields, two matches
│   ├── dep_graph.rs  # Pure dependency-graph model (topological levels, unblocked nodes)
│   ├── help.rs       # The `?` overlay's binding table (declared)
│   ├── input.rs      # InputMode enum
│   ├── serve_control.rs # The `W` overlay: run `agtx serve` as a child, manage devices
│   ├── shell_popup.rs # Shell popup state, rendering, content trimming
│   ├── text_input.rs # Shared line editor: buffer + byte caret, motion, deletion
│   ├── wizard.rs     # Task create/edit wizard state
│   └── *_tests.rs    # Unit tests included via #[path]
├── db/{schema.rs (SQLite ops), models.rs (Task, Project, TaskStatus, PhaseStatus, ...)}
├── tmux/
│   ├── mod.rs        # Tmux server "agtx", session management
│   ├── operations.rs # TmuxOperations trait (mockable)
│   ├── input.rs      # PaneInput/PaneInputSink, the input broker, both backends
│   └── control.rs    # Persistent `tmux -C` client, frame parser, command encoder
├── git/{mod.rs (repo/branch/diff/merge/conflicts), worktree.rs, operations.rs, provider.rs}
├── agent/
│   ├── mod.rs        # Agent struct, detection, command builders (derived from spec.rs)
│   ├── spec.rs       # AgentSpec table — one declarative record per agent + kind enums
│   ├── hook_status.rs # Agent-reported liveness: event vocabularies, atomic status writes
│   ├── trust.rs      # Reads each agent's own workspace-trust store
│   └── operations.rs # AgentOperations/CodingAgent traits (mockable)
├── core/{actions.rs (allowed_actions + CallerKind), input.rs (submit_message, parking)}
├── mcp/server.rs     # MCP server (JSON-RPC over stdio) — global and project-scoped modes
├── web/              # `agtx serve` — the board over HTTP (feature = "serve")
│   └── mod.rs, routes.rs, writes.rs, ws.rs, state.rs, auth.rs, assets.rs, qr.rs, tunnel.rs
├── update/{mod.rs, version.rs, check.rs, github.rs, release.rs, install.rs}
└── config/mod.rs     # GlobalConfig, ProjectConfig, MergedConfig, WorkflowPlugin, TrustStore

web/                   # The mobile PWA — plain ES modules, no build step
└── index.html, app.js, api.js, ansi.js, app.css, sw.js, manifest.webmanifest, icons

skills/                # Plugin skill files — /agtx:* (Claude) or @agtx:* (Codex)
└── sweep/, brainstorm/, oneshot/ SKILL.md

.claude-plugin/, .codex-plugin/, .mcp.json   # Plugin manifests + shared MCP config

plugins/               # Bundled plugin configs (embedded at compile time)
├── agtx/ (plugin.toml + skills: research, plan, execute, review, orchestrate, merge-conflicts)
└── agtx-terse/, gsd/, spec-kit/, openspec/, bmad/, superpowers/,
    oh-my-claudecode/, agent-skills/, void/  (each plugin.toml)

tests/
├── db_, config_, board_, git_, agent_ tests.rs
├── agent_parity_tests.rs  # Per-agent behaviour lock (launch/resume/skill paths/syntax)
├── hook_status_, mcp_, update_, mock_infrastructure_, shell_popup_ tests.rs
├── tmux_control_tests.rs  # Real-tmux pane input — opt-in via AGTX_TMUX_IT=1
└── smoke/             # Per-agent smoke tests — real binaries, no mocks, opt-in
    └── agent_smoke.py, test_agent_smoke.py, agent_matrix.rs, README.md

benchmark/ (SWE-bench harness), docker/ (sandbox images)

Read the full file on GitHub · 654 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. 29d ago Changed · -1,122 lines · -19,251 tokens per session scan B → A a2da29f768ae
  2. 1mo ago Changed · +213 tokens per session 5f620b5d6245
  3. 1mo ago Changed · +336 lines · +5,669 tokens per session d3587dc9f307
  4. 1mo ago Changed · +83 lines · +1,563 tokens per session 38bd46034765
  5. 1mo ago Changed · +30 lines · +531 tokens per session 685437c819a5
  6. 1mo ago Changed · +379 lines · +9,022 tokens per session 3b5447faf2d4
  7. 1mo ago First seen · 948 lines · 17,156 tokens per session scan B 3da399814432

Subscribe to this mod's changes

agtx CLAUDE.md is an instructions file published in the GitHub repository fynnfluegge/agtx (1,715 stars, last pushed 14d ago), licensed Apache-2.0. It adds 14,903 tokens to every session, about $0.0596 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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

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 · 9,649 tokens

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,257 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,159 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens