Locate and read local code-agent thread files
Project description
xURL
xURL is a client for AI agent URLs.
Also known as Xuanwo's URL.
Features
- Multi-agent thread resolution:
Amp
Codex
Claude
Gemini
Pi
OpenCode
- Unified URI scheme:
agents://<provider>/<thread_path>is the primary format. - Legacy provider URIs (
codex://...,claude://..., etc.) are still accepted for compatibility. - Default output is timeline markdown with user/assistant messages and compact markers.
--rawoutputs raw thread records.--listoutputs subagent status aggregation for providers that support subagent transcripts.- Subagent markdown views print full parent/subagent URIs in
agents://...format. - Non-fatal diagnostics are kept internal; only fatal errors are printed to
stderr. - Automatically respects official environment variables and default local data roots for each supported agent.
Install
Install from npm and run directly with npx:
npx @xuanwo/xurl --help
Or install globally via npm:
npm install -g @xuanwo/xurl
xurl --help
Install as a Codex skill:
npx skills add Xuanwo/xurl
URL Format
Primary URI format:
agents://<provider>/<thread_path>
ASCII breakdown:
agents://codex/019c871c-b1f9-7f60-9c4f-87ed09f13592/019c87fb-38b9-7843-92b1-832f02598495
^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
scheme provider thread_path (provider-specific: main thread, optional child thread)
Agents
Amp
- Supported URIs:
agents://amp/<thread_id>- legacy:
amp://<thread_id>
- Thread id format:
T-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- Resolution:
XDG_DATA_HOME/amp/threads/<thread_id>.json- fallback:
~/.local/share/amp/threads/<thread_id>.json
- Example:
xurl agents://amp/T-019c0797-c402-7389-bd80-d785c98df295
Codex
- Supported URIs:
agents://codex/<session_id>agents://codex/threads/<session_id>agents://codex/<main_session_id>/<agent_id>- legacy:
codex://<session_id>,codex://threads/<session_id>,codex://<main_session_id>/<agent_id>
- Subagent modes:
- Aggregate:
xurl agents://codex/<main_session_id> --list - Drill-down:
xurl agents://codex/<main_session_id>/<agent_id>
- Aggregate:
- Resolution order:
- SQLite thread index under
CODEX_HOME(state_<version>.sqlitefirst, thenstate.sqlite) viathreads(id, rollout_path, archived). - Filesystem fallback under
sessions/andarchived_sessions/forrollout-*.jsonl.
- SQLite thread index under
- Examples:
xurl agents://codex/019c871c-b1f9-7f60-9c4f-87ed09f13592
xurl agents://codex/threads/019c871c-b1f9-7f60-9c4f-87ed09f13592
xurl agents://codex/019c871c-b1f9-7f60-9c4f-87ed09f13592 --list
xurl agents://codex/019c871c-b1f9-7f60-9c4f-87ed09f13592/019c87fb-38b9-7843-92b1-832f02598495
Claude
- Supported URIs:
agents://claude/<session_id>agents://claude/<main_session_id>/<agent_id>- legacy:
claude://<session_id>,claude://<main_session_id>/<agent_id>
- Subagent modes:
- Aggregate:
xurl agents://claude/<main_session_id> --list - Drill-down:
xurl agents://claude/<main_session_id>/<agent_id>
- Aggregate:
- Example:
xurl agents://claude/2823d1df-720a-4c31-ac55-ae8ba726721f
xurl agents://claude/2823d1df-720a-4c31-ac55-ae8ba726721f --list
xurl agents://claude/2823d1df-720a-4c31-ac55-ae8ba726721f/acompact-69d537
OpenCode
- Supported URIs:
agents://opencode/<session_id>- legacy:
opencode://<session_id>
- Example:
xurl agents://opencode/ses_43a90e3adffejRgrTdlJa48CtE
Gemini
- Supported URI:
agents://gemini/<session_id>- legacy:
gemini://<session_id>
- Session id format:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- Resolution:
GEMINI_CLI_HOME/.gemini/tmp/*/chats/session-*.json- fallback:
~/.gemini/tmp/*/chats/session-*.json
- Example:
xurl agents://gemini/29d207db-ca7e-40ba-87f7-e14c9de60613
Pi
- Supported URIs:
agents://pi/<session_id>agents://pi/<session_id>/<entry_id>- legacy:
pi://<session_id>,pi://<session_id>/<entry_id>
- Session id format:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- Resolution:
PI_CODING_AGENT_DIR/sessions/**/*.jsonl- fallback:
~/.pi/agent/sessions/**/*.jsonl
- Rendering:
agents://pi/<session_id>renders the latest leaf branch in the session tree.agents://pi/<session_id>/<entry_id>renders the branch ending at the specified entry id.agents://pi/<session_id> --listlists all entries and marks leaf entries that are good drill-down targets.
- Example:
xurl agents://pi/12cb4c19-2774-4de4-a0d0-9fa32fbae29f
xurl agents://pi/12cb4c19-2774-4de4-a0d0-9fa32fbae29f/d1b2c3d4
xurl agents://pi/12cb4c19-2774-4de4-a0d0-9fa32fbae29f --list
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xuanwo_xurl-0.0.10.tar.gz.
File metadata
- Download URL: xuanwo_xurl-0.0.10.tar.gz
- Upload date:
- Size: 112.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63b353ea47e69ab74d41d5540e7f5589cd6ced7852f2bd302efdbf4f8b05ee17
|
|
| MD5 |
1ab4fc15cabda7e2ba2c3659079972a3
|
|
| BLAKE2b-256 |
63507e39945270b193d1f5eb3bc258bbb8f5d2a299975e8d8be4c3b68965311d
|
Provenance
The following attestation bundles were made for xuanwo_xurl-0.0.10.tar.gz:
Publisher:
pypi-publish.yml on Xuanwo/xurl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xuanwo_xurl-0.0.10.tar.gz -
Subject digest:
63b353ea47e69ab74d41d5540e7f5589cd6ced7852f2bd302efdbf4f8b05ee17 - Sigstore transparency entry: 983444713
- Sigstore integration time:
-
Permalink:
Xuanwo/xurl@457ad19ea8d00b06d63cd38c3e372132c869acab -
Branch / Tag:
refs/tags/v0.0.10 - Owner: https://github.com/Xuanwo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@457ad19ea8d00b06d63cd38c3e372132c869acab -
Trigger Event:
push
-
Statement type:
File details
Details for the file xuanwo_xurl-0.0.10-py3-none-win_amd64.whl.
File metadata
- Download URL: xuanwo_xurl-0.0.10-py3-none-win_amd64.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8a8c588784e0b787db8b16d7ba467cd7a0dbf2b8726f222522897bb9eacb55f
|
|
| MD5 |
c645da59cb2eb8d3e5c0eb862ca1ab71
|
|
| BLAKE2b-256 |
7647622144b85ec5eed9c8dc3cea5809cee12a101eca5d3c33ba0f6c1d4da2e7
|
Provenance
The following attestation bundles were made for xuanwo_xurl-0.0.10-py3-none-win_amd64.whl:
Publisher:
pypi-publish.yml on Xuanwo/xurl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xuanwo_xurl-0.0.10-py3-none-win_amd64.whl -
Subject digest:
d8a8c588784e0b787db8b16d7ba467cd7a0dbf2b8726f222522897bb9eacb55f - Sigstore transparency entry: 983444740
- Sigstore integration time:
-
Permalink:
Xuanwo/xurl@457ad19ea8d00b06d63cd38c3e372132c869acab -
Branch / Tag:
refs/tags/v0.0.10 - Owner: https://github.com/Xuanwo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@457ad19ea8d00b06d63cd38c3e372132c869acab -
Trigger Event:
push
-
Statement type:
File details
Details for the file xuanwo_xurl-0.0.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: xuanwo_xurl-0.0.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6374f7e1323f1cff537127428ae8902856f88a48f20a24473529a580440d8432
|
|
| MD5 |
47d08d92d0db2962d3fdeb4f95a073c9
|
|
| BLAKE2b-256 |
da824f9912d51a24b11e686a1a4376bca2ad8c5e999e3107df1434330dd3e37f
|
Provenance
The following attestation bundles were made for xuanwo_xurl-0.0.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
pypi-publish.yml on Xuanwo/xurl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xuanwo_xurl-0.0.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
6374f7e1323f1cff537127428ae8902856f88a48f20a24473529a580440d8432 - Sigstore transparency entry: 983444784
- Sigstore integration time:
-
Permalink:
Xuanwo/xurl@457ad19ea8d00b06d63cd38c3e372132c869acab -
Branch / Tag:
refs/tags/v0.0.10 - Owner: https://github.com/Xuanwo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@457ad19ea8d00b06d63cd38c3e372132c869acab -
Trigger Event:
push
-
Statement type:
File details
Details for the file xuanwo_xurl-0.0.10-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: xuanwo_xurl-0.0.10-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11a751122bb57522823a573833ce6d0540c57787236058a63751ed386d838504
|
|
| MD5 |
32fc56c07bf795b1415d18354cc6e92d
|
|
| BLAKE2b-256 |
e5c2f2c79ebd2417dd31dcc631edd216577c1f04828b44663b461600833a74d5
|
Provenance
The following attestation bundles were made for xuanwo_xurl-0.0.10-py3-none-macosx_11_0_arm64.whl:
Publisher:
pypi-publish.yml on Xuanwo/xurl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
xuanwo_xurl-0.0.10-py3-none-macosx_11_0_arm64.whl -
Subject digest:
11a751122bb57522823a573833ce6d0540c57787236058a63751ed386d838504 - Sigstore transparency entry: 983444762
- Sigstore integration time:
-
Permalink:
Xuanwo/xurl@457ad19ea8d00b06d63cd38c3e372132c869acab -
Branch / Tag:
refs/tags/v0.0.10 - Owner: https://github.com/Xuanwo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@457ad19ea8d00b06d63cd38c3e372132c869acab -
Trigger Event:
push
-
Statement type: