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.2

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.2
File Size Uploaded
kitaru_post_import_insights-0.1.2.tar.gz 53.2 kB Details

Built distribution (wheel)

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

Total release size: 108.5 kB

Release files / kitaru_post_import_insights-0.1.2.tar.gz

Download URL kitaru_post_import_insights-0.1.2.tar.gz
Size 53.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3d5f30d20220a0ae1c26726bcc36a4ed520e2125d0c1943337dadc00f74f8fa5
BLAKE2b-256 checksum
How to use checksums
bb3243ff6cc8d5d3330fa146ec65ce0f0d44b6709eb4ce0451fb3cba004c8109
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 Oct 8, 2026.

Transparency log

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

Download URL kitaru_post_import_insights-0.1.2-py3-none-any.whl
Size 55.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10c1821969ce4fb7dfaf902cbdddcb0f193ad186844cb66611e57a62b6a8821b
BLAKE2b-256 checksum
How to use checksums
b0d8192fda487c38c63ce0bc42a86420a0917c46f46fe13dae5be5a2e5b24180
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 Oct 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

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