Skip to content

About

In-process agent bridge for live capabilities, with a JSON shell interface and versioned catalogs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Tink Capabilities, an in-process bridge for agents

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

CI status Node.js 22.18 or later MIT license


Let your agent install it

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.

Why

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.

Features

Swap plugins live

Load, reload, or remove a plugin in the host process. A failed reload preserves the active version, and retired versions release their resources after their calls finish.

Load, reload, and remove a plugin while the agent keeps running

Embed the bridge

Publish your own Capability Catalog

Host catalog.json and your manifests on GitHub. Anyone using capable can browse the catalog and install a release by ID, version, and SHA-256.

A GitHub repository publishes a catalog.json index that the capable CLI uses to install a pinned release

Publish a catalog

Use it from any shell

Send JSON to capable json to list capabilities, preview a plan, or invoke a capability. Use --lines when a host needs to exchange several requests over one process.

Read the shell protocol

Approve the execution plan

Inspect the capability and its resolved steps before authorizing execution. A changed manifest or a new live plugin revision receives a different approval identity.

See how approvals work

How it works

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

Embed in a running host

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.

Quick start

Requires Node.js 22.18 or later. Install capable globally from npm.

npm install --global "@swzv/capabilities" --registry=https://registry.npmjs.org
capable --help

Clone 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-notes

The 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.

Connect your agent

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

Run it from scripts and CI

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 json

Use the plan operation to see which grants an invocation needs. For non-interactive invocation the launcher supplies those grants in an approval file.

Development

npm ci
npm test
npm run test:package

CI 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.

License

MIT

About

In-process agent bridge for live capabilities, with a JSON shell interface and versioned catalogs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages