xURL
xURL is a CLI that reads, queries, and writes AI agent conversations through a unified agents:// URI scheme.
Also known as Xuanwo's URL.
What xURL Can Do
xURL gives you one URI scheme (agents://) to read, query, discover, and write conversations across multiple AI agent CLIs.
- Read a conversation as markdown —
xurl agents://codex/<id> - Query threads by provider, keyword, local path, or role —
xurl 'agents://codex?q=refactor' - Discover child targets and metadata before drilling down —
xurl -I agents://codex/<id> - Write to start or continue a conversation —
xurl agents://codex -d "hello"
Providers
Installation
Install as an agent skill:
Or install the standalone CLI:
&&
Quick Start
Ask your agent to summarize a thread:
Please summarize this thread: agents://codex/xxx_thread
Usage
Note: The
agents://scheme prefix is optional —codex/...is equivalent toagents://codex/....
Read
Save output to a file:
Query
By provider:
By local path:
By role:
Query results include reduced thread metadata when available, so you can inspect fields like payload.git.branch without opening each thread individually.
Discover
Frontmatter includes provider metadata flattened into readable key-value lines (e.g. payload.git.branch = ...), and skips oversized instruction-like fields.
Drill down into a discovered child target:
Write
Start a new conversation:
Start with a role URI:
Continue an existing conversation:
Pass extra parameters to the provider CLI via query string:
Command Reference
-I, --head: output frontmatter/discovery info only, including the first provider metadata record flattened into key-value lines when available.-d, --data <DATA>: write payload (repeatable).- text:
-d "hello" - file:
-d @prompt.txt - stdin:
-d @-
- text:
-o, --output <PATH>: write command output to file.
URI Reference
Agents URI
[agents://]<provider>[/<token>[/<child_id>]][?<query>]
|------| |--------| |---------------------------| |------|
optional provider optional path parts query
scheme
scheme: optionalagents://prefix. If omitted,xurltreats input as anagentsURI shorthand.provider: target provider name, such asamp,claude,codex,copilot,cursor,gemini,kimi,opencode,pi.token: main conversation identifier or role name.child_id: child/subagent identifier under a main conversation.query: optional key-value parameters, interpreted by context.
Path-Scoped Query URI
agents:///abs/path[?<query>]
agents://.[?<query>]
agents://./subdir[?<query>]
agents://..[?<query>]
agents://../repo[?<query>]
agents://~[?<query>]
agents://~/repo[?<query>]
agents:///abs/path: canonical local path query form.agents://./agents://./subdir: query relative to the current working directory.agents://../agents://../repo: query relative to the parent of the current working directory.agents://~/agents://~/repo: query relative to the home directory.- path-scoped query always returns a conversation list.
Agents Query
q=<keyword>: filters discovery results by keyword. Use when you want to find conversations by topic.limit=<n>: limits discovery result count (default10). Use when you need a shorter or longer result list.providers=<name[,name...]>: restricts a path-scoped query to selected providers.<key>=<value>: in write mode (-d),xurlforwards as--<key> <value>to the provider CLI.<flag>: in write mode (-d),xurlforwards as--<flag>to the provider CLI.
Examples:
agents://codex?q=spawn_agent&limit=10
agents:///Users/alice/work/xurl?q=refactor&providers=codex,claude
agents://.?q=refactor&providers=codex
agents://codex/<conversation_id>
agents://codex/reviewer
agents://codex?cd=%2FUsers%2Falice%2Frepo&add-dir=%2FUsers%2Falice%2Fshared