hal-9000: Instructions file for Claude Code

CLAUDE.md

hal-9000 CLAUDE.md is an instructions file for Claude Code from vinta/hal-9000. It costs 689 tokens per session, scanned B, original, MIT.

A project instruction file for hal-9000, a macOS automation and developer-tools repository. It documents the commands, file locations, and external documentation rules that coding agents must follow.

In plain words
What is it for?
It helps maintain dotfiles, Claude Code skills, shell completions, and other hal-9000 configuration and automation files.
Why use it?
It prevents changes from being made in generated or mirrored locations and helps agents use the repository's intended commands and sources of truth.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 hal-9000 CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/vinta/hal-9000/claude-md"><img src="https://agentmods.dev/badge/instructions/vinta/hal-9000/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 689 This file is loaded in full into every session.
When invoked 689 The same file — it is already loaded in full.
Security scan B 1 finding. 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.00689 $0.00689
Opus 5.5 $0.00276 $0.00276
Sonnet 5.5 $0.00138 $0.00138
Haiku 4.5 $0.00069 $0.00069

Measured 20d ago against content hash a98254408f71, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

hal-9000 CLAUDE.md scanned grade B 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 20d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **Mirror `dotfiles/.claude/settings.json` edits into `dotfiles/.claude/settings.sandbox.json`**: the sandbox copy is the settings for Claude Code under blackwall and drifts otherwise. Skip what it leaves out on purpose
CLAUDE.md · 39 lines

How it starts

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

CLAUDE.md

macOS dev environment automation: dotfiles, AI agent configs, skills, and dev stacks.

Commands

Run make help to list targets and hal --help for the CLI.

Use make targets instead of running the underlying commands directly. They chain the right tools with the right flags.

Gotchas

  • Edit under dotfiles/, never under ~/: hal sync symlinks every links entry in dotfiles/hal_dotfiles.json into ~/, so an edit to a linked path is live immediately. A new file outside a linked directory needs its own entry plus hal sync before anything references it.
  • Mirror dotfiles/.claude/settings.json edits into dotfiles/.claude/settings.sandbox.json: the sandbox copy is the settings for Claude Code under blackwall and drifts otherwise. Skip what it leaves out on purpose: hooks, the ask list, host-path deny rules, Ollama-backed plugins and env vars, and its own theme and statusline paths.
  • Edits under skills/ and plugins/ are not live until published: Claude Code loads them from the hal-9000 marketplace on GitHub (see dotfiles/.claude/settings.json), and other coding agents install skills/ via npx skills add vinta/hal-9000. Publish with a version bump (the publish-plugins skill) for a change to reach either.
  • All skill descriptions must start with Use when, Use before, or Use after, except skills with disable-model-invocation: true, whose description is a human-facing summary. A project-level skill's description may have a (project) prefix.
  • For generated artifacts such as zsh completion, regenerate them with the repo command instead of editing them by hand (e.g. make hal-completion after modifying bin/hal.py).

External Tool Documentation

Pre-resolved Context7 IDs for the find-docs skill. Pass them to ctx7 docs and skip ctx7 library:

Tool libraryId
ansible /websites/ansible_projects_ansible
ansible-lint /ansible/ansible-lint
betterleaks /betterleaks/betterleaks
fnm /schniz/fnm
github-actions /websites/github_en_actions
homebrew /homebrew/brew
oh-my-zsh /ohmyzsh/ohmyzsh
ollama /ollama/ollama
pre-commit /pre-commit/pre-commit.com
pytest /pytest-dev/pytest
ruff /websites/astral_sh_ruff
ty /websites/astral_sh_ty
uv /websites/astral_sh_uv
zsh /websites/zsh_sourceforge_io_doc_release

Read the full file on GitHub · 39 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. 20d ago Changed · +1 lines · +84 tokens per session a98254408f71
  2. 24d ago Changed · -18 lines · -188 tokens per session f96f72c5b057
  3. 1mo ago Changed · +19 tokens per session d04859e63414
  4. 1mo ago Changed · -10 tokens per session dd4c1be7f6df
  5. 1mo ago Changed · +9 tokens per session b2c126d1a99c
  6. 1mo ago Changed · -1 lines e6731a11c863
  7. 1mo ago First seen · 57 lines · 775 tokens per session scan B 164fb04f0a42

Subscribe to this mod's changes

hal-9000 CLAUDE.md is an instructions file published in the GitHub repository vinta/hal-9000 (141 stars, last pushed today), licensed MIT. It adds 689 tokens to every session, about $0.0028 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). 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