async-bash-mcp AGENTS.md

async-bash-mcp AGENTS.md is an instructions file for Codex, OpenCode from xhuw/async-bash-mcp. It costs 311 tokens per session, scanned A, original, MIT.

Development instructions for an MCP server that provides asynchronous Bash commands, meaning shell work can continue without blocking the assistant. They cover setup, tests, linting, Python style, errors, and logging.

In plain words
What is it for?
Use them when installing dependencies, running the full or individual test suite, checking code with Ruff, or adding typed Python functions to the server.
Why use it?
They provide the commands and rules needed to change the server safely and consistently. They also clarify how tests and code quality checks should be run.

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/xhuw/async-bash-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/xhuw/async-bash-mcp

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 async-bash-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xhuw/async-bash-mcp/agents-md.svg)](https://agentmods.dev/instructions/xhuw/async-bash-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/xhuw/async-bash-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/xhuw/async-bash-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 311 This file is loaded in full into every session.
When invoked 311 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.00311 $0.00311
Opus 5 $0.00156 $0.00156
Sonnet 5 $0.00062 $0.00062
Haiku 4.5 $0.00031 $0.00031

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

Security

Grade A, and why

async-bash-mcp 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 3d 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 · 27 lines

What it actually says

AGENTS.md

Build / lint / test

  • Install dev deps: uv sync --extra dev
  • Run full tests: uv run pytest
  • Run a single test: uv run pytest tests/test_async_bash_mcp.py::test_spawn
  • Lint (ruff): uv run ruff check

Code style & conventions

  • Use Python 3.13+ features conservatively; maintain clear, simple code.
  • Formatting: follow ruff/PEP 8. Use black-style line lengths ~88. Keep imports grouped: stdlib, third-party, local.
  • Imports: always use absolute imports from package root (e.g. from async_bash_mcp import spawn).
  • Types: annotate public functions and methods with type hints. Prefer built-in typing (list/dict) per py3.13.
  • Naming: snake_case for functions and variables, PascalCase for classes, UPPER_SNAKE for constants.
  • Errors: raise specific exceptions. Validate inputs early and return plain serializable types for MCP responses.
  • Logging: prefer logging module, avoid print in library code. Keep messages concise and testable.

Agents operating here

  • Follow repo scripts in pyproject.toml for entrypoints.
  • No Copilot or Cursor rules found; if added later, include .github/copilot-instructions.md and .cursor/rules/* in this file.
  • Store all notes about progress being make and plans in the notes/ directory

Keep this file short and machine-readable; update when style tools change.

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. 3d ago First seen · 27 lines · 311 tokens per session scan A 04f1f2055d5f

Subscribe to this mod's changes

async-bash-mcp AGENTS.md is an instructions file published in the GitHub repository xhuw/async-bash-mcp (6 stars, last pushed 1y ago), licensed MIT. It adds 311 tokens to every session, about $0.0016 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-31.