Repository navigation
feat: subagent configuration management - #21
Merged
Merged
Conversation
Claude discovers subagents from an agents/ directory, so lore now links <name>.md files from their source repo into ~/.agents/agents/ and fans them out to every registered account, or to a single one with --account. init, init --account and accounts sync ensure each account's agents/ is a real directory holding a re-link per shared agent. Real files already there are never migrated or overwritten, and a symlinked agents/ is left alone. The relink/unlink primitives in wire.rs are generalised over the account subdirectory so skills and agents share one implementation. Refs RJ-134 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Franco RATOVOSON <jean.franco.ratovoson@gmail.com>
Add a Shared agents: section and an Agents: sub-section under each account. Names are shown without .md, broken links are flagged, and shared re-links are not repeated under accounts. Real .md files in an account's agents/ are the user's own and are never listed. Refs RJ-134 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Franco RATOVOSON <jean.franco.ratovoson@gmail.com>
update <name> now also resolves agents (lookup order: skill, behavior, agent) and relinks to $PWD/<name>.md or --path. update --all scans ~/.agents/agents/ for broken links. Agent sources must be files, so the directory check becomes a per-kind file-vs-directory check. Refs RJ-134 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Franco RATOVOSON <jean.franco.ratovoson@gmail.com>
Describe agent add/remove in the manual, and extend init, accounts sync, update, update --all, list and FILES to cover agents. Refs RJ-134 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Franco RATOVOSON <jean.franco.ratovoson@gmail.com>
The agent add/remove feature changed how accounts are wired, listed and updated, so the corpus was stale. Add a feature doc for agent add/remove and sync the accounts, list, update, wire, init, config and cli docs with the new agents/ directory, Kind::Agent and is_live_file. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Franco RATOVOSON <jean.franco.ratovoson@gmail.com>
A user-symlinked ~/.claude-<account>/agents/ is left alone by wiring, but agent add/remove followed it: a scoped add could land in the shared pool and a scoped remove could delete the shared link, breaking other accounts' re-links. Scoped add/remove now fail before touching anything, and the shared fan-out warns and skips the account. Refs RJ-134 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Franco RATOVOSON <jean.franco.ratovoson@gmail.com>
Scoped agent add/remove now refuse a user-symlinked account agents/ directory and shared fan-out warns and skips it (2baa7f9). The docs still described the old write-through behavior, so record the guard, why it lives in the agent wrappers rather than the shared primitives, and why scoped commands fail while fan-out only skips. Refs RJ-134 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Franco RATOVOSON <jean.franco.ratovoson@gmail.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.
No description provided.