Locate agent trajectory files on the local machine
Project description
trajectoriz
Locate agent trajectory files on the local machine.
Installation
pip install trajectoriz
Usage
from trajectoriz import (
iter_claude_trajectories,
iter_claude_project_trajectories,
iter_codex_trajectories,
iter_codex_rollout_files,
iter_codex_db_sessions,
iter_pi_trajectories,
iter_cursor_trajectories,
iter_copilot_event_trajectories,
iter_copilot_sessions,
iter_agent_probe_trajectories,
iter_opencode_sessions,
)
# List all Claude Code trajectory files
for path in iter_claude_trajectories():
print(path)
# List Claude trajectories for a specific project
for path in iter_claude_project_trajectories("/path/to/repo"):
print(path)
# List Codex CLI session files
for path in iter_codex_trajectories():
print(path)
# List Codex CLI rollout files
for path in iter_codex_rollout_files():
print(path)
# List Codex sessions from SQLite store (~/.codex/state_5.sqlite)
for session_id, updated_at_ms, first_msg, provider, model, cwd in iter_codex_db_sessions():
print(session_id, first_msg)
# List pi coding agent session files
for path in iter_pi_trajectories():
print(path)
# List Cursor trajectory files
for path in iter_cursor_trajectories():
print(path)
# List Copilot CLI session event JSONL files (~/.copilot/session-state/*/events.jsonl)
for path in iter_copilot_event_trajectories():
print(path)
# List Copilot CLI sessions from SQLite store
for session_id, created_at in iter_copilot_sessions():
print(session_id, created_at)
# List agent_probe session JSONL files (~/.local/share/agent_probe/*/*/*)
for path in iter_agent_probe_trajectories():
print(path)
# List opencode sessions from SQLite store (~/.local/share/opencode/opencode.db)
for session_id, updated_at_ms, model_json, directory, first_prompt in iter_opencode_sessions():
print(session_id, first_prompt)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 trajectoriz-0.6.0-py3-none-any.whl.
File metadata
- Download URL: trajectoriz-0.6.0-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfc458bebbd59ebe55b4e20970b2d4b2bf0ac4853c97690ca6119e2b61f748ac
|
|
| MD5 |
e496c46665b09f03e3d277c8ce71a936
|
|
| BLAKE2b-256 |
7a61ad15f8861b5a0d0cdaea74b32a6c8972065e9c6da3f1724abedf08c17fad
|
Provenance
The following attestation bundles were made for trajectoriz-0.6.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on monperrus/trajectoriz
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trajectoriz-0.6.0-py3-none-any.whl -
Subject digest:
cfc458bebbd59ebe55b4e20970b2d4b2bf0ac4853c97690ca6119e2b61f748ac - Sigstore transparency entry: 1755410835
- Sigstore integration time:
-
Permalink:
monperrus/trajectoriz@894681f5493d2634bae87da7ad2e84f9e5eec457 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/monperrus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@894681f5493d2634bae87da7ad2e84f9e5eec457 -
Trigger Event:
push
-
Statement type: