Conversation
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.
Merges delegated roles and Auto-routing profiles into one canonical store: a directory of Markdown agent-definition files with YAML-style frontmatter (
stateDir()/agents/*.md), matching the.claude/agentsformat, plus one editor for both.Store (1f77d99)
description/model/effort/fast/routing, body = delegation preamble. Unknown frontmatter (e.g.tools:from imported Claude definitions) is preserved byte-for-byte through every rewrite; no YAML dependency.routing.jsonholds the Auto globals (defaultAuto, router, fallback, rules, timeout). Auto profiles are now derived: any agent with a description androuting != falseis routable, so a role and its routing profile can no longer drift apart.roles.json+auto-model.json(staged dir + single rename, concurrent-safe); legacy files are never rewritten, so an older installed relay sharing the stateDir keeps working.GET/PATCH /api/agentsandGET/PATCH /api/routing; the four legacy routes (/api/roles,/api/auto-model) stay as compat adapters over the new store, so MCPlist_rolesand cached PWAs keep working.Unified editor (f4e54fd)
RolesSettingsandAutoModelSettings: agent cards (model/effort/fast, routing description, preamble disclosure) with the Auto-routing section below.Import (804bd20)
~/.claude/agentsin the sheet: bounded scan (64 files, 256 KiB cap), symlink/TOCTOU/UTF-8 hardening, per-name outcomes, explicit overwrite. Imported files keep their bytes exactly; native model aliases (haiku) surface as picker-validation errors on the card instead of importing blind.yarn verify: 162 test files, 1336 tests.🤖 Generated with Claude Code