Repository navigation
Conversation
lilly-luo
force-pushed
the
add-enable-claude-code-mods-flag
branch
3 times, most recently
from
October 3, 2026 17:26
fdebc9d to
c4af896
Compare
lilly-luo
force-pushed
the
add-enable-claude-code-mods-flag
branch
2 times, most recently
from
October 3, 2026 17:57
fbd5869 to
6ffb346
Compare
lilly-luo
added this pull request to stack #978
October 3, 2026 17:59
Introduce the ENABLE_CLAUDE_CODE_MODS environment variable, a shared
TRUTHY_ENV_VALUES set ("1"/"true", case-insensitive), and a general
claude_code_mods_enabled() reader in constants. Harness-general and not tied
to smart routing; nothing is gated on it in this change.
Co-authored-by: Isaac <no-reply@databricks.com>
lilly-luo
force-pushed
the
add-enable-claude-code-mods-flag
branch
from
October 3, 2026 18:43
6ffb346 to
9d84069
Compare
lilly-luo
removed this pull request from stack #978
October 13, 2026 23:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ENABLE_CLAUDE_CODE_MODSenvironment variable + a sharedTRUTHY_ENV_VALUESset (1/true, case-insensitive) + a generalconstants.claude_code_mods_enabled()reader.CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1(viaagents/claude.py launch()), so Claude Mods (hooks modules) can load.Why
First slice of making the smart-routing TUI richer with Claude Mods. The flag and its effect are harness-general — deliberately not tied to the smart-routing launch path, since mods may be used elsewhere. The mod that actually renders is stacked in #977.
Notes
CLAUDE_CODE_ENABLE_FUNCTION_HOOKSis the documented opt-in for function hooks. On builds where Claude's mods rollout is still gated off for the account, this sets everything up but the mod won't paint until the rollout reaches that account.Test
uv run pytest tests/test_agent_claude.py::TestClaudeCodeModsFlag tests/test_agent_claude.py::TestMinimumVersionjust lint(ruff + ty)This pull request and its description were written by Isaac.