kiro-session-index
Locate, outline, index and search Kiro agent session logs. Standard library only, no network access, sessions are opened read-only.
Supports both on-disk formats under ~/.kiro/sessions/:
- directory format (Kiro IDE / Kiro CLI
--agent-engine=v3):session.json+messages.jsonl+sub-executions/ - three-file format (Kiro CLI default engine):
cli/<id>.json+<id>.jsonl+<id>.lock
Usage
uvx kiro-session-index locate <session-id> [--children]
uvx kiro-session-index outline <session-id> [--json]
uvx kiro-session-index list [--workspace <path>] [--since-days N]
uvx kiro-session-index build --session <session-id> [--include-sub]
uvx kiro-session-index build --workspace <path> [--since-days N] # all sessions of a workspace
uvx kiro-session-index build <files-or-dirs...> # index a codebase
uvx kiro-session-index search "query" --index <dir> [--top N]
uvx kiro-session-index clean --index <dir> # always clean up
locateresolves an id (with or withoutsess_prefix, prefix match allowed) or a path, detects the format, and prints metadata, lock liveness, and derived sessions.outlinesegments a transcript into turns with start/end line numbers, per-turn tool usage, credits, sub-agent dispatches, and compaction/tombstone markers.listshows storage areas, or every session of a workspace (dir-formatworkspacePathsplus cli-formatcwd) with sizes and titles.buildcreates a disposable TF-IDF index (ASCII words + CJK bigrams) as SQLite under.tmp/session-index/<name>/in the current directory.--workspaceindexes every session of a workspace incrementally: per-session shards skip unchanged sessions, duplicate copies across buckets are deduplicated (newest wins), and a fully fresh index returns in about a second. Measured worst case: 914 sessions / 640 MB → 72 s cold, ~0.2 s per query.searchranks chunks by cosine similarity, reading only the postings of the query terms; every hit carriesfile:lineStart-lineEndso the caller can read exactly the lines it needs.cleanremoves an index directory, refusing to delete anything it did not create.
Indexes are temporary artifacts. Delete them with clean when the task is done.
Part of kiro-steering-agents; built to back a session-loader sub agent that reads big sessions in an isolated context.
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 kiro_session_index-0.2.0.tar.gz.
File metadata
- Download URL: kiro_session_index-0.2.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b5477cfab2a249cc74597544c0454dacdfa2fb1633058c4fb30e51741b4f50d
|
|
| MD5 |
467e61ae8e24fa6dd490bdd66ad4dd4e
|
|
| BLAKE2b-256 |
565aec0e1b4319019c1c23ed85d19ea7ba78170afc22990cb9b1f8f469249ed6
|
File details
Details for the file kiro_session_index-0.2.0-py3-none-any.whl.
File metadata
- Download URL: kiro_session_index-0.2.0-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec6f83c77ffe95c57d21b7d550bc9d96d46758d32b097ac13c21ee0720e9b106
|
|
| MD5 |
ca3d9b023d62e3c8219fdf4fb0525eb1
|
|
| BLAKE2b-256 |
fc9029dce5e508799d322cca4ed856f8682ca7533bab768842af2df53ea9984a
|