🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@sapiom/agent-core

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sapiom/agent-core

Pure, stateless core functions for scaffolding, validating, and operating Sapiom agents — shared by the CLI and MCP packages.

latest
Source
npmnpm
Version
0.10.3
Version published
Weekly downloads
937
36.79%
Maintainers
4
Weekly downloads
 
Created
Source

PROJECT_NAME

A Sapiom agent, authored as code against @sapiom/agent.

Getting started

npm install

Then open index.ts. The agent is defined with defineAgent({ steps }); each step is a defineStep({ name, next, run }). The run body is ordinary code — and inside it, the full Sapiom tool catalog is available, pre-auth'd and tenant-scoped, on ctx.sapiom:

const box = await ctx.sapiom.sandboxes.create({ name: "demo" });
const repo = await ctx.sapiom.repositories.create("my-repo");

No credentials to wire — a per-execution tenant credential is injected for each agent run.

The loop

Author and run this agent with the Sapiom dev tools:

  • check — typecheck, bundle and import the definition, then validate its manifest and step graph. No Sapiom account or service call is required.
  • run_local — execute the real steps locally with ctx.sapiom.* calls resolved from stubs, iterating until completion without Sapiom capability spend. Ordinary code in the project can still make its own network or machine changes.
  • deploy — build and ship.

npm run typecheck and npm run format are also available for editor-level checks.

See AGENTS.md for the full authoring loop.

Keywords

sapiom

FAQs

Package last updated on 05 Aug 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts