-
-
Notifications
You must be signed in to change notification settings - Fork 68
Add ENABLE_TOOLS and DISABLE_TOOLS environment variable support #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Environment variables override config file settings for tool filtering. Accepts comma-separated tool names with optional whitespace. Hyphens are normalized to underscores (e.g., file-edit -> file_edit). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
📝 WalkthroughWalkthroughThe changes introduce environment variable override functionality for tool enable/disable configuration. A dynamic testing override mechanism and helper functions parse ENABLE_TOOLS and DISABLE_TOOLS environment variables, allowing env-based configuration to take precedence over file-based config. Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant ConfigModule as Config Module
participant Environment
Caller->>ConfigModule: get-enable-tools(nrepl-client-map)
activate ConfigModule
ConfigModule->>ConfigModule: get-env("ENABLE_TOOLS")
activate ConfigModule
Note over ConfigModule: Check *env-overrides* first
ConfigModule-->>ConfigModule: check System/getenv
deactivate ConfigModule
alt ENABLE_TOOLS set
ConfigModule->>ConfigModule: parse-tools-env-var(value)
Note over ConfigModule: Parse and normalize<br/>to keywords
ConfigModule-->>Caller: Return env-based tools
else ENABLE_TOOLS not set
ConfigModule-->>Caller: Fall back to config file
end
deactivate ConfigModule
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
Pre-merge checks✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (2)**/*.clj📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*test*.clj📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (9)📓 Common learnings📚 Learning: 2026-01-02T16:18:02.394ZApplied to files:
📚 Learning: 2026-01-02T16:18:02.394ZApplied to files:
📚 Learning: 2025-12-27T06:54:07.157ZApplied to files:
📚 Learning: 2026-01-02T16:18:02.394ZApplied to files:
📚 Learning: 2026-01-02T16:18:02.394ZApplied to files:
📚 Learning: 2026-01-02T16:18:02.394ZApplied to files:
📚 Learning: 2026-01-02T16:18:02.394ZApplied to files:
📚 Learning: 2026-01-02T16:18:02.394ZApplied to files:
🔇 Additional comments (9)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
ENABLE_TOOLSandDISABLE_TOOLSenvironment variables that override config file settings"bash, eval_code, file_edit")file-edit→file_edit)Test plan
ENABLE_TOOLSenv var behaviorDISABLE_TOOLSenv var behavior🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Tests
✏️ Tip: You can customize this high-level summary in your review settings.