
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@robinpath/agent
Advanced tools
AI agent pipelines on top of the local Claude Code and OpenAI Codex CLIs — typed outputs, caching, retries, batching.
AI agent integration for Claude Code and OpenAI Codex — prompts, parsing, caching, retries, batch processing, classification, extraction, guards, and context management
The agent module lets you:
All functions are callable directly from RobinPath scripts with a simple, consistent API.
robinpath add @robinpath/agent
No credentials needed — start using it right away:
agent.claude "analyze" {"question": "What is 2+2?", "expectedOutput": "NUMBER"} into $answer
| Function | Description |
|---|---|
agent.pipeline | Configure pipeline settings for AI agent execution |
agent.claude | Send a prompt to Claude Code CLI and parse the structured response |
agent.codex | Send a prompt to OpenAI Codex CLI and parse the structured response |
agent.debug | Set global debug verbosity level (0=off, 1=info, 2=verbose, 3=trace) |
agent.log | Set the log file path for debug output |
agent.cost | Get pipeline cost and timing report for all executed steps |
agent.notify | Configure notification settings for pipeline events |
agent.model | Set or get the default AI model for all subsequent steps |
agent.prompt | Load a prompt template from a file with {{variable}} substitution |
agent.context | Manage conversation contexts for multi-turn AI interactions |
agent.batch | Process an array of items through an AI prompt with concurrency control |
agent.classify | Classify text into one of the given categories (sugar for common AI task) |
agent.extract | Extract structured fields from unstructured text as a JSON object |
agent.guard | Validate AI output against rules before passing it forward in the pipeline |
agent.claude "analyze" {"question": "What is 2+2?", "expectedOutput": "NUMBER"} into $answer
agent.codex "generate" {"question": "Write a hello world in Python", "expectedOutput": "CODE"} into $code
agent.debug 1
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
`);
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
@robinpath/openai — OpenAI module for complementary functionality@robinpath/anthropic — Anthropic module for complementary functionality@robinpath/ai — AI module for complementary functionality@robinpath/deepl — DeepL module for complementary functionality@robinpath/translate — Translate module for complementary functionalityMIT
FAQs
AI agent pipelines on top of the local Claude Code and OpenAI Codex CLIs — typed outputs, caching, retries, batching.
The npm package @robinpath/agent receives a total of 25 weekly downloads. As such, @robinpath/agent popularity was classified as not popular.
We found that @robinpath/agent demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

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.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.