API Stability
Kirak follows semantic versioning. From 1.0.0, a minor or patch release does not rename, remove or change the behaviour of anything in the public API; that waits for the next major version.
What is public
Section titled “What is public”The public API is what these docs describe:
- The
kirakpackage’s documented functions, classes, methods and decorators, at the import path the docs use (for examplefrom kirak import user_context,from kirak.core.context import as_system,kirak.mcp("<name>").tool). - The extension points for custom providers and modules: the provider base classes, the
register_providerfunctions and entry-point groups (Adding a Provider), the documented helpers on those base classes (for examplePaymentProvider.claim_completion), and the conformance checkkirak.core.providers.provider_problems/assert_provider_conforms. - The file formats and their JSON Schemas:
kirak.json(andkirak.local.json),models/,agents/,mcp/and the tools map. - The HTTP routes Kirak serves, with their request and response shapes (HTTP API Reference).
- The CLI commands, their options and their
--jsonoutput (CLI).kirak modules --jsoncarries acatalog_formatnumber that changes when its shape does. - Error codes and problem codes (Problem Codes).
- Hook names and the payloads hooks receive (Hooks & Events).
What is internal
Section titled “What is internal”Anything else under kirak.* is internal, even when its name has no leading underscore, and may
change in any release. That includes the Python API behind the public files and commands, for
example:
| Internal | Public way to get the same thing |
|---|---|
kirak.catalog Python functions and dataclasses (OperationSpec, ParamSpec, …) |
kirak modules --json, kirak providers --json, kirak catalog --json |
kirak.core.tool_declarations, kirak.core.operation_refs, kirak.core.param_check |
The tools map in agent and MCP files |
kirak.core.model_schemas, kirak.core.route_operation |
/docs and openapi.json |
kirak.core.access_levels |
The access key of agent and MCP files |
kirak.validation Python functions |
kirak validate --json, kirak mcp inspect --json |
kirak.ai.agent_definition, kirak.ai.mcp_toolsets |
The agent file format |
The configure_* functions in kirak.core.base_module |
The matching kirak.json keys (hook_timeout_seconds, log_path, …) |
kirak.auth.operations.get_current_user.resolve_caller / require_access |
kirak.Caller and kirak.auth.requires(level) in a custom route (Access Control) |
Internal modules say so in their module docstring.