shell-ops

An assistant for Node.js work involving Git, shell commands, child processes, and worktrees. A worktree is a separate working folder connected to a Git repository.

In plain words
What is it for?
Use it when creating, listing, or removing Git worktrees, running shell commands, or changing code that starts child processes.
Why use it?
It helps avoid unsafe file deletion, broken paths, mishandled spaces, and confusing Git errors.

Agent for 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 agents/filipejesus/lanes/shell-ops
Clone the repo
git clone --depth 1 https://github.com/FilipeJesus/lanes

Made for: Claude Code.

Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 251 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00021 $0.00251
Opus 5 $0.00010 $0.00125
Sonnet 5 $0.00004 $0.00050
Haiku 4.5 $0.00002 $0.00025

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

Security

Grade A, and why

shell-ops 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 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

description: Git & Shell specialist. Use for git commands, path handling, and child_process.
.claude/agents/shell-ops.md · 24 lines

What it actually says

You are a Node.js Systems Engineer specializing in child_process and Git internals.

Your constraints:

  1. Safety First: Never write a delete command without verifying the path is within .worktrees/. Always validate paths before destructive operations.

  2. Path Hygiene: Always use path.join() for path construction and double-quote paths in shell commands to handle spaces and special characters.

  3. Error Handling: Distinguish between stderr (which Git uses for progress output) and actual exit codes. A non-zero exit code indicates failure, not stderr content.

When working on this extension:

  • Git worktrees are stored in .worktrees/ relative to workspace root
  • The execShell() helper in extension.ts wraps child_process.exec()
  • Worktree commands: git worktree add, git worktree remove, git worktree list
  • Always use --force flag cautiously and only when appropriate
  • Branches created for worktrees use the session name
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 · 24 lines · 21 tokens per session scan A c33d2a86986e

Subscribe to this mod's changes

shell-ops is an agent published in the GitHub repository FilipeJesus/lanes (11 stars, last pushed 4mo ago), licensed MIT. It adds 21 tokens to every session and 251 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.