anvia-durable
Build recoverable Anvia workflows with @anvia/durable — durable main agents, owned subagents, task graphs, tool/effect recovery, persisted waits, and remote…
Skill by anvia-hq
Chalk Labs
Need help deploying anvia-durable?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/anvia-hq-anvia-durable
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/anvia-durable
What's inside
- Skill name
anvia-durable- Description
- Build recoverable Anvia workflows with @anvia/durable — durable main agents, owned subagents, task graphs, tool/effect recovery, persisted waits, and remote controls. Use when execution must survive restarts; ordinary agent streaming, AgentTeam, and session memory alone are not durable execution.
- License
- MIT
- Instructions
- 90 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (7)
- SKILL.md
- agents-and-runtime.md · references/
- goals.md · references/
- operations-and-http.md · references/
- tasks-and-subagents.md · references/
- tools-and-recovery.md · references/
- check-durable.sh · scripts/
SKILL.md (first lines)
# Anvia Durable Skill Use this skill to implement or review execution that must survive process restarts. The package is experimental: target one supervised Node.js process and one local SQLite owner. Do not present it as a distributed worker service or automatically production-ready. The durable cookbook remains withheld. ## Choose the execution boundary | Need | API and boundary | | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | One main agent with conversation history | Register an `Agent`, then `runtime.submit()` → `DurableRun` | | A fixed graph of agent dependencies | `runtime.submitGraph()` → static agent DAG | | A main workflow coordinating dynamic subagents or custom work | `defineTask()` → `runtime.submitTask()`; spawn children through its `TaskContext` | | A model decides the plan | Run the planner as an owned agent; validate its saved JSON output in the orchestration task before spawning workers | | Model-selected local tools | Static `createTool()` tools on each registered agent; classify `toolRecovery` | | External work performed by task code | `await ctx.effect(stableKey, jsonInput, callback, recovery)` | | A human decision or external callback | Agent `run.respond()` or custom-task `signal()`; they are different protocols | A **task handler** has `ctx.spawnAgent`, `ctx.spawn`, and `ctx.effect`. A normal agent tool has `ToolCallContext`, including `operationId` and `abortSignal`; it does not have task spawn methods. A main agent's `agent.asTool()` delegates an ordinary inner execution, not a separately checkpointed owned child. Do not claim that `AgentTeam`, `Pipeline`, direct `generate/stream`, or a memory adapter becomes durable by being called inside another function. ## Workflow and references 1. Choose the smallest boundary above. For registration, supported agent options, root IDs, history, and the `agent.stream()` distinction, read [agents-and-runtime.md](references/agents-and-runtime.md). 2. For a main workflow with specialists, dynamic planning, dependencies, joins, timers, signals, and the exposed tree, read [tasks-and-subagents.md](references/tasks-and-subagents.md). 3. Before adding side effects, classify interruption behavior and wire idempotency or reconciliation using [tools-and-recovery.md](references/tools-and-recovery.md). 4. For HTTP/browser access, authorization, deployment, quotas, backup, or version changes, read [operations-and-http.md](references/operations-and-http.md). Use the installed package's public types to verify the examples against its version. These references describe the current schema-7 package, including operational controls and custom-task HTTP APIs. An older npm release may not contain them; do not invent compatibility wrappers or silently remove guarantees. Use the matching workspace build or package release. For an objective spanning bounded agent sessions, read [goals.md](references/goals.md). Use `defineGoal()` registered in `tasks` and `runtime.submitGoal()`; require application-owned completion verification and respect the distinction between hard model-turn budgets and between-session token/deadline admission limits. ## Invariants that affect implementation - Keep one application-scoped runtime per database. Supply custom task definitions at open. Agents can be supplied at open or added with `registerAgents()` without restarting work. Restore unfinished registrations before `resume()`; `unregisterAgent()` only releases idle registrations. Call `close()` during shutdown. - The engine replays committed model/tool/effect results and re-enters task phases from checkpoints. It does not restore JavaScript stacks, local variables, or arbitrary promises. - Persist identifiers and phase state. Keep child/effect keys stable across replay; a key is scoped to its parent's or task's entire lifetime. Root request IDs come from a stable job ID. - Keep initializers, migrations, schemas, tool definitions, and approval predicates pure. Checkpoints/results must round-trip as JSON. Await every started effect before returning. - Return a `waiting` transition to release task capacity. Do not poll or await another durable handle's `result()` inside a parent phase. A successful parent waits for all owned work to settle. - Completed results are reused. An external operation that succeeded before its result committed is uncertain; the external service must deduplicate it or an operator must reconcile it. Merely choosing `idempotent` does not create exactly-once behavior. - The currently unsupported agent options are memory, lifecycle callbacks, middleware, guardrails, context sources, MCP servers, provider tools, and dynamic tool indexes. Do not bypass registration checks by hiding those integrations inside unchecked callbacks. - Streams expose committed progress and, with registration `stream: true`, persisted generation deltas grouped by unique attempt IDs. Partial output is provisional; replace it on a new attempt. Aborting a subscription does not cancel execution. Approvals and recovery blocks require explicit authorized decisions. ## Verify and deliver Run the app's relevant typecheck/tests. For a local no-network compatibility smoke check: ```sh sh skills/anvia-durable/scripts/check-durable.sh --dir /path/to/app ``` The script uses the app's installed packages, a temporary SQLite file, and a fake model/tool. It verifies owned-agent completion, a persisted signal wait, reopening, stable identities, and reuse of committed tool/effect results. It never opens the app's live database and does not certify the app's own workflow, provider, authorization, or production readiness. For the implemented workflow, also verify its actual replay boundaries: kill/reopen at the chosen effect boundary, preserve pending approvals, deliver duplicate signals, cancel a tree, and inspect children after restart. Do not exercise real external mutations without the user's authorization. Report the chosen topology, recovery policies, validation run, and remaining operational limits; never mark blocked work completed merely to make a demo pass.
From anvia-hq/anvia, MIT.
More from anvia-hq/anvia
- 0.667score
anvia-pipeline
anvia-hq
Build deterministic multi-step work with Anvia Pipelines — steps, composition, parallel branches, decision routing, batch runs, agent, extractor, and decision…
SkillAFreshness: A★ 57Claude Code +9 - 0.667score
anvia-channels
anvia-hq
Connect Discord, Slack, and Telegram to Anvia agents — channel adapters, agent-backed bots, proactive delivery, sessions, streaming, and platform actions.
SkillAFreshness: A★ 57Claude Code +9 - 0.667score
anvia-studio
anvia-hq
Run and inspect Anvia agents in Studio — local serving, playground, traces, approvals, sessions, evals, and observability.
SkillAFreshness: A★ 57Claude Code +9 - 0.667score
anvia-evals
anvia-hq
Evaluate Anvia agents and retrieval — deterministic metrics, semantic similarity, LLM judges, RAG quality, and CLI eval runs.
SkillAFreshness: A★ 57Claude Code +9 - 0.667score
anvia-agent
anvia-hq
Build Anvia agents and tools — Agent options, tool definitions, approvals, memory, streaming, multi-agent teams, and provider wiring.
SkillAFreshness: A★ 57Claude Code +9 - 0.664score
anvia-mcp
anvia-hq
Connect MCP servers to Anvia agents — clients, transports, tool discovery, URL safety, and lifecycle.
SkillAFreshness: A★ 57Claude Code +9 - 0.664score
anvia-chat
anvia-hq
Wire an Anvia chat UI end to end — server stream route, client transport, React hook, and UI primitives.
SkillAFreshness: A★ 57Claude Code +9 - 0.664score
anvia-rag
anvia-hq
Build retrieval and RAG with Anvia — chunking, embeddings, vector stores, knowledge graphs, filters, and search tools.
SkillAFreshness: A★ 57Claude Code +9 - 0.659score
release-notes
anvia-hq
Draft concise product release notes from a list of shipped changes.
SkillAFreshness: A★ 57Claude Code +9
Signals
- Stars
- 57
- Forks
- 6
- Open issues
- 0
- Last commit (this folder)
- Oct 10, 2026 (20 days ago)
- Last release
- Oct 23, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/anvia-hq/anvia
- Website
- anvia.dev
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from anvia-hq
- 0.667score
anvia-pipeline
anvia-hq
Build deterministic multi-step work with Anvia Pipelines — steps, composition, parallel branches, decision routing, batch runs, agent, extractor, and decision…
SkillAFreshness: A★ 57Claude Code +9 - 0.667score
anvia-channels
anvia-hq
Connect Discord, Slack, and Telegram to Anvia agents — channel adapters, agent-backed bots, proactive delivery, sessions, streaming, and platform actions.
SkillAFreshness: A★ 57Claude Code +9 - 0.667score
anvia-studio
anvia-hq
Run and inspect Anvia agents in Studio — local serving, playground, traces, approvals, sessions, evals, and observability.
SkillAFreshness: A★ 57Claude Code +9 - 0.667score
anvia-evals
anvia-hq
Evaluate Anvia agents and retrieval — deterministic metrics, semantic similarity, LLM judges, RAG quality, and CLI eval runs.
SkillAFreshness: A★ 57Claude Code +9 - 0.667score
anvia-agent
anvia-hq
Build Anvia agents and tools — Agent options, tool definitions, approvals, memory, streaming, multi-agent teams, and provider wiring.
SkillAFreshness: A★ 57Claude Code +9 - 0.664score
anvia-mcp
anvia-hq
Connect MCP servers to Anvia agents — clients, transports, tool discovery, URL safety, and lifecycle.
SkillAFreshness: A★ 57Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get anvia-durable running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
anvia-durable skill. Agent Mart. https://agentmart.dev/skills/anvia-hq-anvia-durable (last updated 2026-10-24)