pi-durable-dev-rules
БесплатноЗапускает вложенные скриптыНе проверенDeveloper reference for building applications, tools, and agents on the Pi Durable agent harness (@earendil-works/pi-durable) and the pi-ai model layer. Use…
от Agents365-ai★ 108 звёзд на GitHubОб этом скилле
Pi Durable Dev Rules
@earendil-works/pi-durable is a durable agent harness: conversations, model turns, tool calls,
tasks, and your own documents are committed to storage before anything is shown, so a process that dies
mid-turn is picked up where it stopped. It ships in the pi monorepo next to @earendil-works/pi-ai
(model access, tools, messages) and @earendil-works/chord (tracked JSON state).
Two things about it decide most design choices:
- The API is experimental. Version 1.2.0 tracks the monorepo; breaking changes land in every release. Quote and write against the version you have installed, and treat a signature difference as a version difference rather than a mistake.
- It is a library for building agentic applications, not a coding-agent CLI. For the Pi CLI, its
extensions, skills, MCP, and SDK, use the sibling skill
pi-dev-rules.
When to use this skill
- Writing or reviewing code that imports
@earendil-works/pi-durableor@earendil-works/pi-ai. - Assembling a harness: storage backend choice,
HarnessOptions, settings, the registry, and an execution environment. - Conversations: submit/wait, the busy inbox (steer, follow-up, write), reset and handoff, forks, per-conversation agent changes.
- Tools: TypeBox schemas, three output channels, nested calls with
executeTool(),callers,deferredtools and tool search, replay safety, output limits, image handling. - Durable tasks: phases and checkpoints, ownership, waiting and
failFast, abort, recovery, migration. - Subagents and child tasks, foreground versus background, reporting answers back.
- Documents: scopes, history and fork semantics, migrations, checkpoints, observation.
- Code mode (QuickJS scripts over the conversation's tools), hooks and guards, compaction, usage.
- Runtime questions: what survives a crash, why an input is still queued, why a task is blocked or orphaned, how an abort cascades, why a partial answer is visible or missing.
- Extending the harness: storage backends and execution environments verified with the conformance suites, custom tasks and prompt sections.
Reference index: load the file you need
| File | Covers |
|---|---|
references/durable-guide.md |
The package's own guide, bundled verbatim: quick start, concepts, persist and resume, extensions, tools (including nested calls and callers), code mode, system prompt, per-conversation agent, settings, environment, reload, watching, busy conversations, reset and handoff, compaction, agent events, hooks, more conversations and forks, abort and subagents, child tasks, the task graph, your own state, usage and cost, storage, errors, and the runnable examples. Start here. |
references/durable-api.md |
The exact public surface: entry-point map, Context, Harness/Session/Conversation/ConversationHandle, submissions, the Tx transaction surface, documents, entries, extensions and sections, hooks, tools and ToolExecutionApi, tasks and TaskRuntime, environment, storage, testing, observation, error classes, and the export inventory per subpath |
references/durable-runtime.md |
How work actually executes: the commit line and its rules, one input end to end, task checkpoints, the ownership tree, recovery by case, compaction, the inbox boundaries, live state and progress cadence, the failure model, the knobs that change behavior, and the deliberate non-goals |
references/durable-recipes.md |
Project setup, the catalogue of all 32 runnable examples, and 19 recipes with code: minimal chat, persistence and exactly-once input, live UI, agent events, structured-output tools, tool-calling tools, foreground and background subagents, child tasks with durable waits, coding agent, plan mode, per-conversation sandbox, tool override and wrappers, extension state and migration, hooks, compaction, code mode, tool search, conformance testing, plus the pitfall checklist |
references/durable-spec.md |
The normative Pico5 specification bundled verbatim (5340 lines): records and lifetimes, documents and mutation ownership, transactions and storage ownership, tasks and the effect sandwich, structured concurrency, submissions and the inbox, extensions/hooks/tools, the built-in tasks, document observation, the storage contract and failure model, the backends, API footguns, and non-goals. Read section 12 before shipping |
references/pi-ai-models.md |
The model layer bundled verbatim: createModels()/builtinModels(), provider factories and auth, querying the model catalog, environment variables, defining tools with TypeBox, constrained sampling, the event reference, image input, usage and cost, retries, and the message types that end up in entries |
references/codemode-sandbox.md |
@earendil-works/pi-codemode bundled verbatim: what a script may call, the injected globals, the sandbox module surface, determinism and memory limits, and local versus remote sandboxes |
Cheat sheet
``
Установить pi-durable-dev-rules в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pi-durable-dev-rules?
Developer reference for building applications, tools, and agents on the Pi Durable agent harness (@earendil-works/pi-durable) and the pi-ai model layer. Use when writing or debugging code that imports @earendil-works/pi-durable or pi-ai: assembling a Harness over memory/SQLite/JSONL/Durable Object storage, submitting input and waiting for answers, defining tools with TypeBox schemas and structured output, calling tools from tools, hooks and guards, durable tasks with checkpoints and ownership, subagents and child tasks, documents and migrations, code mode, tool search, per-conversation environments, compaction, recovery after a crash, storage and environment conformance tests, or choosing models and providers. Also use when a durable/agent-runtime behavior question comes up: what survives a restart, why an input stayed queued, why a task is blocked or orphaned, how abort cascades, or what the Pico5 specification requires.
Как установить скилл pi-durable-dev-rules?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pi-durable-dev-rules запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic