feat: add resolve-config tool and cap gadgets per response#280
Merged
zbigniewsobiecki merged 1 commit intodevfrom Feb 16, 2026
Merged
feat: add resolve-config tool and cap gadgets per response#280zbigniewsobiecki merged 1 commit intodevfrom
zbigniewsobiecki merged 1 commit intodevfrom
Conversation
Add tools/resolve-config.ts — a diagnostic CLI that resolves and displays the full effective configuration for any agent in any project/org context, merging all layers (cascade_defaults, global/org/ project agent_configs, project overrides, and org-scoped credentials). Also cap the maximum gadgets per LLM response to 25 via withMaxGadgetsPerResponse in the builder factory, and include the Drizzle migration journal metadata file. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
tools/resolve-config.ts: Diagnostic CLI tool that resolves and displays the full effective configuration for any agent in any project/org context. Merges all configuration layers: cascade_defaults → global agent_configs → org agent_configs → project agent_configs → project row overrides → resolved credentials.MAX_GADGETS_PER_RESPONSE = 25to the builder factory viawithMaxGadgetsPerResponse(), preventing LLMs from overwhelming tool pipelines._journal.json) that was previously untracked.Usage
Test plan
npm run lintpassesnpm run typecheckpassesnpm testpasses (pre-push hook)🤖 Generated with Claude Code