Skip to content

feat: add resolve-config tool and cap gadgets per response#280

Merged
zbigniewsobiecki merged 1 commit intodevfrom
feat/resolve-config-tool
Feb 16, 2026
Merged

feat: add resolve-config tool and cap gadgets per response#280
zbigniewsobiecki merged 1 commit intodevfrom
feat/resolve-config-tool

Conversation

@zbigniewsobiecki
Copy link
Copy Markdown
Member

Summary

  • New 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.
  • Cap max gadgets per response: Adds MAX_GADGETS_PER_RESPONSE = 25 to the builder factory via withMaxGadgetsPerResponse(), preventing LLMs from overwhelming tool pipelines.
  • Drizzle migration journal: Includes the migration metadata file (_journal.json) that was previously untracked.

Usage

# Full agent config resolution
npx tsx tools/resolve-config.ts car-dealership review

# Project-only config (no agent-specific resolution)
npx tsx tools/resolve-config.ts car-dealership

Test plan

  • npm run lint passes
  • npm run typecheck passes
  • npm test passes (pre-push hook)
  • Verified tool output against live database for car-dealership/review

🤖 Generated with Claude Code

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>
@zbigniewsobiecki zbigniewsobiecki merged commit ee66f77 into dev Feb 16, 2026
4 checks passed
@zbigniewsobiecki zbigniewsobiecki deleted the feat/resolve-config-tool branch February 16, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant