You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
890 B
Markdown
15 lines
890 B
Markdown
---
|
|
# claudbg-jupi
|
|
title: Sub-agent file discovery
|
|
status: completed
|
|
type: task
|
|
priority: normal
|
|
created_at: 2026-03-27T19:39:15Z
|
|
updated_at: 2026-03-28T06:07:11Z
|
|
parent: claudbg-mztt
|
|
---
|
|
|
|
Given a session ID, locate its subagents/ directory under ~/.claude/projects/{project-dir}/{session-id}/subagents/. Enumerate agent-{id}.jsonl files and their corresponding .meta.json files. Return AgentRef { agent_id: String, agent_type: Option<String>, session_id: Uuid, file_path: PathBuf }.
|
|
|
|
## Summary of Changes\n\nExtended src/parser/discovery.rs with AgentRef struct, discover_agents_for_session(session_file: &Path) that looks in sibling subagents/ directory, and discover_all_agents() that walks all project dirs. collect_agents_in_dir() helper handles filename parsing (agent-{uuid}.jsonl), reads session_id from first JSONL line, and reads agent_type from agent-{id}.meta.json if present.
|