Load, reload, and remove external plugins while your agent keeps running.
Quick start · Install with your agent · Codex & Claude Code · Host SDK · Capability Catalog · Changelog
Copy this prompt into Codex, Claude Code, or any agent with shell access.
Read https://github.com/swzv/capabilities/blob/main/INSTALL.md and install
@swzv/capabilities globally from npm where you run shell commands. Verify
that capable --help works from outside this project. Then follow
https://github.com/swzv/capabilities/blob/main/INTEGRATIONS.md for this agent.
For Codex or Claude Code, use its Capabilities plugin. For another agent,
verify the capable JSON interface. Tell me if I need to restart the session.
Adding a new skill or connector can mean rebuilding the tool list and restarting the host. Tink Capabilities gives a running host a way to change its available capabilities between calls, with a JSON interface for agents that only have shell access.
- Keep the session running. Load a new plugin or swap its implementation in place. Calls already running finish with the version they started on.
- Bring your own integrations. A host can register file tools, MCP connectors, and callable agents as external handlers. The host controls their access and credentials.
- Share portable capabilities. Describe skills, tools, commands, callable agents, workflows, and hooks in versioned JSON manifests. Publish a catalog on GitHub or keep a registry local.
A manifest declares a capability's identity and behavior. The store keeps installed manifests in project or global scope. In an embedded host, the bridge also accepts live plugins and publishes their capabilities to the runtime. The runtime finds the capabilities needed for each call and asks the host to authorize the plan.
| Capability | What the runtime does |
|---|---|
| Skill | Returns instructions to the requesting agent |
| Tool | Calls a registered host handler, such as a file operation or an MCP connector |
| Agent | Calls a registered handler that delegates to another agent |
| Command or workflow | Runs capability steps in order and passes data between them |
| Hook | Runs capability steps when the host dispatches a matching event |
Create one bridge and runtime per host session. Your adapter supplies the load and invocation approval callbacks and chooses the plugin entry point.
import { AgentBridge, CapabilityStore, Runtime, modulePlugin } from '@swzv/capabilities'
const store = new CapabilityStore({ projectRoot: process.cwd() })
const bridge = new AgentBridge(store, { authorizeLoad: approvePluginLoad })
const runtime = new Runtime(store, { bridge, authorize: approveInvocation })
await bridge.load('project', 'editor-plugin', modulePlugin(editorEntry))
await runtime.invoke('edit-document', { document: 'draft' })
await bridge.reload('project', 'editor-plugin')
bridge.remove('project', 'editor-plugin')See the host integration guide for the external plugin contract, generation cleanup, and host-provided secrets. The manifest specification defines the portable format.
Requires Node.js 22.18 or later. Install capable globally from npm.
npm install --global "@swzv/capabilities" --registry=https://registry.npmjs.org
capable --helpClone the repository for the example manifest. In an interactive terminal, add the skill to the project's scope and type y at the approval prompt.
git clone https://github.com/swzv/capabilities.git
cd capabilities
capable reshape create ./examples/catalog/cap-review-notes@1.0.0.json
capable reshape list
capable run project review-notesThe skill returns review instructions to the caller. Use capable reshape remove review-notes to remove the example. See the installation guide for installing from a GitHub release when a package asset is available.
Install capable where your agent can run shell commands, then open a session in your project directory.
| Host | Integration |
|---|---|
| Codex | Install the Capabilities plugin for Codex |
| Claude Code | Install the Capabilities plugin for Claude Code |
| Any shell-based agent | Pipe JSON requests to capable |
| A Node.js agent host | Embed the in-process bridge |
Send one request to discover available capabilities. The command writes one JSON response to stdout.
printf '%s\n' '{"version":1,"op":"list"}' | capable json'{"version":1,"op":"list"}' | capable jsonUse the plan operation to see which grants an invocation needs. For non-interactive invocation the launcher supplies those grants in an approval file.
npm ci
npm test
npm run test:packageCI checks Linux and Windows on Node.js 22.18 and 24. See AGENTS.md for project conventions and RELEASING.md for the GitHub release workflow.


