agently-runtime
Provides tools for managing and extending the Agently agent runtime environment.
Install
mkdir -p .claude/skills/agently-runtime && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11719" && unzip -o skill.zip -d .claude/skills/agently-runtime && rm skill.zipInstalls to .claude/skills/agently-runtime
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when the user wants Agently runtime extension capabilities: Action Runtime, built-in action packages, legacy tool compatibility, MCP access, Execution Environment lifecycle, FastAPIHelper or streaming API exposure, auto-function helpers, KeyWaiter, or optional agently-devtools observation, evaluation, and playground integration.Key capabilities
- →Develop custom agent actions using `@agent.action_func`
- →Integrate built-in action packages like Search and Browse
- →Manage ExecutionResource lifecycle for dependencies
- →Expose streaming APIs using FastAPIHelper
- →Utilize `agently-devtools` for observation, evaluation, and playground integration
- →Configure Workspace instances for shared task information
How it works
The skill provides interfaces for custom actions, built-in packages, and resource management. It allows for exposing APIs, integrating devtools, and configuring workspaces for agent execution.
Inputs & outputs
When to use agently-runtime
- →Develop custom agent actions
- →Integrate MCP tools
- →Manage execution resources
- →Expose agent streaming API
About this skill
Agently Runtime
Use this Skill after the request/workflow owner is known. Start with agently
when the layer is still undecided, and use agently-triggerflow for visible
branching, concurrency, pause/resume, retry, or multi-stage orchestration.
Read Only What the Task Needs
- Actions, Search/Browse, MCP, approval, Action artifacts, or AgentTask evidence:
read
references/actions-runtime.md. - Action versus ExecutionResource, managed runtimes, sandbox/process/browser/
SQLite resources: read
references/actions-execution-resource.md. - RuntimeEvent, logs, traces, evaluation, playground, or DevTools: read
references/devtools.md. - Stage task lifetime, sync/async bridging, loop-neutral handles, settlement,
StageStream, Tunnel, or EventEmitter: use
agently-stage. - TaskContext, ContextReader, TaskWorkspace, RecordStore, SkillLibrary, or the
SkillsExecutor compatibility facade: read
../agently/references/context-and-skills.md.
Owner Boundaries
| Owner | Responsibility |
|---|---|
ActionRuntime | Model-callable operations, schema validation, dispatch, policy, and Action results. |
ExecutionResource | Lifecycle of live clients, sandboxes, processes, browsers, database connections, and MCP sessions. |
TaskWorkspace | One task's existing files, generated artifacts, path containment, bounded readback, file identity, and verified terminal promotion. |
RecordStore | Records, links, retrieval, RuntimeEvent persistence, checkpoints, snapshots, leases, and durable artifact refs. |
TaskContext | Sole task-information aggregate; revisioned bindings/direct entries, internal derived ContextIndex, and read-handle lifecycle. |
ContextReader | TaskContext-created intent-driven, budgeted progressive-disclosure handle for one consumer and phase. |
SkillLibrary | Installed immutable real-world Skill revisions and resource reads. |
AgentExecution | Task-scoped Skill binding, TaskContext preparation, route selection, execution, and result/stream APIs. |
Do not merge these owners into a generic Workspace or runtime manager. File space is not record storage; record storage is not model-hot context; a Skill package is not an executor or permission grant.
Native Action Rules
- Prefer
@agent.action_funcandagent.use_actions(...);tool_func,use_tool,use_tools, andagently.builtins.toolsare compatibility surfaces. - Mount built-in Search/Browse with
agent.use_actions(Search(...))/agent.use_actions(Browse(...)); do not inventenable_search(...). - Treat multi-Action package registration as atomic. A partial Search or MCP registration failure must remove batch-created Actions and restore any same-id host registration.
- Treat model-planned Action arguments as untrusted. Validate against the registered schema, authorization, and policy before dispatch.
- Treat Action output and Action artifacts as evidence only after the host has recorded the actual call. Model prose claiming a side effect is not Action evidence.
- Keep permission profiles explicit and narrow. Do not expose shell, filesystem, MCP, browser, install, or network capabilities merely because an AgentTask exists.
File and Storage Rules
- Select a task file root with
agent.use_task_workspace(path, mode=...). Enable model-callable file work withagent.enable_task_workspace_file_actions(...)oragent.enable_coding_agent_actions(...). TaskWorkspaceis a file boundary only. Use its read/write/edit/glob/grep/ patch/export methods for task files and artifacts; do not store arbitrary durable records inside it through a hidden database API.- Direct
.ensure_long_output()delivery uses execution-private TaskWorkspace files for raw segments, immutable accepted units, manifests, and final candidate readback. Those refs are staging evidence, not automatically durable public artifacts. Every accepted write must be completely read back with matching bytes and digest before the manifest advances. Structured units must also pass their slot schema before commit. Model-repairable final validation may add new units without discarding accepted ones, but any manifest/readback/digest/lineage mismatch fails immediately. - A required AgentTask terminal deliverable starts as a staged candidate. The verifier receives a complete readback; only acceptance permits digest-pinned atomic promotion to the target and a complete post-promotion readback. Rejection preserves the previous target, and promotion/readback failure blocks delivery.
- For TaskWorkspace-bound shell execution, resolve relative
workdirvalues inside the injected root. Accept./child paths and consume an already root-prefixed logical.agently/files/<execution-id>locator exactly once; reject paths outside the root. - Select durable records with
agent.use_record_store(...)or pass aRecordStoreto an explicit TriggerFlow execution. Use it forput,get,retrieve, links, RuntimeEvents, snapshots, checkpoints, leases, and durable artifact refs. - Keep process state in memory/logs by default. Enable AgentTask
record_store_recoveryonly when restart-safe recovery is required. - Keep ordinary observation in logs/DevTools. Bind RuntimeEvent persistence explicitly; a RecordStore does not become an event archive merely because it is available.
- Keep large bodies cold behind TaskWorkspace, RecordStore, SkillLibrary, or another attached ContextSource. Put only compact handles, descriptors, bounded previews, status, and lineage facts in execution state and model-hot context. TaskContext's internal ContextIndex narrows reusable candidates; ContextReader obtains exact bodies from the source before delivery.
Real-World Skills
- Treat standard
SKILL.mdpackages as guidance plus addressable resources. They do not own execution strategy, routing, Action mounting, permissions, or side-effect proof. - Install and inspect immutable revisions through
SkillLibraryor the thinAgently.skills_executormanagement facade. Use registeredSkillSourceProviderimplementations for authorized local or Git sources; pin a Gitrefand optionalsubpathrather than inventing a host checkout helper. - Bind optional or required Skills on an
AgentExecutionwithexecution.use_skills(...),execution.require_skills(...), orexecution.use_skills_packs(...). - Let
AgentExecutionprepare the shared TaskContext and read it for the actual consumer/phase withasync_prepare_task_context()andasync_read_task_context(...). - Provide Actions/MCP/ExecutionResources explicitly. Reading a Skill may inform the model that an operation exists; it never creates or authorizes that operation.
- When a trusted, exactly bound Skill revision contains an executable script,
call
agent.bind_skill_script_action(...)only afterexecution.async_prepare_task_context(). Pass the host-issuedbinding_id, exact resource path, andSkillScriptAuthorization; the binding registers an ordinary Action and never makes every script automatically callable. For a host-directed run, dispatchbound_action.action_idthroughagent.action.async_execute_action(...), then read its published artifact path through the same execution's TaskWorkspace. Agently.skills_executoris a compatibility facade for source-backed or local install, configure, inspect, list, resource read, context-pack projection, and the TaskDAG Skill resolver. It is not a plugin route, planner, strategy registry, React loop, capability manager, or execution owner.agent.run_skills_task(...)remains a thin compatibility adapter to an ordinary AgentExecution. New code should create/configure the execution directly.- There is no
SkillsManager,skill_activationBlock, Skills route,single_shot/staged/reactSkills strategy family, orconfigure_skill_capabilities(...)auto-mount path in the current development-line contract.
AgentExecution and AgentTask
- Use a fresh
agent.create_execution()for multi-statement setup. A completed execution is an immutable run record; create another execution for another run. - Use
agent.create_task(...)/agent.create_task_loop(...)only when the model should own planning, bounded execution, evidence, verification, and replan. They return AgentExecution drafts, not public AgentTask handles. strategy("direct")selects an ordinary model request with the Action loop.strategy("auto")may select AgentTask when structural task signals exist;flatandtaskboardexplicitly select the corresponding AgentTask shape.- Use
AgentExecutionResult.get_data()for the business value,get_full_data()for the route/task envelope,get_text()for user-facing text, andget_meta()for process facts. - Treat
instantas provisional structured progress anddeltaas printable text. Irreversible work must wait for the final parsed result and host validation. - Add non-blocking operator context to a running task with
execution.async_add_guidance(...). Use TriggerFlow pause/resume when an answer is required before work can continue. - Require actual Action evidence for required side effects. TaskWorkspace readback proves a file fact; it does not prove an unrelated Action call.
- When a sufficient completed TaskBoard control result provides a draftable
artifact manifest without a body, let the dedicated artifact-draft stage
materialize it with the same bounded canonical Action/readback evidence
ledger. Framework-owned materialization is not semantic
remaining_work; the resulting candidate still requires terminal verification and promotion.
TriggerFlow and Recovery
- Use TriggerFlow execution state for per-execution handoff.
flow_datais shared across executions and is not concurrency-safe task memory. - Bind
snapshot_store,runtime_event_store, and other recovery po
Content truncated.
When not to use it
- →When a parallel action/tool dispatcher is built before checking Action Runtime
- →When hand-rolling tool schema prompts or kwargs planners
- →When prompt-only or React Skills text is accepted as proof of side effects
Limitations
- →Prefer `@agent.action_func` and `agent.use_actions(...)` over compatibility surfaces
- →Built-in web packages should be used through `from agently.builtins.actions import Search, Browse`
- →Treat `agent_task.heartbeat` as observation only, not evidence or stall hiding
How it compares
This skill offers a structured way to extend Agently runtime capabilities with custom actions, built-in tools, and managed execution resources, providing a more integrated development experience than manual tool dispatching.
Compared to similar skills
agently-runtime side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| agently-runtime (this skill) | 0 | 2mo | Review | Advanced |
| crewai | 4 | 6mo | No flags | Advanced |
| autonomous-agent-patterns | 4 | 6mo | Review | Intermediate |
| computer-use-agents | 10 | 6mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
crewai
davila7
Expert in CrewAI - the leading role-based multi-agent framework used by 60% of Fortune 500 companies. Covers agent design with roles and goals, task definition, crew orchestration, process types (sequential, hierarchical, parallel), memory systems, and flows for complex workflows. Essential for building collaborative AI agent teams. Use when: crewai, multi-agent team, agent roles, crew of agents, role-based agents.
autonomous-agent-patterns
davila7
Design patterns for building autonomous coding agents. Covers tool integration, permission systems, browser automation, and human-in-the-loop workflows. Use when building AI agents, designing tool APIs, implementing permission systems, or creating autonomous coding assistants.
computer-use-agents
davila7
Build AI agents that interact with computers like humans do - viewing screens, moving cursors, clicking buttons, and typing text. Covers Anthropic's Computer Use, OpenAI's Operator/CUA, and open-source alternatives. Critical focus on sandboxing, security, and handling the unique challenges of vision-based control. Use when: computer use, desktop automation agent, screen control AI, vision-based agent, GUI automation.
voice-ai-engine-development
sickn33
Build real-time conversational AI voice engines using async worker pipelines, streaming transcription, LLM agents, and TTS synthesis with interrupt handling and multi-provider support
crewai-developer
smallnest
Comprehensive CrewAI framework guide for building collaborative AI agent teams and structured workflows. Use when developing multi-agent systems with CrewAI, creating autonomous AI crews, orchestrating flows, implementing agents with roles and tools, or building production-ready AI automation. Essential for developers building intelligent agent systems, task automation, and complex AI workflows.
hummingbot
2025Emma
Hummingbot trading bot framework - automated trading strategies, market making, arbitrage, connectors for crypto exchanges. Use when working with algorithmic trading, crypto trading bots, or exchange integrations.