Skip to main content

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 logo Amp
    • Codex logo Codex
    • Claude logo Claude
    • Gemini logo Gemini
    • Pi logo Pi
    • OpenCode logo 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.
  • --raw outputs raw thread records.
  • --list outputs 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>
  • Resolution order:
    • SQLite thread index under CODEX_HOME (state_<version>.sqlite first, then state.sqlite) via threads(id, rollout_path, archived).
    • Filesystem fallback under sessions/ and archived_sessions/ for rollout-*.jsonl.
  • 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>
  • 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> --list lists 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xuanwo_xurl-0.0.12.tar.gz (112.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

xuanwo_xurl-0.0.12-py3-none-win_amd64.whl (2.0 MB view details)

Uploaded Python 3Windows x86-64

xuanwo_xurl-0.0.12-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

xuanwo_xurl-0.0.12-py3-none-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file xuanwo_xurl-0.0.12.tar.gz.

File metadata

  • Download URL: xuanwo_xurl-0.0.12.tar.gz
  • Upload date:
  • Size: 112.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xuanwo_xurl-0.0.12.tar.gz
Algorithm Hash digest
SHA256 a1ffd7b49a0c9734d46a9aa3e798aed2e357e63d2d21b8cfff9cb1aa1968d6d3
MD5 6be864c2a35f1bd98a07d664136099d6
BLAKE2b-256 38dbe7cb64a4c6e57ed91e6ebc48062946dfa5283c0ee5436b8df53e790dfa9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for xuanwo_xurl-0.0.12.tar.gz:

Publisher: pypi-publish.yml on Xuanwo/xurl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xuanwo_xurl-0.0.12-py3-none-win_amd64.whl.

File metadata

  • Download URL: xuanwo_xurl-0.0.12-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

Hashes for xuanwo_xurl-0.0.12-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 cad6c2a8d9599eb8392712f9a8b44ae4d7d5dac95ef70fad7bdcbe0b5e0fd69a
MD5 fe09babe44dd6c970853e7e4ac2187b8
BLAKE2b-256 1c97b3586296b0085526e4b133cc7d3e3f68eb26841abe041b483dbde390630d

See more details on using hashes here.

Provenance

The following attestation bundles were made for xuanwo_xurl-0.0.12-py3-none-win_amd64.whl:

Publisher: pypi-publish.yml on Xuanwo/xurl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xuanwo_xurl-0.0.12-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xuanwo_xurl-0.0.12-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ecc7b1a10c4156dd062e7caf90bf8a28cda828910c6734456adda59405c897ef
MD5 a13643e608c953fe75095677acdc7667
BLAKE2b-256 cab4e85caf222c271ecf9bc3b552b4f9bcf4cc6834532efacf8e7cff094c218d

See more details on using hashes here.

Provenance

The following attestation bundles were made for xuanwo_xurl-0.0.12-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi-publish.yml on Xuanwo/xurl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xuanwo_xurl-0.0.12-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xuanwo_xurl-0.0.12-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5992a6ce8a271178ec7b938ec46369e17a77487f2a82cc04f5eb83de4bf8290
MD5 c2cda240b4af0cd845080fe0d073cf17
BLAKE2b-256 9c8b174b81cb9b15d1912b8081cabd69c21cf4ec67dd55e7665c0b3fc4b222f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for xuanwo_xurl-0.0.12-py3-none-macosx_11_0_arm64.whl:

Publisher: pypi-publish.yml on Xuanwo/xurl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page