Skip to main content

Reference Map

This page answers two questions:

  • where do I change X?
  • what file actually drives it?

Paths are relative to the repo root. Hooks live under home/.chezmoiscripts/ and run in numeric order; helper scripts live under scripts/.

Chezmoi

ComponentSource path
Prompts / datahome/.chezmoi.toml.tmpl
Shared datahome/.chezmoidata/
Externalshome/.chezmoiexternal.toml
Ignore ruleshome/.chezmoiignore
Hookshome/.chezmoiscripts/

Provisioning hooks (first run)

HookSource path
Xcode CLTrun_once_before_00-install-xcode.sh
Homebrew installrun_once_after_01-install-brew.sh
Fish install + login shellrun_once_after_02-install-fish.sh
Pass managers setuprun_once_after_05-setup-pass-managers.fish.tmpl

Packages

Each registry has a declarative list plus the hook that converges it. See Packages.

RegistryList sourceConverge hook
Homebrewhome/.chezmoitemplates/brews/ (per-category, per-profile partials assembled into home/readonly_dot_Brewfile.tmpl)run_onchange_after_03-install-brew-packages.fish.tmpl
Fish pluginshome/dot_config/fish/readonly_fish_pluginsrun_onchange_after_04-update-fish-packages.fish.tmpl
mise runtimeshome/dot_config/mise/config.toml.tmplrun_onchange_after_05-install-mise-runtimes.sh.tmpl
Cargo crateshome/readonly_dot_default-cargo-cratesrun_onchange_after_05-update-cargo-crates.sh.tmpl
Go toolshome/readonly_dot_default-golang-pkgs.tmplrun_onchange_after_05-update-golang-pkgs.sh.tmpl
Ruby gemshome/readonly_dot_default-gemsrun_onchange_after_05-update-gems.sh.tmpl
Global yarnhome/readonly_dot_default-yarn-pkgsrun_onchange_after_05-update-yarn-pkgs.sh.tmpl
uv python versionshome/readonly_dot_python-versionrun_onchange_after_05-install-uv-versions.sh.tmpl
uv toolshome/readonly_dot_default-uv-tools.tmplrun_onchange_after_06-update-uv-tools.sh.tmpl
Custom packageshome/readonly_dot_default-custom-packages.tmplrun_onchange_after_05-install-custom-packages.sh.tmpl
GitHub CLI extensions(declared in hook)run_onchange_after_05-install-gh-extensions.fish.tmpl
llama.cpp GGUF modelshome/readonly_dot_default-llama-cpp-models.tmplrun_onchange_after_07-sync-llama-cpp-models.sh.tmpl

Shell

ComponentSource path
Fish main confighome/dot_config/fish/readonly_config.fish.tmpl
POSIX shellrc (alias)home/readonly_dot_shellrc
Zsh completionshome/dot_zsh/
Starship prompthome/dot_config/readonly_starship.toml
Shared ignores (fd/fzf)home/dot_config/readonly_ignore-globs

Git + Identity

ComponentSource path
Git main config templatehome/private_readonly_dot_gitconfig.tmpl
Work override gitconfighome/work/private_dot_gitconfig.tmpl
SSH config (1Password agent socket)home/private_dot_ssh/private_executable_config
Allowed signers (SSH signing)home/private_dot_ssh/private_executable_allowed_signers.tmpl
1Password SSH agent confighome/dot_config/exact_private_1Password/exact_ssh/readonly_agent.toml.tmpl
gh picker work confighome/dot_config/exact_tmux/exact_scripts/pickers/github/readonly_gh-picker-work.yml
gh picker home confighome/dot_config/exact_tmux/exact_scripts/pickers/github/readonly_gh-picker-home.yml

Editor

ComponentSource path
Neovimhome/dot_config/exact_nvim/

Terminal + Multiplexing

ComponentSource path
tmuxhome/dot_config/exact_tmux/readonly_tmux.conf
Ghosttyhome/dot_config/exact_ghostty/readonly_config
bathome/dot_config/exact_bat/readonly_config
Yazi (file mgr)home/dot_config/yazi/
lazygithome/dot_config/exact_lazygit/config.yml
gituihome/dot_config/exact_gitui/
tighome/dot_config/exact_tig/readonly_config
btophome/dot_config/exact_btop/btop.conf
gh-dashhome/dot_config/exact_gh-dash/

