Skip to main content

Concinno's cross-session search — SQLite FTS5 index over past Claude Code session transcripts with optional Haiku-generated summaries, lifecycle hooks, and a CLI.

Project description

concinno-skills-session-search

Cross-session search for the Concinno agent. A long-running agent forgets prior sessions because each Claude Code transcript is isolated. This sub-package gives the agent a queryable SQLite FTS5 index over its own past sessions plus optional Haiku-generated summaries, so it can answer "did we already debug this?" / "what did the last KILL 10 wave decide?" / "where did we put the audit plan?" inside one tool-use round.

Install

pip install concinno-skills-session-search                    # core
pip install 'concinno-skills-session-search[anthropic]'       # + Haiku summaries

The core install is stdlib-onlysqlite3 ships with CPython. The anthropic SDK is optional; without it, the summariser falls back to a truncate-first-N-chars heuristic so the import path never hard-fails.

Quick start

from concinno_skills_session_search import SessionIndex

idx = SessionIndex()  # ~/.concinno/session_search.sqlite by default
idx.index_session(
    session_id="2026-04-28-W4-fast-followers",
    transcript_text="we shipped HP4 cross-session search ...",
    started_at=1714305600.0,
    ended_at=1714312800.0,
)
for hit in idx.search("HP4 cross-session"):
    print(hit.session_id, hit.summary[:120])

Lifecycle wiring

When Concinno main >=4.6.0 is installed, the three lifecycle hooks run automatically:

  • on_session_start — read-only no-op (the agent reads on demand).
  • on_stop — index this session's transcript with a best-effort Haiku summary; ImportError / API errors are swallowed.
  • on_session_endidx.prune(days=90) enforces 90-day retention.

See concinno.hooks.on_session_start / on_stop for the wiring site.

CLI

concinno-session-search --query "audit plan" --limit 5
concinno-session-search --count
concinno-session-search --prune-days 90
concinno-session-search --reindex --session-id S1 --transcript-file t.txt

--format=json is supported on every subcommand.

Environment

Variable Purpose
CONCINNO_SESSION_SEARCH_DB Override ~/.concinno/session_search.sqlite.
ANTHROPIC_API_KEY Read by the optional Haiku summariser.

License

AGPL-3.0-or-later. Copyright (C) 2026 Chen Syuan Wang (王晨宣 / AI King).

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

concinno_skills_session_search-0.2.1.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file concinno_skills_session_search-0.2.1.tar.gz.

File metadata

File hashes

Hashes for concinno_skills_session_search-0.2.1.tar.gz
Algorithm Hash digest
SHA256 96ee25b8d0da529d62d71d8487b1f0538e708a042dde75e95ba36bcf6af2a1d2
MD5 9d663a18cb3e75bfe0702d9482480102
BLAKE2b-256 68ff837b6503942a863b8ee648fb823255739ab8f35b70edb8f29e2674bb4b41

See more details on using hashes here.

File details

Details for the file concinno_skills_session_search-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for concinno_skills_session_search-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d4b86afe47a3dec4372b824fd8d474f01af0e0871d25cd16efb78ee0a1ad818
MD5 daea0104e02bb7409f83d84eb3089793
BLAKE2b-256 5cb3399b3e1ad1b1e7108c90d6c30f350b65df2f9427e6119ea98f26dba683f4

See more details on using hashes here.

Supported by

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