Skip to main content

Module instructions

Module instructions 

Source

Functionsยง

build_instructions
build_instructions_for_test
Deterministic variant for tests (no session/knowledge state).
build_instructions_with_client
build_instructions_with_client_for_compiler
Deterministic instruction builder for the Instruction Compiler. Uses shadow mode (COMPACT_SHADOW profile) to avoid duplicating BULLETS/NEVER/CRITICAL that the CLAUDE.md / dedicated rule file carries.
claude_code_instructions
Backward-compat alias kept for external callers.
claude_config_dir_display
Display path for the Claude config directory (respected by CLAUDE_CONFIG_DIR).