macOS Automation

ComponentSource path
Defaults scriptshome/.osx.core, home/.osx.extra
Defaults hooksrun_onchange_after_05-osx.core.sh.tmpl, ...05-osx.extra...
Hammerspoonhome/dot_hammerspoon/
Karabinerhome/dot_config/exact_private_karabiner/
App icons mappinghome/app_icons/readonly_icon_mapping.yaml
App icons hookrun_onchange_after_05-apply-app-icons.sh.tmpl
Crontabrun_onchange_after_05-install-crontab.sh.tmpl

AI: governance + skills

See The Agentic Operating System.

ComponentSource path
Assistant SOP (single source)home/readonly_AGENTS.md (~/CLAUDE.md, ~/.gemini/GEMINI.md, ~/.cursor/AGENTS.md, ~/.config/opencode/AGENTS.md are symlinks to ~/AGENTS.md)
Assistant skillshome/exact_dot_agents/exact_skills/
Cursor CLI hookshome/dot_cursor/hooks.json, home/exact_dot_agents/exact_hooks/

AI: harness configs

Per-tool config sources and the run_onchange_after_07-* hooks that render them. See Tool configs.

ToolSourceMerge hook
Claude Codehome/dot_claude/run_onchange_after_07-merge-claude-code-settings.sh.tmpl
Codexhome/dot_codex/run_onchange_after_07-merge-codex-config.sh.tmpl
Geminihome/dot_gemini/run_onchange_after_07-merge-gemini-settings.sh.tmpl
OpenCodehome/dot_config/opencode/run_onchange_after_07-merge-opencode-config.sh.tmpl
Pihome/dot_pi/agent/run_onchange_after_07-merge-pi-config.sh.tmpl
Cursorhome/dot_cursor/(settings tracked directly)
Amphome/dot_config/exact_amp/(settings tracked directly)

AI: model registry

Single source of truth for LiteLLM/Azure model definitions; per-tool model configs are generated from it. See Model registry & routing.

ComponentSource path
Model definitionshome/.chezmoidata/ai_models.yaml
YAML readerscripts/ai_models.py
Pi models generatorscripts/generate_pi_models.py
OpenCode models mergescripts/merge_opencode_models.py
Display-name formattingscripts/model_display.py
Prompt-cache probescripts/probe_litellm_prompt_cache.py

AI: MCP

Canonical MCP registry plus the generator/injectors that fan it out per tool. See MCP servers.

ComponentSource path
MCP registryhome/.chezmoidata/mcp_servers.yaml
Registry readerscripts/mcp_registry.py
Config generatorscripts/generate_mcp_configs.py
Codex injectorscripts/inject_mcp_into_codex_toml.py
OpenCode injectorscripts/inject_mcp_into_opencode_jsonc.py
Claude MCP mergescripts/merge_claude_mcp.py
Generate hookrun_onchange_after_07-generate-mcp-configs.sh.tmpl

AI: memory

Two distinct memory layers. See Agent memory.

ComponentSource path
AI knowledge base (,ai-kb)home/exact_bin/executable_,ai-kb, scripts/ai_kb.py
Embedding servicescripts/embed.py, scripts/embed_runner.py
Vector retrievalscripts/vec_runner.py
Hook memory (,agent-memory)home/exact_bin/executable_,agent-memory, scripts/agent_memory.py

AI: Ralph orchestrator

See Ralph orchestrator.

ComponentSource path
CLI entryhome/exact_bin/executable_,ralph
Orchestratorscripts/ralph.py
Roles + diversityhome/dot_config/ralph/roles.json
Role promptshome/dot_config/ralph/prompts/
Dashboard (TUI)tools/ralph-tui/
TUI build hookrun_onchange_after_06-build-ralph-tui.sh.tmpl

AI: local inference

See llama.cpp local inference.

