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.
npx agentmods add agents/canyonroad/agentsh/agents-examplegit clone --depth 1 https://github.com/canyonroad/agentshWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00434 |
| Opus 5 | $0.00000 | $0.00217 |
| Sonnet 5 | $0.00000 | $0.00087 |
| Haiku 4.5 | $0.00000 | $0.00043 |
Grade A, and why
AGENTS-example 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 2d 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.
What it actually says
Command Execution via agentsh
All shell commands in this project MUST be executed through agentsh.
When using the Bash tool, wrap every command with agentsh exec:
Required Syntax
agentsh exec SESSION_ID -- COMMAND [ARGS...]
The -- separator is required between the session ID and the command.
Examples
Instead of:
ls -la
npm install
go build ./...
Use:
agentsh exec my-session -- ls -la
agentsh exec my-session -- npm install
agentsh exec my-session -- go build ./...
Using Environment Variables (Recommended)
When AGENTSH_SESSION_ID is set, pass all command arguments after exec:
export AGENTSH_SESSION_ID=my-session
agentsh exec -- ls -la
agentsh exec -- npm install
Auto-Creating Sessions
Use --root to auto-create a session if it doesn't exist:
agentsh exec my-session --root /path/to/workspace -- ls -la
Or set the environment variable:
export AGENTSH_SESSION_ROOT=/path/to/workspace
agentsh exec my-session -- ls -la
Common Flags
| Flag | Description |
|---|---|
--timeout 30s |
Command timeout (e.g., 30s, 5m) |
--output json |
JSON structured output |
--stream |
Stream output as produced |
--pty |
Interactive PTY mode |
Environment Variables
| Variable | Description |
|---|---|
AGENTSH_SESSION_ID |
Default session ID (avoids passing as argument) |
AGENTSH_SESSION_ROOT |
Root directory for auto-creating sessions |
AGENTSH_SERVER |
Server URL (default: http://127.0.0.1:18080) |
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.
- 2d ago First seen · 72 lines · 0 tokens per session scan A 02602f1afec8
AGENTS-example is an agent published in the GitHub repository canyonroad/agentsh (378 stars, last pushed 26d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 434 tokens. 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.
Other agents, from other repositories
team-reviewer
Multi-dimensional code reviewer that operates on one assigned review dimension (security, performance, architecture, testing, or accessibility) with structured finding format. Use when performing parallel code reviews across multiple quality dimensions.
backend-api-security-backend-security-coder
Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.
agent-orchestration-context-manager
Elite AI context engineering specialist mastering dynamic context management, vector databases, knowledge graphs, and intelligent memory systems. Orchestrates context across multi-agent workflows, enterprise AI systems, and long-running projects with 2024/2025 best practices. Use PROACTIVELY for complex AI…
basic-agents
A basic agent uses a predefined strategy with a simple execution flow that works for most common use cases. It accepts a string input (a question, request, or task description) and sends this input to the configured LLM. The LLM may decide to call provided tools. The agent will execute the tools and send the results…
cli-flags
A new flag touches only the layers that need to understand it. Stop at the layer where it stops mattering — threading it further is the common failure, not stopping too early.
explainer
Code explanation and architecture walkthroughs. Helps developers understand complex code and systems.