npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cuylabs/physical-capx-agent-core

v0.1.1

Published

Agent-core CaP-X agent and physical tool adapter

Readme

@cuylabs/physical-capx-agent-core

Agent-core CaP-X agent adapter.

This package composes @cuylabs/physical-capx, @cuylabs/physical-agent-core, and @cuylabs/agent-core. It provides CaP-X tool creation, packaged CaP-X model guidance, and createCapxAgent(...).

Use this package when the host harness is @cuylabs/agent-core. Use @cuylabs/physical-capx directly when a TypeScript host only needs a backend-neutral CapxSession.

agent-core model loop
  -> @cuylabs/physical-capx-agent-core tools
    -> @cuylabs/physical-capx CapxSession
      -> capx-agent-runtime HTTP server
        -> CaP-X Python runtime, selected YAML config, simulator or robot

Install

npm install @cuylabs/agent-core @cuylabs/physical-core @cuylabs/physical-agent-core @cuylabs/physical-capx @cuylabs/physical-capx-agent-core

Use

import { createCapxAgent } from "@cuylabs/physical-capx-agent-core";

const { agent, session } = await createCapxAgent({
  model,
  startSession: true,
  toolExecutionMode: "plan",
  sessionOptions: {
    mode: "runtime",
    runtimeServerUrl: "http://127.0.0.1:8210",
    physicalMode: "simulation",
    enablePolicyCodeExecution: true,
  },
});

The package also exposes a migration-friendly ./session entrypoint:

import {
  createCapxPhysicalTools,
  createCapxSession,
} from "@cuylabs/physical-capx-agent-core/session";

Runtime Loop

The external agent owns reasoning and code generation. CaP-X owns robotics execution.

start CapxSession
  -> capx_observe returns task prompt, state, frame, and codeContext
  -> agent writes one Python policy-code step
  -> capx_run_policy_code submits that code to the live runtime session
  -> agent observes the result, reward, artifacts, and next frame
  -> host or agent continues, reports completion, resets, or stops

capx_run_policy_code is the tool that performs physical work. It can mutate a simulator or move hardware, so it should stay approval-gated and dispatched by the host harness.

Tools

This package generates the agent-core tools below. They are the TypeScript-facing tool surface for a CapxSession; internally they call the capx-agent-runtime HTTP API through @cuylabs/physical-capx.

  • capx_status
  • capx_observe
  • capx_artifacts
  • capx_stop
  • capx_run_policy_code when enablePolicyCodeExecution: true
  • capx_turn_history

The raw runtime server exposes HTTP endpoints such as /sessions, /sessions/{id}/observe, /sessions/{id}/execute-code, /sessions/{id}/artifacts, and /sessions/{id}/turns. Its optional MCP wrapper has its own MCP-native tool names. The list above is the smaller agent-core default surface.

The default model-facing surface is intentionally small. It gives the agent enough context to write better Code-as-Policies Python without exposing every runtime operation as a separate robot-action tool.

CaP-X Skills

There are two different skill concepts:

  • agent-core skills are SKILL.md instruction packs that teach the model how to use the CaP-X tools.
  • CaP-X skills are Python helper functions in the runtime skill library.

The default agent tool surface exposes CaP-X skill-library information through capx_observe as policy-code context. Programmatic clients can still use CapxLiveRuntime from @cuylabs/physical-capx to inspect, extract, or inject runtime skills deliberately with host approval.

Boundary

Use this package only when the host runtime is @cuylabs/agent-core. The agent-agnostic CaP-X session adapter remains in @cuylabs/physical-capx.

The runtime server owns the robotics side: CaP-X checkout, selected YAML config, simulator or robot dependencies, CUDA/perception services, model assets, output directory, skill-library path, and execution of submitted Python programs.

This TypeScript package owns only the agent-core side: tool creation, approval-aware policy-code execution, packaged model guidance, and createCapxAgent(...).

Docs

License

Apache-2.0