hal-9000 CLAUDE.md

hal-9000 CLAUDE.md is an instructions file for coding agents from vinta/hal-9000. It costs 775 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

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 instructions/vinta/hal-9000/claude-md
Clone the repo
git clone --depth 1 https://github.com/vinta/hal-9000

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 775 This file is loaded in full into every session.
When invoked 775 The same file — it is already loaded in full.
Security scan B 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.00775 $0.00775
Opus 5 $0.00387 $0.00387
Sonnet 5 $0.00155 $0.00155
Haiku 4.5 $0.00077 $0.00077

Measured 4d ago against content hash 164fb04f0a42, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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.

- **Skills are the source of truth in `skills/`**: Distributed via Claude Code plugin marketplaces configured in `dotfiles/.claude/settings.json` (the `hal-9000` marketplace loads the published version from GitHub), and
CLAUDE.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 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

  • Dotfiles are the source of truth: dotfiles/ is the source of truth for files under ~/. dotfiles/.claude/ syncs to ~/.claude/ via hal_dotfiles.json. Always edit under dotfiles/, never under ~/ directly.
  • Skills are the source of truth in skills/: Distributed via Claude Code plugin marketplaces configured in dotfiles/.claude/settings.json (the hal-9000 marketplace loads the published version from GitHub), and via npx skills add vinta/hal-9000 for other coding agents.
  • All skill descriptions must start with Use when (may have a (project) prefix if it's a project-level skill).
  • 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

Invoke the find-docs skill BEFORE writing code or config that touches the tools below, not only when asked about them. Do not answer from training data, even for familiar tools. Use WebFetch for user-provided URLs and the documentation links below.

Context7 Library IDs

Pre-resolved IDs for the find-docs skill. Pass directly to ctx7 docs, skipping the ctx7 library step:

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 · 57 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. 4d 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 (125 stars, last pushed 6d ago), licensed MIT. It adds 775 tokens to every session, about $0.0039 per session on Opus 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.