code-yeongyu

Pi Anthropic Bash — Development skill for Claude Code

Development community

Anthropic native bash policy extension for the pi coding agent.

How to install Pi Anthropic Bash

This entry records only its repository, not the path inside it, so there is no exact command to give. Open code-yeongyu/pi-anthropic-bash and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Pi Anthropic Bash does

Anthropic native bash policy extension for the pi coding agent. Ensures native bash tools are present on anthropic-messages payloads when opt-in is enabled and appends bash guidance to the system prompt.

Alternatives in Development

  • Domxss — Confirm DOM XSS in a real headless browser — injects canary payloads into params + URL fragment and only repor 4.5k ★
  • Ralphy — My Ralph Wiggum setup, an autonomous bash script that runs Claude Code, Codex, OpenCode, Cursor agent, Qwen & 2.8k ★
  • MCP Language Server — mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, a 1.5k ★

README

pi-anthropic-bash

[![ci](https://github.com/code-yeongyu/pi-anthropic-bash/actions/workflows/ci.yml/badge.svg)](https://github.com/code-yeongyu/pi-anthropic-bash/actions/workflows/ci.yml) [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

Anthropic native bash extension for the [pi coding agent](https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent).

This package is the standalone extraction of senpi's former builtin `anthropic-bash` extension.

Behavior

The extension does not register a new tool. It intercepts Anthropic requests before they are sent and ensures a native `bash_*` tool is present for `anthropic-messages` payloads only when bash support is explicitly enabled.

Case Result
PI_ANTHROPIC_BASH is enabled, API is anthropic-messages, and no native bash_* tool exists injects { type: "bash_20250124", name: "bash" }
PI_ANTHROPIC_BASH is enabled and a native bash_* tool already exists preserves existing native tool (no duplication)
PI_ANTHROPIC_BASH is enabled and a function variant named bash is present strips function variant and keeps/uses native variant
PI_ANTHROPIC_BASH is disabled or unset no-op
API is non-Anthropic no-op

Truthy values for `PI_ANTHROPIC_BASH` are: `1`, `true`, `yes`, `on` (case-insensitive, surrounding whitespace allowed).

It also appends a system-prompt section for Anthropic sessions indicating native `bash_20250124` availability when enabled. The tool remains stateless and the `restart` flag has no effect.

Installation

The package targets the [`pi`](https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent) coding agent. Pi loads extensions from `~/.pi/agent/extensions/`, project `.pi/extensions/`, or via the `--extension` / `-e` CLI flag.

# From npm (once published)
pi install npm:pi-anthropic-bash

# From git
pi install git:github.com/code-yeongyu/pi-anthropic-bash

# Manual placement
git