helm: Instructions file for Claude Code

CLAUDE.md

helm CLAUDE.md is an instructions file for Claude Code from PetePeter/helm. It costs 3,938 tokens per session, scanned A, original, MIT.

Repository guidance for Helm, a Windows Electron desktop app that uses an Xbox or other game controller to manage multiple command-line AI coding tools. It explains the system’s mission, architecture, data flow, and rules that all code must follow.

In plain words
What is it for?
Working on the controller input, embedded terminal sessions, process management, session persistence, activity detection, profiles, and the app’s overall architecture.
Why use it?
It gives contributors a shared understanding of the app’s core boundaries and invariants. This makes it easier to add features without breaking session handling, terminal control, activity detection, or configuration.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

This is PetePeter/helm's own configuration. It tells Claude Code how to work on helm 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 helm configures →

Reuse

Borrowing it

Nothing to install: this file belongs to PetePeter/helm. 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/PetePeter/helm/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/PetePeter/helm

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 helm CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/petepeter/helm/claude-md/github.svg)](https://agentmods.dev/instructions/petepeter/helm/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/petepeter/helm/claude-md"><img src="https://agentmods.dev/badge/instructions/petepeter/helm/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 helm CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/petepeter/helm/claude-md"><img src="https://agentmods.dev/badge/instructions/petepeter/helm/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,938 This file is loaded in full into every session.
When invoked 3,938 The same file — it is already loaded in full.
Security scan A 0 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.03938 $0.03938
Opus 5.5 $0.01575 $0.01575
Sonnet 5.5 $0.00788 $0.00788
Haiku 4.5 $0.00394 $0.00394

Measured yesterday against content hash 997fa200a8f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

helm 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 yesterday.

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 · 206 lines

How it starts

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

Helm

Mission

DIY Xbox controller → CLI session manager. Control multiple AI coding CLIs (Claude Code, Copilot CLI, etc.) from a single game controller. Embedded terminals via node-pty + xterm.js — no external windows. Built as an Electron 41 desktop app on Windows.

Scope of this file: orientation and the invariants that constrain code anywhere in the repo. It is deliberately NOT a feature catalogue — per-feature behaviour lives in docs/. When you add a feature, document it there and link it from the table; do not grow this file.

System Overview

graph TB
    XC[Gamepad<br/>Xbox USB/BT · Generic/DirectInput]

    subgraph "Electron App"
        subgraph "Renderer Process"
            UI[UI: Sessions / Settings<br/>Vue 3 + Pinia]
            BGA[Browser Gamepad API]
            TV[TerminalManager → xterm.js]
        end

        subgraph "Main Process"
            IPC[IPC Handlers<br/>domain files + orchestrator]
            SM[SessionManager<br/>EventEmitter]
            PTY[PtyManager<br/>node-pty]
            SD[StateDetector<br/>activity + AIAGENT-* keywords]
            CL[ConfigLoader<br/>Profile YAML]
            FEAT[Feature managers<br/>Plans · Drafts · Artifacts · …]
        end

        UI <-->|contextBridge| IPC
        BGA -->|button events| UI
        TV <-->|pty:data / pty:write| PTY
    end

    XC --> BGA
    IPC --> SM & PTY & CL & FEAT
    PTY --> SD

Every feature manager follows the same shape: an EventEmitter class in src/session/, an injected persist sink writing YAML/JSON under the user config dir, IPC channels exposed through the preload bridge, and a renderer composable owning the reactive mirror. Match that shape when adding one.

Data Flow

Gamepad → Browser Gamepad API (renderer polling, 16ms)
  → IPC gamepad:event → debounce (250ms)
    → Resolve binding (the CLI type's binding profile)
      → Execute action (keyboard/voice/spawn/switch/context-menu)

D-pad / left stick navigates sessions and auto-selects the terminal.
Keyboard input routes to the active terminal (PTY stdin), blocked while a
selection-mode modal overlay is visible.

Read the full file on GitHub · 206 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. yesterday Changed · +1 lines · +29 tokens per session 997fa200a8f5
  2. 16d ago Changed · +2 tokens per session 9326f55e2df5
  3. 17d ago Changed · +13 tokens per session a6a551ce4a15
  4. 20d ago Changed · +1 lines · +52 tokens per session 2f6f7d20d59e
  5. 20d ago Changed · +1 lines · +14 tokens per session ed98ad5f9137
  6. 22d ago Changed · +2 lines · +99 tokens per session 61dfd0cf0d7e
  7. 29d ago Changed · +1 lines · +42 tokens per session b23edde45eec
  8. 1mo ago Changed b2bf698be437
  9. 1mo ago Changed · +1 lines · +43 tokens per session 5dfcedd74343
  10. 1mo ago First seen · 199 lines · 3,644 tokens per session scan A 7bd64f05d28c

Subscribe to this mod's changes

helm CLAUDE.md is an instructions file published in the GitHub repository PetePeter/helm (30 stars, last pushed today), licensed MIT. It adds 3,938 tokens to every session, about $0.0158 per session on Opus 5.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.

Related

helm CLAUDE.md compared with instructions from other repositories

helm CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
helm CLAUDE.mdPetePeter/helmInstructions file30todayMITA3,938Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode