Skip to main content

Kitaru post-import insights

Generate evidence-backed insight cards from imported Kitaru sessions. This distribution provides two independently selectable analyzers. Both profile every selected session and build deterministic candidates; the OpenAI analyzer then uses bounded analyst and editor calls to select candidates and write their descriptions.

Catalog name Entrypoint in kitaru_post_import_insights.analyzer Required configuration
kitaru/post-import-insights analyze_post_import_sessions None
kitaru/openai-post-import-insights analyze_openai_post_import_sessions OpenAI connection supplying OPENAI_API_KEY; defaults to gpt-5.6-luna with low reasoning effort and accepts an optional model override

Both entrypoints accept a list of session UUIDs for one agent and import, fetch each session with its nodes through KitaruAPIClient, and return list[InsightInput] for the task runner to persist. Each fetched trace is processed and released before the next fetch. Select either analyzer or both for an import. Each invocation persists its own cards; matching candidate names do not replace another analyzer's results.

The API client uses KITARU_API_URL and KITARU_API_TOKEN. Both analyzers accept agent_name for display context. The deterministic analyzer does not accept a model parameter or call OpenAI. The OpenAI analyzer uses gpt-5.6-luna with low reasoning effort when its model parameter is omitted; callers can override that parameter with a compatible model available to their OpenAI project. It fails when its credential is missing.

Install kitaru-post-import-insights for deterministic analysis, or kitaru-post-import-insights[openai] for OpenAI generation. The default catalog selects the corresponding requirement for each analyzer. The package does not depend on Langfuse or send insight-generation telemetry to it.

Release context

The exact kitaru==0.25.0+dev dependency requires the unreleased analyzer contract in PR #988: analyzer tasks pass session UUIDs, and the plugin fetches normalized sessions through the SDK. Replace the development pin with the compatible published core release floor during release preparation. This package must not be published while the development pin remains.

Licensed under Apache-2.0.

Investigation button labels

New cards persist cta_label beside investigation_prompt in metadata["kitaru.insights/v1"]. Both analyzers use a reviewed finding-type catalog, such as "Investigate tool retries" and "Investigate session duration", with "Investigate this finding" for unknown finding types. Labels describe the investigation topic, use Investigate [topic], and stay within 40 characters. No additional model requests are made.

The field is optional for historical records and accepts nonblank strings up to 40 characters. Consumers should render it as text and fall back to "Investigate this finding" when the label is missing or unusable. The existing investigation_prompt remains unchanged. A missing prompt should disable the action. Frontend wiring is separate from this backend contract. Existing stored labels are not rewritten. Older strict metadata readers reject the new field, so update any independently deployed readers before enabling new writers; retain reader compatibility on rollback.

Metadata

Release files for kitaru-post-import-insights 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kitaru-post-import-insights 0.1.0
File Size Uploaded
kitaru_post_import_insights-0.1.0.tar.gz 53.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kitaru-post-import-insights 0.1.0
File Interpreter ABI Platform
kitaru_post_import_insights-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 108.3 kB

Release files / kitaru_post_import_insights-0.1.0.tar.gz

Download URL kitaru_post_import_insights-0.1.0.tar.gz
Size 53.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6913f4b7a7b86e8981ffc30562338788a5d7ebc8edebfe59206bd79a5aa841f7
BLAKE2b-256 checksum
How to use checksums
fb7e7f8c75b764e17dcf63416f420089284e8d5cdf9c3b36452cc84910c54476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release files / kitaru_post_import_insights-0.1.0-py3-none-any.whl

Download URL kitaru_post_import_insights-0.1.0-py3-none-any.whl
Size 55.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a05531b64648660e97197b224d1ef8b0495dd33d604d7e15c9d50e121a7ee787
BLAKE2b-256 checksum
How to use checksums
31c1dccc83ecda019ecf23953198d9b6a6a1d78a8ce6f38056a78942f9de6d96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page