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.0.tar.gz (32.3 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.0.tar.gz.

File metadata

File hashes

Hashes for concinno_skills_session_search-0.2.0.tar.gz
Algorithm Hash digest
SHA256 06df5e85585fb41344a914f8d063733e26737ba29bb96b75ef9095f88dc02ca9
MD5 140271bdf7241ec043040676acf5e532
BLAKE2b-256 0a422ffefc19bbff7c70495e82d9713c5ffd3ab20351ef3af28bb44f063c0c56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for concinno_skills_session_search-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7db6361e98d1eac2a1fdd5e583fd95a3542b8000e59e0758364a687245959f8b
MD5 a2c374504a262e150baaff9e7b9d0b63
BLAKE2b-256 2e4bd7ab086eb80b5faa7c58352f929d227bc22fd6f5c87667065c5f23939b99

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