feat(config): repo-level .rtk.toml override support#707
Open
Nava2 wants to merge 1 commit intortk-ai:developfrom
Open
feat(config): repo-level .rtk.toml override support#707Nava2 wants to merge 1 commit intortk-ai:developfrom
Nava2 wants to merge 1 commit intortk-ai:developfrom
Conversation
Add repo-level config via `.rtk.toml` files, allowing per-repo overrides of hooks and filters without modifying user config. - RepoConfig struct with allowlisted sections (hooks, filters) - find_repo_config_from() walks up to .git boundary - Config::load_from_dir() merges user + repo config - show_config() displays user, repo, and effective merged config Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Kevin Brightwell <kevin.brightwell@faire.com>
This was referenced Mar 18, 2026
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.
Summary
Adds repo-level config via
.rtk.tomlfiles, enabling per-repo overrides without modifying user config. This is useful for teams that want shared rtk settings (e.g. hook exclusions, filter directories) checked into their repo.RepoConfigstruct with allowlisted sections:[hooks],[filters]find_repo_config_from()walks up directories, stopping at.gitboundaryConfig::load_from_dir()loads user config then merges repo-level overridesshow_config()now displays user path, repo path, and effective merged configtracking,display,telemetry,limits) are ignored in.rtk.tomlExample
.rtk.tomlTesting
We've been using this internally for ~1 week across multiple repositories to success. It's been quite convenient.
Naming
Names were not chosen specially, open to other opinions 😄
🤖 Generated with Claude Code