← Catalog

@asermax/pi-tentacles

Spawn, steer, question and collect remote coding agents that run in tentacles.

Extension

Install

Install with PiG

pig install npm:@asermax/pi-tentacles

Install with Pi

pi install npm:@asermax/pi-tentacles
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "./skills"
  ],
  "extensions": [
    "./extension/index.js"
  ]
}

README

Written by the package's publisher, shown as published in version 1.3.0 (README.md). PiG does not review it.

tentacles plugin

One source builds a pi package (build/out/pi) and a Claude Code plugin (build/out/claude). Each gives the parent agent the tentacles tools, a status line of its open remote sessions, and a wake when a remote agent asks, finishes or fails. Every tool runs the bundled helper, the only client of the Worker API.

Install

The plugin needs a deployed tentacles Worker: its URL and the API key it was deployed with go in TENTACLES_URL and TENTACLES_API_KEY (see Variables).

On pi, install the npm package:

pi install npm:@asermax/pi-tentacles

On Claude Code, add the marketplace and install the plugin:

claude plugin marketplace add asermax/tentacles@claude-marketplace
claude plugin install tentacles@tentacles

Variables

The helper reads these where it runs, on your machine. On pi, set them in pi's settings env; on Claude Code, in the environment Claude Code starts with.

VariableWhat it setsDefault
TENTACLES_URLthe Worker's URLrequired
TENTACLES_API_KEYthe API keyrequired
TENTACLES_HELPERthe helper's paththe bundled helper
TENTACLES_SESSION_PROVIDERthe model providercloudflare
TENTACLES_SESSION_MODELthe modelglm-5.3
TENTACLES_SESSION_EFFORTthe effort levelmax
TENTACLES_WORKSPACE_IMAGEthe workspace imagedefault
TENTACLES_WORKSPACE_SIZEthe workspace container's instance typestandard-2
TENTACLES_WORKSPACE_LIFETIMEthe workspace's inactivity time, in minutes15

A setting the agent passes to spawn wins over its variable.

Build

pnpm build bundles the helper, the pi extension and the Claude mod with vite, then build/emit.ts lays out both plugins with their manifests and the skill.

Release

The version is the content of the VERSION file at the repository root; the build writes it into both manifests and the marketplace entry. Nobody edits it: on every push to master that changes a file this package is built from (its sources, build and publish scripts, manifest and this README), worker-api's sources, the lockfile or the root package.json, CI runs semantic-release (config in .releaserc.json), which picks the next version from the conventional commits since the last v* tag (fix is a patch, feat a minor, a breaking change a major; other types release nothing), writes it to VERSION, rebuilds, and then:

  • pi package: publishes build/out/pi to npm with provenance. npm authenticates with one of these, set up once:
    • Trusted publisher: on npmjs.com, open the package's Settings, then Trusted publishing. Add GitHub Actions with user asermax, repository tentacles, workflow filename ci.yml and no environment. Allow both npm publish and npm stage publish. npm offers trusted publishing only for a package that already exists.
    • Token: a granular npm access token with publish rights on the package, stored as the repository secret NPM_TOKEN. When both are set up, npm uses the trusted publisher.
  • Claude plugin: runs scripts/publish-marketplace.sh <version>, which force-pushes build/out/claude as the root of the orphan claude-marketplace branch. scripts/publish-marketplace.sh <version> /path/to/bare.git pushes the same branch to a local bare repository instead of GitHub; run pnpm build first.
  • Repository: commits VERSION and CHANGELOG.md to master with [skip ci], creates the v<version> tag and the GitHub release.