Repository navigation
feat(agents): pick library folders by browsing the environment's filesystem - #124
Conversation
|
Just putting all my manual testing stuff here because I figure thats easier. Bug: when I select a model in the primary/fallback config, the dropdown stays open When I launched this using the PR launch script, it seems to be looking for an agents folder and not finding it, is this expected? I did not add this dir Possible gap: It does not look like the spawn_agent MCP tool has persona functionality built into it. I feel like this is the natural way to tell an agent to spawn a given persona. Is there some other way I should do that? I tried to I think your Personas should also be an optional parameter on spawn_agent so that you can have the agent make peer agents that follow a persona. I feel like thats needed to spawn Crews with personas. I cant disable the built-in agents. Shouldn't I be able to? AFAIK, the artifacts documented in #75 haven't been implemented. I feel like we need to pick a direction on that. |
|
Thanks for the manual pass, Jackson. Working through these in order. Personas on
Fixes queued as a follow-up PR on this stack: the model dropdown staying open after a pick (Base UI radio items default to staying open), on/off for bundled and folder agents, the misleading "Missing" badge on the default
Artifacts: agreed the #75 contracts weren't implemented. Now that #109 landed, we'll bind persona |
…system Adding a library source folder now opens a picker instead of a bare path field. The picker walks the environment's own directory listing through the existing filesystem browse RPC, so it works the same for local, remote, and mobile clients, and it saves the resolved absolute path so a typed ~ never reaches agent-personas.json. Typing or pasting a path in the picker still works. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A configured source folder now yields every agent YAML in its tree, walking subfolders in sorted order and skipping dot-directories such as .git, so a team repository root works as a library source the same way Import → Folder does. The Library sources count reflects the whole tree, and duplicate ids across subfolders still fail the read rather than picking a winner. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
c3a06d9 to
d642bcb
Compare



Adding a library source folder in Settings → Agents → Library sources used a bare path field. That was easy to get wrong because the folder has to exist on the environment's machine, not the device running the client, and a typed
~would never have been expanded by the library configuration.Add folder now opens a folder picker (web dialog, mobile sheet) that walks the environment's own directory listing through the existing filesystem browse RPC, the same server listing the add-project flow uses. It starts at the environment's add-project base directory or home folder, lists subfolders with a parent row, accepts a typed or pasted path, and saves the resolved absolute directory to
agent-personas.jsonthrough the existingsetAgentPersonaLibraryFoldersRPC. Both pickers are J5-owned files; no upstream file changes.Validation
Merge order
Part of GitHub stack
120, on top of #118: #75 → #76 → #78 → #79 → #80 → #81 → #83 → #82 → #85 → #118 → this PR.🤖 Generated with Claude Code
Second commit: configured source folders are read recursively (sorted walk, dot-directories skipped, depth-capped), so choosing a repository root in the picker picks up every agent YAML beneath it, matching Import → Folder. The Library sources count covers the whole tree.