agent-optimizer

Record execution trajectories and gather rewards to optimize agent performance.

1|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/sandmark78/workspace --skill agent-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-optimizer
Source: https://github.com/sandmark78/workspace/tree/main/skills/agent-optimizer
Command: npx skills add https://github.com/sandmark78/workspace --skill agent-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Optimizes agent performance by recording execution trajectories and gathering rewards to drive continuous improvement.

Core Features & Use Cases

  • Trajectory recording: automatically log task inputs, outputs, tool usage, and timings for later analysis.
  • Reward shaping: support for multiple reward signals and trend analysis to guide optimization.
  • Prompt optimization: iterate prompts via A/B tests and maintain version history for safe rollbacks.
  • Performance analytics: compute metrics like average reward, success rate, and ROI to identify improvement opportunities.

Quick Start

Initialize the optimizer in your agent workspace and run the provided scripts to start recording trajectories.

Frequently Asked Questions about agent-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize agent performance using execution trajectories and reward feedback?

Agent performance optimization uses trajectory recording to log task inputs, tool usage, and timings, then gathers reward signals to analyze trends and guide continuous improvement across federated environments.

What is reward shaping and how does it support trajectory tracking for agents?

Reward shaping applies multiple reward signals to execution trajectories, analyzing trends to guide optimization. Trajectory tracking logs task inputs, outputs, and tool usage timings to provide the data needed for this analysis.

How do I run A/B tests for prompt optimization and maintain version history?

Prompt optimization iterates via A/B tests to compare performance and maintains version history, enabling safe rollbacks to previous prompt versions if the new configurations underperform during execution.

Can I use trajectory tracking and performance analytics in federated agent environments?

Yes, trajectory tracking and performance analytics apply to federated agent environments and tutorial or data-collection tasks, computing metrics like average reward, success rate, and ROI without external dependencies.

Do I need external dependencies to record execution trajectories and compute performance analytics?

No external dependencies are required beyond the Python standard library and a configured workspace. You can initialize the optimizer in your agent workspace and run provided scripts to start recording trajectories.

What is the best way to analyze agent performance metrics like average reward and ROI?

Performance analytics computes average reward, success rate, and ROI by recording execution trajectories. Running the provided scripts in your configured workspace automatically logs the necessary data to identify improvement opportunities.