Skip to main content

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 build --session <session-id> [--include-sub]
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
  • locate resolves an id (with or without sess_ prefix, prefix match allowed) or a path, detects the format, and prints metadata, lock liveness, and derived sessions.
  • outline segments a transcript into turns with start/end line numbers, per-turn tool usage, credits, sub-agent dispatches, and compaction/tombstone markers.
  • build creates a disposable TF-IDF index (ASCII words + CJK bigrams) under .tmp/session-index/<name>/ in the current directory.
  • search ranks chunks by cosine similarity; every hit carries file:lineStart-lineEnd so the caller can read exactly the lines it needs.
  • clean removes 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

kiro_session_index-0.1.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

kiro_session_index-0.1.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file kiro_session_index-0.1.0.tar.gz.

File metadata

  • Download URL: kiro_session_index-0.1.0.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for kiro_session_index-0.1.0.tar.gz
Algorithm Hash digest
SHA256 44f95b6b010b1b384ff7617474d16da63dbfabb8aef54cf61293da7b7ff53400
MD5 e6dde9eec57229fba8168a3ead09a73e
BLAKE2b-256 436acc39ca72ba1666dc2a7fa78000b85cb9bdf974e9a03c7d2d1cfa42b47523

See more details on using hashes here.

File details

Details for the file kiro_session_index-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kiro_session_index-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac84132135435812f74c85ff15179976037ffdddb8b042f173bda8bb802bc0e9
MD5 11485160cfaaabf951058cc6d2fb7795
BLAKE2b-256 258520fbbc9e5ea950181d3946c82c842037f0a776f34eaf5d4ed5d7cc810214

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page