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, cwd="~/dev/myapp"):
print(s.provider, s.session_id[:8], s.title)
t = puenteo.load("019f7a24", include_tools=True)
hits = puenteo.search("gatekeeper dmg", exclude_session="my-current-id")
msgs = puenteo.pull("019f7a24", query="export", mode="query", top_k=15)
print(puenteo.outline("019f7a24"))
puenteo.export_session("019f7a24", fmt="md", output="chat.md")
puenteo.export_session("019f7a24", fmt="md", output="slice.md", query="export")
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
# Discover
puenteo list -n 20 --json
asb list --provider claude,grok --cwd ~/dev/myapp
asb list --since 2026-07-01 --group-by cwd
# Map a session, then pull what matters
asb outline <id>
asb show <id> --last 40
asb show <id> --range 100:120
asb search "topic" --json
asb search "topic" --session <id>
asb search "topic" --exclude-session <my-id> # global search without yourself
asb pull <id> --query "topic" --mode query --top-k 15 --max-chars 8000
asb pull <id> --mode decisions --top-k 15
asb pull <id> --around 500 --radius 5
asb export <id> -f md -o chat.md
asb export <id> --query "topic" -f md -o slice.md
puenteo export <id> -f pdf -o chat.pdf
asb export <id> -f all -o ./out/
<id> = full uuid, unique prefix (e.g. 3627012b), path, or unique title substring.
Agent handoff recipe
puenteo status
puenteo list --cwd ~/dev/myapp
puenteo outline <id>
puenteo pull <id> --mode decisions --top-k 15
puenteo search 'keyword' --session <id>
puenteo pull <id> --around 500
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.5.0.tar.gz.
File metadata
- Download URL: puenteo-0.5.0.tar.gz
- Upload date:
- Size: 45.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fbca156732ba2e729cf6475d726e9557f87d6b9b1e36c6e5b74b659e3de0d7c
|
|
| MD5 |
e58c6cb7319fbf2ef8af027c1093a104
|
|
| BLAKE2b-256 |
229d8116b1fee171f3228020b6cca576b1f8b8a5035f9b271ff3a0700d33fca3
|
File details
Details for the file puenteo-0.5.0-py3-none-any.whl.
File metadata
- Download URL: puenteo-0.5.0-py3-none-any.whl
- Upload date:
- Size: 52.1 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 |
e2c0440f81aecf23cd0ed2bd7a83ce7a6b40bad6a3269fed2457754ce9fcd2ad
|
|
| MD5 |
a8157465cebc9be9438d73020e005836
|
|
| BLAKE2b-256 |
87438086a287b3acb24e367d99b08eafd5a7eb1f5035add062478fdfb205bbe1
|