herdr-sidebar: Instructions file for Claude Code

CLAUDE.md

herdr-sidebar CLAUDE.md is an instructions file for Claude Code from alexarthurs/herdr-sidebar. It costs 18,802 tokens per session, scanned C, original, MIT.

A guide for herdr-sidebar, a Rust plugin that provides a terminal file explorer and source-control views in a VS Code-style sidebar. It covers the monorepo, where a repository contains multiple related projects, plus build, test, Windows, plugin-development, and release details.

In plain words
What is it for?
Use it to work on the sidebar's explorer and Git views, run its checks, handle Windows-specific issues, update project guidance, and prepare releases.
Why use it?
It records non-obvious behavior and platform issues so contributors do not repeat earlier debugging or miss plugin and release requirements.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is alexarthurs/herdr-sidebar's own configuration. It tells Claude Code how to work on herdr-sidebar itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything herdr-sidebar configures →

Reuse

Borrowing it

Nothing to install: this file belongs to alexarthurs/herdr-sidebar. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/alexarthurs/herdr-sidebar/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/alexarthurs/herdr-sidebar

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 herdr-sidebar CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/alexarthurs/herdr-sidebar/claude-md/github.svg)](https://agentmods.dev/instructions/alexarthurs/herdr-sidebar/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/alexarthurs/herdr-sidebar/claude-md"><img src="https://agentmods.dev/badge/instructions/alexarthurs/herdr-sidebar/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for herdr-sidebar CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/alexarthurs/herdr-sidebar/claude-md"><img src="https://agentmods.dev/badge/instructions/alexarthurs/herdr-sidebar/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18,802 This file is loaded in full into every session.
When invoked 18,802 The same file — it is already loaded in full.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.18802 $0.18802
Opus 5 $0.09401 $0.09401
Sonnet 5 $0.03760 $0.03760
Haiku 4.5 $0.01880 $0.01880

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

Security

Grade C, and why

herdr-sidebar CLAUDE.md scanned grade C with 2 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- Install: `curl -fsSL https://herdr.dev/install.sh | sh` (lands in `~/.local/bin`), then

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

(winget on Windows with a curl+bsdtar+HKCU-registry fallback; curl+unzip into the
CLAUDE.md · 1,011 lines

How it starts

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

herdr-sidebar monorepo

This file is a living doc — always capture findings. Whenever you discover something non-obvious the hard way (a herdr behavior, a Windows quirk, a manifest gotcha, a build issue), record it here in the relevant section before finishing the task, the way the Windows caveats below were captured. If you're working in a feature worktree, commit the CLAUDE.md update on your branch so it lands on main with the merge.

One herdr plugin, a VS Code-style sidebar for the terminal, as a self-contained Rust crate:

  • plugins/herdr-sidebar — file explorer + source control in ONE binary (ratatui TUI). Unified mode shows both views in a single "Sidebar" pane with an activity-bar switcher (in-process, instant); the ⚙ settings can split them into separate Explorer / Source Control panes (--view explorer|git pins a pane's starting view). --preview runs the file-preview pane. Views live in src/explorer_app.rs / src/scm_app.rs (bin modules); shared pieces (icons, ipc, launch parsing, state, ui helpers, git plumbing + gitdeco decorations) are lib modules — nothing is copy-mirrored anymore.

There is deliberately no root cargo workspace: herdr plugin install <owner>/<repo>/<subdir> treats the subdirectory as the plugin root, and each plugin's herdr-plugin.toml points at ./target/release/<bin> — a shared workspace would hoist target/ to the repo root and break that path. Keep every crate buildable standalone from its own directory.

Build / test / lint

Run from inside the plugin directory, not the repo root:

cd plugins/herdr-sidebar
cargo build --release
cargo test
cargo clippy -- -D warnings

plugins/herdr-sidebar/scripts/.gitattributes pins every shell script to LF. The repository has Windows contributors and core.autocrlf is common, but these files are executed by Bash on Linux/macOS and mixed or CRLF endings fail before the launcher runs.

Plugin dev workflow

  • herdr plugin link . (from the plugin dir) registers the local checkout with the running herdr; herdr plugin list --json shows what's registered.
  • herdr plugin action list / herdr plugin action invoke <plugin>.<action> run manifest actions.
  • herdr plugin log list --plugin <id> shows plugin logs.
  • Manifest format: herdr-plugin.toml ([[build]], [[panes]], [[actions]]).
  • herdr.dev/docs/plugins lists an [[actions]] contexts field as REQUIRED, but no working plugin ships it (checked herdr-file-viewer, herdr-spreader, ours, herdr-notes) — doc/implementation drift; leave it out.

Read the full file on GitHub · 1,011 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. 3d ago Changed · +56 lines · +1,156 tokens per session 904658c1567e
  2. 9d ago First seen · 955 lines · 17,646 tokens per session scan C 3b302b081f7d

Subscribe to this mod's changes

herdr-sidebar CLAUDE.md is an instructions file published in the GitHub repository alexarthurs/herdr-sidebar (298 stars, last pushed 3d ago), licensed MIT. It adds 18,802 tokens to every session, about $0.0940 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens