Skip to main content

Locate and read local code-agent thread files

Project description

xurl

xurl is a Rust CLI and library for locating and reading local code-agent thread files.

Features

  • Multi-agent thread resolution:
    • Amp logo Amp
    • Codex logo Codex
    • Claude logo Claude
    • Gemini logo Gemini
    • Pi logo Pi
    • OpenCode logo OpenCode
  • 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.
    • For Pi, --list outputs session entries with leaf markers and entry URIs.
  • Subagent markdown views always print full parent/subagent URIs (<provider>://<main> and <provider>://<main>/<agent>).
  • 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

npx skills add Xuanwo/xurl

Agents

Amp

  • Supported URI:
    • 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 amp://T-019c0797-c402-7389-bd80-d785c98df295

Codex

  • Supported URIs:
    • codex://<session_id>
    • codex://threads/<session_id>
    • codex://<main_session_id>/<agent_id>
  • Subagent modes:
    • Aggregate: xurl codex://<main_session_id> --list
    • Drill-down: xurl 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 codex://019c871c-b1f9-7f60-9c4f-87ed09f13592
xurl codex://threads/019c871c-b1f9-7f60-9c4f-87ed09f13592
xurl codex://019c871c-b1f9-7f60-9c4f-87ed09f13592 --list
xurl codex://019c871c-b1f9-7f60-9c4f-87ed09f13592/019c87fb-38b9-7843-92b1-832f02598495

Claude

  • Supported URIs:
    • claude://<session_id>
    • claude://<main_session_id>/<agent_id>
  • Subagent modes:
    • Aggregate: xurl claude://<main_session_id> --list
    • Drill-down: xurl claude://<main_session_id>/<agent_id>
  • Example:
xurl claude://2823d1df-720a-4c31-ac55-ae8ba726721f
xurl claude://2823d1df-720a-4c31-ac55-ae8ba726721f --list
xurl claude://2823d1df-720a-4c31-ac55-ae8ba726721f/acompact-69d537

OpenCode

  • Supported URI:
    • opencode://<session_id>
  • Example:
xurl opencode://ses_43a90e3adffejRgrTdlJa48CtE

Gemini

  • Supported URI:
    • 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 gemini://29d207db-ca7e-40ba-87f7-e14c9de60613

Pi

  • Supported URIs:
    • 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:
    • pi://<session_id> renders the latest leaf branch in the session tree.
    • pi://<session_id>/<entry_id> renders the branch ending at the specified entry id.
    • pi://<session_id> --list lists all entries and marks leaf entries that are good drill-down targets.
  • Example:
xurl pi://12cb4c19-2774-4de4-a0d0-9fa32fbae29f
xurl pi://12cb4c19-2774-4de4-a0d0-9fa32fbae29f/d1b2c3d4
xurl 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.8.tar.gz (104.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.8-py3-none-win_amd64.whl (2.0 MB view details)

Uploaded Python 3Windows x86-64

xuanwo_xurl-0.0.8-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.8-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.8.tar.gz.

File metadata

  • Download URL: xuanwo_xurl-0.0.8.tar.gz
  • Upload date:
  • Size: 104.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.8.tar.gz
Algorithm Hash digest
SHA256 6d96fffcdfef29ea8f44e0a9ab55d300e34f0d04889d17dd2fe4decee9db531e
MD5 b94391ae076260e7ae187147130c3f24
BLAKE2b-256 f4c095ee9ca33bde381b7c778af64a65ae7d05e20051450f88590b3de6e8dc68

See more details on using hashes here.

Provenance

The following attestation bundles were made for xuanwo_xurl-0.0.8.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.8-py3-none-win_amd64.whl.

File metadata

  • Download URL: xuanwo_xurl-0.0.8-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.8-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d20c28db422d93f11426cd5126be81f1ab19bdeaa73678cc54a943af44912d75
MD5 9d8be12d1448140fdd48e12965aec61f
BLAKE2b-256 cf9ff25427ef9a00039b7c4218a9217410a3790bbc4b292f2dfa446ede712e8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for xuanwo_xurl-0.0.8-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.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for xuanwo_xurl-0.0.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cecaef0712e0def1cc29852523c38211c746870cc02a5fb30ea7cf7d36d71bf0
MD5 a2db0d8eedfb39b6d0571988cc1f122b
BLAKE2b-256 fc75bbd3355dddd1d563db8a328c1b6f7890e8aec4034fe19a7c718e35b247ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for xuanwo_xurl-0.0.8-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.8-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for xuanwo_xurl-0.0.8-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee9979bf810002491fa1a7bebe279ae7d244618d9c96252b7e0fd4bb59695f7b
MD5 7669e76de5f040a1dc5610088b2b012c
BLAKE2b-256 0eb5dadbda4192405eacb622d794566c0dd5d3c66d6395c9de35d3419db83823

See more details on using hashes here.

Provenance

The following attestation bundles were made for xuanwo_xurl-0.0.8-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