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.
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 incomplete request scans are excluded. Tool error, retry, and result analysis still requires separate tool nodes.
The model-mix card counts 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.
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.
Links
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.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kitaru_post_import_insights-0.2.0.tar.gz | 54.3 kB | With provenance | Details for kitaru_post_import_insights-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kitaru_post_import_insights-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for kitaru_post_import_insights-0.2.0-py3-none-any.whl |
Total release size: 111.5 kB
Release files / kitaru_post_import_insights-0.2.0.tar.gz
| Download URL | kitaru_post_import_insights-0.2.0.tar.gz |
|---|---|
| Size | 54.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
939111eb92dfef769a615fccf867e9d4fe60dae33745acd97e8d3eabb0df3e48
|
|
BLAKE2b-256 checksum How to use checksums |
9a426c7bceca0496951091d9f467437e6338701e3176340860d5ca70c6bbe748
|
| 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 30, 2026.
Transparency logRelease files / kitaru_post_import_insights-0.2.0-py3-none-any.whl
| Download URL | kitaru_post_import_insights-0.2.0-py3-none-any.whl |
|---|---|
| Size | 57.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
057f128ec8e1d641cc040580ced8ba20477c9960218061ee951a0f8b405627f0
|
|
BLAKE2b-256 checksum How to use checksums |
d5d051acaf52c7d08cfccb3af7f8ef63b691b186bbcaf7f4edcfb311a16d37fb
|
| 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 30, 2026.
Transparency logSecurity for kitaru-post-import-insights 0.2.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.
Attestation for kitaru_post_import_insights-0.2.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 Oct 30, 2026.
Transparency logA 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.