ComponentSource path
GGUF model manifesthome/readonly_dot_default-llama-cpp-models.tmpl
Router preset (INI)home/dot_config/llama.cpp/models.ini.tmpl
Chat templatehome/dot_config/llama.cpp/readonly_qwen3.6-chat-template.jinja (robust Unsloth template; local-max override for system-message ordering)
Sync hook + helperrun_onchange_after_07-sync-llama-cpp-models.sh.tmpl, scripts/sync_llama_cpp_models.py
Control planehome/exact_bin/executable_,llama-cpp
Claude launcherhome/exact_bin/executable_,claude-llama-cpp
Codex launcherhome/exact_bin/executable_,codex-llama-cpp, catalog shim home/exact_bin/executable_codex
OpenCode launcherhome/exact_bin/executable_,opencode-llama-cpp (provider in opencode.personal.jsonc / opencode.work.jsonc)
Pi providerhome/dot_pi/agent/readonly_models.json (local + local-max)

Scripts (scripts/)

Helper scripts called by hooks and commands (stdlib-only by convention).

ScriptPurpose
chezmoi_lib.shShared shell library for merge/apply hooks (source selection, atomic writes, checksums, LiteLLM base)
verify_templates.pyRender every chezmoi *.tmpl via execute-template to catch errors early
verify_mermaids.pyCheck .mermaids/ file-census counts against git ls-files (part of make check)
yaml_parser.pyMinimal dependency-free YAML parser for project data files
jsonc_dump.pyJSONC serializer matching OpenCode's trailing-comma config style
mcp_registry.pyRead/normalize the canonical MCP registry
generate_mcp_configs.pyGenerate tool-specific MCP configs from mcp_servers.yaml
inject_mcp_into_codex_toml.pyInject MCP servers into Codex TOML at a marker line
inject_mcp_into_opencode_jsonc.pyInject MCP servers into an OpenCode JSONC placeholder
merge_claude_mcp.pySurgically update only mcpServers in ~/.claude.json
merge_opencode_models.pyMerge LiteLLM/Azure models into OpenCode JSONC
ai_models.pyParse the litellm_models / azure_models sections of ai_models.yaml
generate_pi_models.pyBuild Pi models.json from the shared base plus LiteLLM/Azure providers
model_display.pyShared display-name formatting for LiteLLM model entries
probe_litellm_prompt_cache.pyProbe prompt-cache signals across LiteLLM models
ai_kb.pyLocal markdown + SQLite FTS5/vector knowledge base for agent runs
embed.pyStdlib embedding-service abstraction that shells out to embed_runner.py
embed_runner.pyIsolated PEP 723 fastembed runner (BAAI/bge-small-en-v1.5, 384-d)
vec_runner.pyIsolated PEP 723 sqlite-vec KNN/pairs runner for the KB
agent_memory.pyInspect/wipe hook memory under /tmp/specs for the current workspace
ralph.pyRalph orchestrator state machine (planner -> executor -> reviewer -> re_reviewer)
sync_llama_cpp_models.pyDownload missing GGUF files declared in the llama.cpp manifest
reconcile_golang_pkgs.pyReconcile Go binaries against the manifest (hook 05-update-golang-pkgs)
reconcile_custom_packages.pyReconcile source-installed custom package artifacts
yt_search.pyYouTube search backend (powers ,youtube-search)
tests/Python test suite (test_scripts.py, agent-hook tests)

Maintenance / cleanup hooks

Idempotent housekeeping that removes orphaned generated state on apply.

HookPurpose
run_onchange_after_08-cleanup-orphaned-agent-skill-dirs.sh.tmplDrop skill dirs no longer in the source tree
run_onchange_after_08-cleanup-orphaned-ralph-fzf-scaffold.sh.tmplRemove stale Ralph fzf scaffold artifacts
run_onchange_after_08-cleanup-orphaned-tmux-pick_session.sh.tmplRemove stale tmux pick_session artifacts

Formatting

ComponentSource path
Format scriptbin/fmt
EditorConfig.editorconfig
Prettier config.prettierrc
Prettier ignore.prettierignore
StyLua config.stylua.toml
Ruff configruff.toml

Custom Commands

ComponentSource path
Commands sourcehome/exact_bin/