Skip to main content

Kitaru post-import insights

Generate evidence-backed insight cards from imported Kitaru sessions. This distribution provides three independently selectable analyzers. The first two 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. The session findings analyzer instead sends the sessions themselves to OpenAI: a reader writes each problem it notices as a yes/no check, the Decisions API verifies every check on every session, and a merge step groups the verified checks into findings.

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
kitaru/openai-session-findings analyze_session_findings in kitaru_post_import_insights.session_findings OpenAI connection supplying OPENAI_API_KEY with Decisions API access; accepts optional context, model (default gpt-5.6-luna), and decisions_model (default gpt-6-luna)

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.

Recorded input and activity

Language cards detect literal markers in selected text. A recorded user role does not prove that text came from a customer: some harnesses put agent policy in user-role messages. Importers that know the customer input should set input_text_selector on both the session and each relevant LLM node. For example, /messages/1/content selects the second message's content in a messages array. Choose selectors for the actual trace structure and preserve later customer turns; setting only the session selector leaves node input histories available to the profiler.

Tool activity counts separate tool nodes when present in a session. Otherwise, it counts explicit tool_call parts in assistant output messages, accepting a message, a message list, or a messages container. When this fallback contributes requests, the distribution is labeled as requests and states that execution is unverified. Input histories are not counted, and missing, unsupported, or incompletely inspected request payloads are excluded with a coverage caveat. Zero counts mean no recorded requests, not proof of no tool use. Tool error, retry, and result analysis still requires separate tool nodes.

The model-mix card requires multiple recorded model identifiers. It prefers the served model field and falls back to the requested model field; different identifiers can refer to the same model.

Uniform activity and duration distributions are not insight candidates by themselves. Concrete findings such as failures and retries remain eligible even when every session exhibits them. When no candidates qualify, either analyzer returns no cards.

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.4.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.4.0
File Size Uploaded Provenance Actions
kitaru_post_import_insights-0.4.0.tar.gz 60.5 kB With provenance Details for kitaru_post_import_insights-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 124.4 kB

Release files / kitaru_post_import_insights-0.4.0.tar.gz

Download URL kitaru_post_import_insights-0.4.0.tar.gz
Size 60.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4604f4e468eaba523543907b92b86da944cacb223aaa3abaa62be7aa5291db79
BLAKE2b-256 checksum
How to use checksums
edbd9d098aa8ee234c87883d3360dc69a582a4410ede26ab59f05d70c114e8b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

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

Download URL kitaru_post_import_insights-0.4.0-py3-none-any.whl
Size 63.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2208be1ea012c8f2046ef60e7be683d67d50f63d1b30bf946b8e3cccf23d6a0
BLAKE2b-256 checksum
How to use checksums
970ff2071ffcb1819c45179028759b7f44be9994a59c7de05857c59db2b0e524
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 3, 2026.

Transparency log

Security for kitaru-post-import-insights 0.4.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kitaru_post_import_insights-0.4.0.tar.gz

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 Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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