ag-bash CLAUDE.md

ag-bash CLAUDE.md is an instructions file for Claude Code from sairam0424/ag-bash. It costs 1,213 tokens per session, scanned A, original, Apache-2.0.

Repository-specific instructions for ag-bash, an AI-native Bash interpreter written in TypeScript. The project is a pnpm monorepo, meaning one repository contains several related packages that are managed together.

In plain words
What is it for?
Use it when developing or distributing ag-bash, its shell engine, agent bridge, or Model Context Protocol server. It also documents installation through npm, Homebrew, and Claude Code.
Why use it?
It gives a coding agent the project structure, package version, distribution methods, and setup commands it needs to work consistently in this repository.

Instructions file for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

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/sairam0424/ag-bash/claude-md
Clone the repo
git clone --depth 1 https://github.com/sairam0424/ag-bash

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 ag-bash CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sairam0424/ag-bash/claude-md.svg)](https://agentmods.dev/instructions/sairam0424/ag-bash/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/sairam0424/ag-bash/claude-md"><img src="https://agentmods.dev/badge/instructions/sairam0424/ag-bash/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,213 This file is loaded in full into every session.
When invoked 1,213 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.1 $0.01213 $0.01213
Opus 5 $0.00607 $0.00607
Sonnet 5 $0.00243 $0.00243
Haiku 4.5 $0.00121 $0.00121

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

Security

Grade A, and why

ag-bash 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 6d 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 · 106 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Ag-Bash is an AI-native bash interpreter written in TypeScript. It is organized as a pnpm monorepo:

  • @ag-bash/bash: The core shell engine, filesystem, and sandboxed runtimes.
  • @ag-bash/agent-bridge: Terminal UI bridge for AI agent communication.
  • @ag-bash/mcp-server: Standalone Model Context Protocol server.
  • Version Baseline: 6.0.4 (fixed-mode synchronized across all packages)

Distribution

Ag-Bash ships across multiple channels, all at the current 6.0.4 baseline (owner sairam0424, Apache-2.0):

# npm (library + servers, synchronized at 6.0.4)
npm i @ag-bash/bash                                 # core engine library
npx @ag-bash/mcp-server                             # standalone MCP server (70 tools, stdio)

# MCP server in Claude Code
claude mcp add ag-bash -- npx -y @ag-bash/mcp-server

# Claude Code plugin
/plugin marketplace add sairam0424/ag-bash
/plugin install ag-bash@ag-bash

# Homebrew (installs ag-bash, ag-shell, ag-bash-mcp bins)
brew tap sairam0424/tap && brew install ag-bash
  • MCP Registry: io.github.sairam0424/ag-bash @ 6.0.4 (active, isLatest) at registry.modelcontextprotocol.io.
  • Docker MCP Catalog: submission PR open at docker/mcp-registry (in review; not yet merged).

Commands

Global Workspace Commands

# Build & Setup
bash scripts/force-build.sh   # Full monorepo force build (Core + MCP)
pnpm install                 # Install dependencies
pnpm typecheck               # Type check all packages

# Verification
bash scripts/e2e-verify.sh   # Run full E2E verification suite

Core Engine Commands (packages/bash)

# Testing
pnpm --filter @ag-bash/bash test:run      # Run ALL engine tests
pnpm --filter @ag-bash/bash test:unit     # Fast unit tests
pnpm --filter @ag-bash/bash test:wasm     # WASM runtimes (python, sqlite)

# Interactive Development
pnpm --filter @ag-bash/bash shell         # Run the interactive ag-shell

Read the full file on GitHub · 106 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. 6d ago First seen · 106 lines · 1,213 tokens per session scan A e0307949760e

Subscribe to this mod's changes

ag-bash CLAUDE.md is an instructions file published in the GitHub repository sairam0424/ag-bash (0 stars, last pushed 3d ago), licensed Apache-2.0. It adds 1,213 tokens to every session, about $0.0061 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.