Skip to content
Perstack

Registry

The Perstack Registry is a community-driven ecosystem for sharing Experts — like npm, but for AI agents.

Unlike traditional package registries (npm, PyPI) that distribute executables, the Perstack Registry stores only Expert definitions — plain text perstack.toml content.

Traditional RegistryPerstack Registry
Distributes binaries/executablesDistributes text definitions
Code runs directlyRuntime interprets definitions
Hard to auditFully transparent

This separation clarifies responsibilities:

  • Registry: Manages what Experts do (definitions)
  • Runtime: Controls how Experts execute (in sandbox)

Text-based definitions can still contain malicious instructions. Registry transparency is one layer — combine with sandbox execution, environment variable control, and workspace isolation for defense in depth.

Run Experts directly from the Registry:

Terminal window
npx perstack run @acme/researcher "Analyze market trends"

Or reference them as delegates in perstack.toml:

[experts."my-expert"]
instruction = "Delegate research tasks to the researcher."
delegates = ["@org/researcher"]

The runtime automatically fetches and caches Registry Experts.

The runtime first checks perstack.toml for a matching Expert key. If not found locally, it fetches from the Registry.

The Registry uses Semantic Versioning (SemVer):

Terminal window
npx perstack run @acme/researcher@1.2.3 "Analyze market trends"

Once published, a version cannot be changed:

  • Same version number always returns identical content
  • Dependency resolution is deterministic
  • No supply chain attacks via version tampering

Without a version specifier, latest is used:

Terminal window
npx perstack run @acme/researcher "Analyze market trends"
# equivalent to @acme/researcher@latest

Experts are namespaced by organization:

@{organization}/{expert-name}

Examples:

  • @acme/researcher — public Expert from Acme org
  • @mycompany/code-reviewer — private Expert for internal use

Publish Experts using the CLI:

Terminal window
npx perstack publish my-expert

For detailed instructions, see Publishing Experts.

The Registry provides several security guarantees:

MeasureWhat it prevents
Write-once versioningVersion tampering, supply chain attacks
Content integrityMITM attacks during distribution
Explicit requiredEnvUnintended environment variable exposure

Registry security is one layer of defense. See Sandbox Integration for the full security model.

For programmatic access, see API Reference.