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
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
puenteo status
puenteo list -n 20 --json
puenteo list --provider claude,grok --cwd ~/dev/myapp
puenteo show <id> --last 40
puenteo search "topic" --json
puenteo pull <id> --query "topic" --mode query --max-chars 8000
puenteo export <id> -f md -o chat.md
puenteo export <id> -f pdf -o chat.pdf
puenteo export <id> -f html|json|zip|csv|xml|yaml -o …
puenteo export <id> -f all -o ./out/
Short alias after install: pto (same as puenteo).
<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
Built Distribution
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 puenteo-0.4.0.tar.gz.
File metadata
- Download URL: puenteo-0.4.0.tar.gz
- Upload date:
- Size: 37.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e732f566d4a911a8723b00109288e00fb0d13ed00bfcaecc0647e1d9d659735
|
|
| MD5 |
e8df499967eb78c2bc0a2c99a5ee0754
|
|
| BLAKE2b-256 |
27887c4abdc8b057fec01018bb6c218cc9654e1e4c0826d7ab324612478ed0bc
|
File details
Details for the file puenteo-0.4.0-py3-none-any.whl.
File metadata
- Download URL: puenteo-0.4.0-py3-none-any.whl
- Upload date:
- Size: 44.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3a48e206d47a6806bca93eb415d84eb201f5c18c80ae7a3be2b370dd87481d5
|
|
| MD5 |
5d3b15909112c514fe3749ef4b650c4a
|
|
| BLAKE2b-256 |
f5489265c23be2639ab43546f45bb3d9a1f2daf7a42a635d295f53441c0df22b
|