🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@robinpath/agent

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@robinpath/agent

AI agent pipelines on top of the local Claude Code and OpenAI Codex CLIs — typed outputs, caching, retries, batching.

latest
npmnpm
Version
0.3.0
Version published
Weekly downloads
25
-79.34%
Maintainers
4
Weekly downloads
 
Created
Source

@robinpath/agent

AI agent integration for Claude Code and OpenAI Codex — prompts, parsing, caching, retries, batch processing, classification, extraction, guards, and context management

Category Functions Auth License

Why use this module?

The agent module lets you:

  • Configure pipeline settings for AI agent execution
  • Send a prompt to Claude Code CLI and parse the structured response
  • Send a prompt to OpenAI Codex CLI and parse the structured response
  • Set global debug verbosity level (0=off, 1=info, 2=verbose, 3=trace)
  • Set the log file path for debug output

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

robinpath add @robinpath/agent

Quick Start

No credentials needed — start using it right away:

agent.claude "analyze" {"question": "What is 2+2?", "expectedOutput": "NUMBER"} into $answer

Available Functions

FunctionDescription
agent.pipelineConfigure pipeline settings for AI agent execution
agent.claudeSend a prompt to Claude Code CLI and parse the structured response
agent.codexSend a prompt to OpenAI Codex CLI and parse the structured response
agent.debugSet global debug verbosity level (0=off, 1=info, 2=verbose, 3=trace)
agent.logSet the log file path for debug output
agent.costGet pipeline cost and timing report for all executed steps
agent.notifyConfigure notification settings for pipeline events
agent.modelSet or get the default AI model for all subsequent steps
agent.promptLoad a prompt template from a file with {{variable}} substitution
agent.contextManage conversation contexts for multi-turn AI interactions
agent.batchProcess an array of items through an AI prompt with concurrency control
agent.classifyClassify text into one of the given categories (sugar for common AI task)
agent.extractExtract structured fields from unstructured text as a JSON object
agent.guardValidate AI output against rules before passing it forward in the pipeline

Examples

Send a prompt to Claude Code CLI and parse the structured response

agent.claude "analyze" {"question": "What is 2+2?", "expectedOutput": "NUMBER"} into $answer

Send a prompt to OpenAI Codex CLI and parse the structured response

agent.codex "generate" {"question": "Write a hello world in Python", "expectedOutput": "CODE"} into $code

Set global debug verbosity level (0=off, 1=info, 2=verbose, 3=trace)

agent.debug 1

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/agent";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  agent.claude "analyze" {"question": "What is 2+2?", "expectedOutput": "NUMBER"} into $answer
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

License

MIT

Keywords

agent

FAQs

Package last updated on 06 May 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