Skip to main content

Puenteo — the bridge between coding agents. List, search, and export Claude/Codex/Grok/Pi sessions to md/html/pdf/json/zip (Python library + CLI).

Project description

puenteo

The bridge between coding agents.

Python library + CLI to discover, search, and export local sessions from Claude Code, Codex, Grok, and Pi — to Markdown, HTML, PDF, JSON, ZIP, CSV, XML, YAML.

Puenteo ← Spanish puente (bridge) + puentear (to bridge / jump across).

Zero runtime dependencies · Python ≥ 3.9

PyPI License: MIT

Install

pip install puenteo
# or
uv add puenteo
# or
pipx install puenteo

From source:

git clone https://github.com/mano7onam/puenteo.git
cd puenteo
python3 -m venv .venv && .venv/bin/pip install -e .

Library

import puenteo

print(puenteo.status())

for s in puenteo.list_sessions(limit=10):
    print(s.provider, s.session_id[:8], s.title)

t = puenteo.load("019f7a24", include_tools=True)
hits = puenteo.search("gatekeeper dmg")
msgs = puenteo.pull("019f7a24", query="export", mode="query")

puenteo.export_session("019f7a24", fmt="md", output="chat.md")
puenteo.export_session("019f7a24", fmt="pdf", output="chat.pdf")
puenteo.export_session("019f7a24", fmt="all", output="./exports/")

data, media_type, filename = puenteo.export_bytes("019f7a24", fmt="html")

CLI

After pip install puenteo three commands point to the same CLI:

Command Notes
puenteo main name
asb short alias (Agent Session Bridge vibe)
pto ultra-short
puenteo status          # same as:
asb status
pto status

puenteo list -n 20 --json
asb list --provider claude,grok --cwd ~/dev/myapp
asb show <id> --last 40
asb search "topic" --json
asb pull <id> --query "topic" --mode query --max-chars 8000
asb export <id> -f md -o chat.md
puenteo export <id> -f pdf -o chat.pdf
asb export <id> -f all -o ./out/

<id> = full uuid, prefix, path, or unique title substring.

Providers

Provider Store
Claude Code ~/.claude/projects/**/*.jsonl
Codex ~/.codex/sessions/**/rollout-*.jsonl
Grok ~/.grok/sessions/**/chat_history.jsonl
Pi ~/.pi/agent/sessions/**/*.jsonl

Export formats

md · txt · html · pdf · json · zip · csv · xml · yaml

Agent skill

./scripts/install_skills.sh

Used by

Terminal Dashboard imports puenteo for chat export (shared parsers, no duplication).

License

MIT · mano7onam/puenteo

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

puenteo-0.4.2.tar.gz (37.5 kB view details)

Uploaded Source

Built Distribution

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

puenteo-0.4.2-py3-none-any.whl (44.9 kB view details)

Uploaded Python 3

File details

Details for the file puenteo-0.4.2.tar.gz.

File metadata

  • Download URL: puenteo-0.4.2.tar.gz
  • Upload date:
  • Size: 37.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for puenteo-0.4.2.tar.gz
Algorithm Hash digest
SHA256 0018fba5668b09c3050ac5233d2e92799305efdab41202e461ea02dd8ce212cb
MD5 326f3df208412ae31361bf574f24034f
BLAKE2b-256 e7b953912d5273e04b61dd71536deefbff345256e551c36ccdd0aa8c6df6fc3a

See more details on using hashes here.

File details

Details for the file puenteo-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: puenteo-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 44.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for puenteo-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b7e5d520266fff1394f2db7a423aa72a1c3cd9cb9d27b2c5574706b623e041ac
MD5 ad996f96846c5e66ae6361d45d589f11
BLAKE2b-256 77a5757e83ec83509bff479be86e4c1bb04fc4b42cc1d51cceef2223b1773cbc

See more details on using hashes here.

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