| name | xurl |
| description | Use xurl to read, discover, and write AI agent conversations through agents:// URIs. |
When to Use
- User gives
agents://... URI.
- User gives shorthand URI like
codex/... or codex?....
- User asks to list/search provider threads.
- User asks to query role-scoped threads like
agents://codex/reviewer.
- User asks to read or summarize a conversation.
- User asks to discover child targets before drill-down.
- User asks to start or continue conversations for providers.
Core Workflows
1) Query
List latest provider threads:
uvx --from xuanwo-xurl xurl agents://codex
uvx --from xuanwo-xurl xurl codex
Keyword query with optional limit (default 10):
uvx --from xuanwo-xurl xurl 'agents://codex?q=spawn_agent'
uvx --from xuanwo-xurl xurl 'agents://claude?q=agent&limit=5'
Role-scoped query (session-first, role-fallback):
uvx --from xuanwo-xurl xurl agents://codex/reviewer
uvx --from xuanwo-xurl xurl codex/reviewer
2) Read
uvx --from xuanwo-xurl xurl agents://codex/<conversation_id>
uvx --from xuanwo-xurl xurl codex/<conversation_id>
3) Discover
uvx --from xuanwo-xurl xurl -I agents://codex/<conversation_id>
Use returned subagents or entries URI for next step.
OpenCode child linkage is validated by sqlite session.parent_id.
3.1) Drill Down Child Thread
uvx --from xuanwo-xurl xurl agents://codex/<main_conversation_id>/<agent_id>
4) Write
Create:
uvx --from xuanwo-xurl xurl agents://codex -d "Start a new conversation"
uvx --from xuanwo-xurl xurl codex -d "Start a new conversation"
Append:
uvx --from xuanwo-xurl xurl agents://codex/<conversation_id> -d "Continue"
Create with query parameters:
uvx --from xuanwo-xurl xurl "agents://codex?cd=%2FUsers%2Falice%2Frepo&add-dir=%2FUsers%2Falice%2Fshared&model=gpt-5" -d "Review this patch"
Create with role URI:
uvx --from xuanwo-xurl xurl agents://codex/reviewer -d "Review this patch"
Payload from file/stdin:
uvx --from xuanwo-xurl xurl agents://codex -d @prompt.txt
cat prompt.md | uvx --from xuanwo-xurl xurl agents://claude -d @-
Help
Help options in case of any issues.
uvx --from xuanwo-xurl xurl --help
Command Reference
- Base form:
uvx --from xuanwo-xurl xurl [OPTIONS] <URI>
-I, --head: frontmatter/discovery only
-d, --data: write payload, repeatable
- text:
-d "hello"
- file:
-d @prompt.txt
- stdin:
-d @-
-o, --output: write command output to file
--head and --data cannot be combined
- multiple
-d values are newline-joined
URI Reference
URI Anatomy (ASCII):
[agents://]<provider>[/<token>[/<child_id>]][?<query>]
|------| |--------| |---------------------------| |------|
optional provider optional path parts query
scheme
Component meanings:
scheme: optional agents:// prefix; omitted form is treated as shorthand
provider: provider name
token: main conversation id or role name
child_id: child/subagent id
query: optional key-value parameters
Token resolution (agents://<provider>/<token>):
- Parse
<token> as session id first.
- If session-id parsing fails, treat
<token> as role.
Common URI patterns:
agents://<provider>: discover recent conversations
agents://<provider>/<conversation_id>: read main conversation
agents://<provider>/<role>: role-scoped thread query or role-based create with -d
agents://<provider>/<conversation_id>/<child_id>: read child/subagent conversation
agents://<provider>?k=v with -d: create
agents://<provider>/<conversation_id> with -d: append
Role create behavior by provider:
codex: supported ([agents.<role>] in ~/.codex/config.toml mapped to --config)
claude: supported (--agent <role>)
opencode: supported (--agent <role>)
amp: returns clear error (non-interactive role create unsupported)
gemini: returns clear error (non-interactive role create unsupported)
pi: returns clear error (role create unsupported)
Query parameters:
q=<keyword>: filter discovery results by keyword. Use when searching conversations by topic.
limit=<n>: cap discovery results (default 10). Use when you want fewer or more results.
<key>=<value>: in write mode (-d), forwarded as --<key> <value> to the provider CLI.
<flag>: in write mode (-d), forwarded as --<flag> to the provider CLI.
Failure Handling
command not found: <agent>
Install the provider CLI, then complete provider authentication before retrying.