kitaru-authoring
Guide for writing Kitaru durable workflows and operational control paths. Use when creating or refactoring Kitaru flows, checkpoints, waits, logging, artifacts, tracked LLM calls, replay/resume/retry flows, KitaruClient usage, CLI commands, MCP operations, or PydanticAI adapter integrations. Triggers on mentions of kitaru, @flow, @checkpoint, kitaru.wait, kitaru.log, kitaru.save, kitaru.load, kitaru.llm, KitaruClient, replay, resume, retry, `kitaru run`, `kitaru executions ...`, MCP tools, `wrap(...)`, or `hitl_tool(...)`. --- # Kitaru Authoring Skill Use this guide when writing or refactoring Kitaru workflows and when choosing which Kitaru surface to use for running, observing, replaying, or controlling those workflows. > **Before building**: If the workflow shape is still fuzzy, suggest the > `kitaru-scoping` skill first. It helps the user decide whether Kitaru is a > fit, where checkpoints and waits belong, and which replay anchors should be > stable before code gets written. ## Mental model Think of a Kitaru flow like a long trip with named save points. - `@flow` is the durable outer boundary. - `@checkpoint` is a replay boundary inside that flow. - `wait()` pauses at the flow level and resumes later with input. - Replay reruns from the top, but checkpoints before the selected replay point return cached outputs instead of doing the work again. - Flows are executed with `.run(...)` or `.deploy(...)`, not by calling the decorated function directly. ```python from kitaru import checkpoint, flow, wait @checkpoint def draft(topic: str) -> str: return f"Draft for {topic}" @flow def review_flow(topic: str) -> str: text = draft(topic) approved = wait(name="approve_draft", question="Approve draft?", schema=bool)
更新日志: Source: GitHub https://github.com/zenml-io/kitaru
还没有评论,快来第一个发言吧。