
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
In-Context Reinforcement Learning for LLM agents in TypeScript.
npm install icrl
Install at least one provider SDK:
npm install openai
# or
npm install @anthropic-ai/sdk
import OpenAI from "openai";
import { Agent, FileSystemAdapter, OpenAIEmbedder, OpenAIProvider } from "icrl";
const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
const agent = new Agent({
llm: new OpenAIProvider(openai, { model: "gpt-4o" }),
embedder: new OpenAIEmbedder(openai, { model: "text-embedding-3-small" }),
storage: new FileSystemAdapter("./trajectories"),
planPrompt: `Goal: {goal}\n\nExamples:\n{examples}\n\nCreate a plan.`,
reasonPrompt: `Goal: {goal}\nPlan: {plan}\n\nObservation: {observation}\nHistory:\n{history}\n\nExamples:\n{examples}\n\nReason about the next step.`,
actPrompt: `Goal: {goal}\nPlan: {plan}\nReasoning: {reasoning}\n\nReturn only the next action.`,
k: 3,
maxSteps: 30,
});
await agent.init();
// Train (stores successful trajectories)
const trained = await agent.train(env, "Complete the task");
// Run (retrieves examples, no new storage)
const result = await agent.run(env, "Complete another task");
Main exports:
AgentFileSystemAdapterOpenAIProviderOpenAIEmbedderAnthropicProviderAnthropicVertexProviderTrajectoryDatabaseEnvironment, StepResult, LLMProvider, EmbedderFull docs and guides: icrl.dev
From icrl-ts/:
npm install
npm run build
npm run typecheck
npm run tests:run
Run examples:
npm run examples:run
npm whoami
npm install
npm run release:check
npm version patch # or minor / major
npm publish --access public
git push origin main --follow-tags
MIT
FAQs
In-Context Reinforcement Learning for LLM Agents
We found that icrl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.