optim-agent
Use when the user wants to optimize configurable system parameters against a measurable scalar objective, especially for model training, inference…
Skill by Optim-Agent
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/optim-agent-optim-agent
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml, research, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 5
anthropic.com· found in codearchive.ics.uci.edu· found in codecodeload.github.com· found in install commandgithub.com· found in codeoptim-agent.github.io· found in code
Files it touches
~/.claude/skills/optim-agent/tmp/claude-501/optim-plans-claude-config-1de367e987e047698f771c33c3653172/tmp/claude-501/optim-plans-claude-config-2e204287307d4263948b3c181f5bdab7/tmp/claude-501/optim-plans-claude-config-8229560c675549b99cf12002f6d3eee8/tmp/claude-501/optim-plans-ruff-cache/tmp/claude-501/optim-plans-run-1de367e987e047698f771c33c3653172/tmp/claude-501/optim-plans-run-2e204287307d4263948b3c181f5bdab7/tmp/claude-501/optim-plans-run-8229560c675549b99cf12002f6d3eee8/Users/zhuofan/.local/bin/claude/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/1de367e987e047698f771c33c3653172/executor-plugin/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/1de367e987e047698f771c33c3653172/executor-plugin/.keep/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/1de367e987e047698f771c33c3653172/executor-settings.json/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/2e204287307d4263948b3c181f5bdab7/executor-plugin/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/2e204287307d4263948b3c181f5bdab7/executor-plugin/.keep/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/2e204287307d4263948b3c181f5bdab7/executor-settings.json/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/40b13e0d7b8846908e7b20a8b5466f5f/executor-plugin/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/40b13e0d7b8846908e7b20a8b5466f5f/executor-plugin/.keep/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/40b13e0d7b8846908e7b20a8b5466f5f/executor-settings.json/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/462d48dc9e2649689499e45b5133cc28/executor-plugin/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/462d48dc9e2649689499e45b5133cc28/executor-plugin/.keep/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/462d48dc9e2649689499e45b5133cc28/executor-settings.json/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/8229560c675549b99cf12002f6d3eee8/executor-plugin/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/8229560c675549b99cf12002f6d3eee8/executor-plugin/.keep/Users/zhuofan/ClaudeExp/optim-agent/.git/optim-plans/runs/8229560c675549b99cf12002f6d3eee8/executor-settings.json
What's inside
- Skill name
optim-agent- Description
- Use when the user wants to optimize configurable system parameters against a measurable scalar objective, especially for model training, inference, quantitative strategies, reinforcement learning, scientific workflows, or other expensive black-box evaluations where reading the project can improve trial selection.
- License
- MIT
- Instructions
- 117 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (200)
- marketplace.json · .agents/plugins/
- marketplace.json · .claude-plugin/
- bug_report.md · .github/ISSUE_TEMPLATE/
- feature_request.md · .github/ISSUE_TEMPLATE/
- dependabot.yml · .github/
- pull_request_template.md · .github/
- ci.yml · .github/workflows/
- docs.yml · .github/workflows/
- .gitignore
- .pre-commit-config.yaml
- CHANGELOG.md
- CITATION.cff
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- LICENSE
- README.md
- ROADMAP.md
- SECURITY.md
- SKILL.md
- README.md · benchmarks/
- manifest.json · benchmarks/
- cifar10_curves_GPT-5.5-medium-no-context_s0.json · docs/assets/
- cifar10_curves_GPT-5.5-medium-no-context_s1.json · docs/assets/
- cifar10_curves_GPT-5.5-medium-no-context_s2.json · docs/assets/
- cifar10_curves_GPT-5.5-medium-no-context_s3.json · docs/assets/
- cifar10_curves_GPT-5.5-medium-no-context_s4.json · docs/assets/
- cifar10_curves_GPT-5.5-medium_s0.json · docs/assets/
- cifar10_curves_GPT-5.5-medium_s1.json · docs/assets/
- cifar10_curves_GPT-5.5-medium_s2.json · docs/assets/
- cifar10_curves_GPT-5.5-medium_s3.json · docs/assets/
- cifar10_curves_GPT-5.5-medium_s4.json · docs/assets/
- cifar10_curves_Random_s0.json · docs/assets/
- cifar10_curves_Random_s1.json · docs/assets/
- cifar10_curves_Random_s2.json · docs/assets/
- cifar10_curves_Random_s3.json · docs/assets/
- cifar10_curves_Random_s4.json · docs/assets/
- cifar10_curves_TPE_s0.json · docs/assets/
- cifar10_curves_TPE_s1.json · docs/assets/
- cifar10_curves_TPE_s2.json · docs/assets/
- cifar10_curves_TPE_s3.json · docs/assets/
- cifar10_curves_TPE_s4.json · docs/assets/
- classification_benchmarks.png · docs/assets/
- credit_card.png · docs/assets/
- credit_default_GP-BO_s0.json · docs/assets/
- credit_default_GP-BO_s1.json · docs/assets/
- credit_default_GP-BO_s2.json · docs/assets/
- credit_default_GP-BO_s3.json · docs/assets/
- credit_default_GP-BO_s4.json · docs/assets/
- credit_default_GPT-5.5-no-context_s0.json · docs/assets/
- credit_default_GPT-5.5-no-context_s1.json · docs/assets/
- credit_default_GPT-5.5-no-context_s2.json · docs/assets/
- credit_default_GPT-5.5-no-context_s3.json · docs/assets/
- credit_default_GPT-5.5-no-context_s4.json · docs/assets/
- credit_default_GPT-5.5_s0.json · docs/assets/
- credit_default_GPT-5.5_s1.json · docs/assets/
- credit_default_GPT-5.5_s2.json · docs/assets/
- credit_default_GPT-5.5_s3.json · docs/assets/
- credit_default_GPT-5.5_s4.json · docs/assets/
- credit_default_Random_s0.json · docs/assets/
- credit_default_Random_s1.json · docs/assets/
- …and 140 more
SKILL.md (first lines)
# optim-agent
Act as the sampler inside any coding-agent session: Claude Code, Codex,
OpenCode/OpenClaw, or another agent that can read project files and run shell
commands. Read the project to understand parameter meaning and interactions,
propose one configuration, run the real evaluator, and record the result
through optim-agent's ask/tell API. Let the measured objective, not the agent's
intuition, decide what works.
## Load the workflow
Use this file as the operating guide for the active coding agent. In Codex, it
can be installed directly from GitHub:
```text
$skill-installer install https://github.com/Optim-Agent/optim-agent
```
In Claude Code, OpenCode/OpenClaw, or another coding-agent environment, place
this repository or `SKILL.md` in the agent-visible workspace and ask the agent
to follow the optim-agent workflow. The workflow does not depend on Codex-only
APIs; it needs file access, shell access, and Python.
Ensure the Python package is importable. Choose one source; do not install both:
```bash
# Stable release from PyPI
python -m pip install optim-agent
# Latest source from GitHub
python -m pip install "optim-agent @ git+https://github.com/Optim-Agent/optim-agent.git"
```
For a reproducible GitHub install, append `@<tag-or-commit>` after `.git`.
## Workflow
1. **Understand the system.** Read the evaluation entry point and every file
that defines the target parameters. Record each parameter's type, legal
range, semantics, interactions, and operational constraints.
2. **Define the experiment.** Confirm the scalar objective, `minimize` or
`maximize`, trial budget, evaluation command, runtime/cost limit, and fixed
workload or seed. For multiple metrics or hard constraints, agree on one
scalar feasibility or penalty rule before running trials.
3. **Establish a baseline.** Evaluate the current/default configuration with the
same command and environment used for every later trial.
4. **Initialize or resume.** Keep artifacts in the repository's ignored
`.optim-agent-runs/` directory:
```bash
if git rev-parse --git-dir >/dev/null 2>&1 && ! git check-ignore -q .optim-agent-runs/; then
printf '/.optim-agent-runs/\n' >> "$(git rev-parse --git-path info/exclude)"
fi
```
```python
from pathlib import Path
import optim_agent as oa
run_dir = Path(".optim-agent-runs")
run_dir.mkdir(exist_ok=True)
study = oa.create_study(
direction="minimize",
storage=run_dir / "skill-study.json",
seed=0,
)
print([(t.params, t.value, t.state) for t in study.trials])
```
5. **Run one informed trial.** Choose parameters from code understanding and all
completed history, then use explicit ask/tell:
```python
params = {"threshold": 0.72, "budget": 80}
trial = study.ask(params)
try:
value = evaluate_system(**trial.params)
except Exception:
study.tell(trial, state="failed")
raise
else:
study.tell(trial, value)
```
For a deliberately stopped trial, report the latest valid intermediate
metric first, then call `study.tell(trial, state="pruned")`.
6. **Select the next point.** Avoid accidental repeats, explore broadly before
exploiting, respect bounds and constraints, and treat failed regions as
evidence. If the evaluator is noisy, repeat promising configurations under
the same workload before declaring a winner.
7. **Stop and report.** Stop at the approved budget or stopping condition.
Report the baseline, best value and parameters, trial count, failed/pruned
trials, convergence trend, and exact reproduction command.
## Recovery
JSON storage records a trial when `study.tell` runs. Before launching an
expensive external evaluation, save its parameters, command, and output path in
a per-trial directory under `.optim-agent-runs/`. After interruption, inspect
that output before rerunning: if a valid result exists, recreate the same point
with `study.ask(params)` and record it; otherwise rerun it deliberately.
Use SQLite storage (`skill-study.db`) only when the user explicitly wants
multiple processes. Sequential trials are the default because each proposal
should use the complete prior history.
## Rules
- Use ask/tell in skill mode; do not delegate proposal selection to
`AgentSampler` when the session agent is meant to read and reason over code.
- Keep evaluation inputs and outputs isolated from production configuration.
- Never fabricate, infer, or manually improve an objective value.
- Record crashes as `failed`; record intentional early stops as `pruned`.
- Preserve the study and trial artifacts so the result is auditable and resumable.
- Do not tune secrets, credentials, or unbounded parameters.From Optim-Agent/optim-agent, MIT.
Signals
- Stars
- 797
- Forks
- 42
- Open issues
- 1
- Last commit
- Aug 14, 2026 (2 months ago)
- Last release
- Jul 14, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Optim-Agent/optim-agent
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Optim-Agent
Cite this page
optim-agent skill. Agent Mart. https://agentmart.dev/skills/optim-agent-optim-agent (last updated 2026-10-24)