autoresearch-create
Set up and run an autonomous experiment loop for any optimization target.
Skill by lseman
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/lseman-autoresearch-create
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
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
autoresearch-create- Description
- Set up and run an autonomous experiment loop for any optimization target. Gathers what to optimize, then starts the loop immediately. Use when asked to "run autoresearch", "optimize X in a loop", "set up autoresearch for X", or "start experiments".
- License
- MIT
- Instructions
- 157 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Autoresearch
Autonomous experiment loop: try ideas, keep what works, discard what doesn't, never stop.
## Tools
- **`init_experiment`** — configure session (name, metric, unit, direction). Call again to re-initialize with a new baseline when the optimization target changes.
- **`run_experiment`** — runs command, times it, captures output.
- **`log_experiment`** — records result. `keep` auto-commits. `discard`/`crash`/`checks_failed` auto-reverts code changes (autoresearch files preserved). Always include secondary `metrics` dict. Dashboard: ctrl+shift+t.
## Session files
All session files live in a single `.auto/` subfolder at the working directory root. This keeps everything in one place — easy to preserve across reverts, gitignore, and clean up.
| File | Purpose |
|------|---------|
| `.auto/prompt.md` | Experiment prompt / playbook (heart of the session) |
| `.auto/measure.sh` | Benchmark script — emits `METRIC name=value` lines |
| `.auto/log.jsonl` | Append-only result log (written by the tools) |
| `.auto/ideas.md` | Ideas backlog (optional) |
| `.auto/checks.sh` | Correctness checks (optional) |
| `.auto/config.json` | Session config (optional) |
| `.auto/hooks/{before,after}.sh` | Lifecycle hooks (optional) |
> Always create files in the `.auto/` layout. Legacy flat `autoresearch.*` files are still read for in-flight sessions, but new sessions should use `.auto/`.
## Setup
1. Ask (or infer): **Goal**, **Command**, **Metric** (+ direction), **Files in scope**, **Constraints**.
2. `git checkout -b autoresearch/<goal>-<date>`
3. Read the source files. Understand the workload deeply before writing anything.
4. `mkdir -p .auto`, then write `.auto/prompt.md` and `.auto/measure.sh` (see below). Commit both.
5. `init_experiment` → run baseline → `log_experiment` → start looping immediately.
### `.auto/prompt.md`
This is the heart of the session. A fresh agent with no context should be able to read this file and run the loop effectively. Invest time making it excellent.
```markdown
# Autoresearch: <goal>
## Objective
<Specific description of what we're optimizing and the workload.>
## Metrics
- **Primary**: <name> (<unit>, lower/higher is better) — the optimization target
- **Secondary**: <name>, <name>, ... — independent tradeoff monitors
## How to Run
`./.auto/measure.sh` — outputs `METRIC name=number` lines.
## Files in Scope
<Every file the agent may modify, with a brief note on what it does.>
## Off Limits
<What must NOT be touched.>
## Constraints
<Hard rules: tests must pass, no new deps, etc.>
## What's Been Tried
<Update this section as experiments accumulate. Note key wins, dead ends,
and architectural insights so the agent doesn't repeat failed approaches.>
```
Update `.auto/prompt.md` periodically — especially the "What's Been Tried" section — so resuming agents have full context.
### `.auto/measure.sh`
Bash script (`set -euo pipefail`) that: pre-checks fast (syntax errors in <1s), runs the benchmark, and outputs structured lines to stdout. Keep the script fast — every second is multiplied by hundreds of runs.
**For fast, noisy benchmarks** (< 5s), run the workload multiple times inside the script and report the median. This produces stable data points and makes the confidence score reliable from the start. Slow workloads (ML training, large builds) don't need this — single runs are fine.
#### Structured output
- `METRIC name=value` — primary metric (must match `init_experiment`'s `metric_name`) and any secondary metrics. Parsed automatically by `run_experiment`.
#### Design the script to inform optimization
The script should output **whatever data helps you make better decisions in the next iteration.** Think about what you'll need to see after each run to know where to focus:
- Phase timings when the workload has distinct stages
- Error counts, failure categories, or test names when checks can fail in different ways
- Memory usage, cache hit rates, or other runtime diagnostics when relevant
- Anything domain-specific that would help localize regressions or identify bottlenecks
The script runs the same code every iteration — but you can **update it during the loop** if you discover you need more signal. Add instrumentation as you learn what matters.
#### Agent-supplied ASI via `log_experiment`
Use `log_experiment`'s `asi` parameter to annotate each run with **whatever would help the next iteration make a better decision.** Free-form key/value pairs — you decide what's worth recording. Don't repeat the description or raw output; capture what you'd lose after a context reset.
**Annotate failures and crashes heavily.** Discarded and crashed runs are reverted — the code changes are gone. The only record that survives is the description and ASI in `.auto/log.jsonl`. If you don't capture what you tried and why it failed, future iterations will waste time re-discovering the same dead ends.
### `.auto/config.json` (optional)
JSON config file that lives in `.auto/` under the pi session's working directory (`ctx.cwd`). Supported fields:
- **`maxIterations`** (number) — maximum experiments before auto-stopping.
- **`workingDir`** (string) — override the directory for all autoresearch operations: file I/O (`.auto/log.jsonl`, `.auto/prompt.md`, `.auto/measure.sh`, `.auto/checks.sh`, `.auto/ideas.md`), command execution, and git operations. Supports absolute paths or relative paths (resolved against `ctx.cwd`). The config file itself always stays under `ctx.cwd`. Fails if the directory doesn't exist.
```json
{
"workingDir": "/path/to/project",
"maxIterations": 50
}
```
### `.auto/checks.sh` (optional)
Bash script (`set -euo pipefail`) for backpressure/correctness checks: tests, types, lint, etc. **Only create this file when the user's constraints require correctness validation** (e.g., "tests must pass", "types must check").
When this file exists:
- Runs automatically after every **passing** benchmark in `run_experiment`.
- If checks fail, `run_experiment` reports it clearly — log as `checks_failed`.
- Its execution time does **NOT** affect the primary metric.
- You cannot `keep` a result when checks have failed.
- Has a separate timeout (default 300s, configurable via `checks_timeout_seconds`).From lseman/logician, MIT.
More from lseman/logician
- 0.547score
autoresearch-hooks
lseman
Author pre/post-iteration hooks for an autoresearch session.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
eoh
lseman
Evolution of Heuristics (EoH) — arxiv 2401.02051.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
autoresearch-finalize
lseman
Finalize an autoresearch session into clean, reviewable branches.
SkillBFreshness: B★ 1Claude Code +9 - 0.533score
eval-review
lseman
Audit an executed AI phase's evaluation coverage and produce an EVAL-REVIEW.md remediation plan.
SkillBFreshness: B★ 1Claude Code +9 - 0.533score
ai-integration-phase
lseman
Generate an AI-SPEC.md design contract for phases that involve building AI systems.
SkillBFreshness: B★ 1Claude Code +9 - 0.533score
config
lseman
Configure GSD settings — workflow toggles, advanced knobs, integrations, and model profile
SkillBFreshness: B★ 1Claude Code +9 - 0.530score
capture
lseman
Capture ideas, tasks, notes, and seeds to their destination
SkillBFreshness: B★ 1Claude Code +9 - 0.529score
discuss-phase
lseman
Gather phase context through adaptive questioning before planning.
SkillBFreshness: B★ 1Claude Code +9 - 0.297score
academic
lseman
No description from the publisher yet.
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 14, 2026 (2 months ago)
- Last release
- Aug 9, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/lseman/logician
- Website
- logician.laioseman.com/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from lseman
- 0.547score
autoresearch-hooks
lseman
Author pre/post-iteration hooks for an autoresearch session.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
autoresearch-finalize
lseman
Finalize an autoresearch session into clean, reviewable branches.
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
eoh
lseman
Evolution of Heuristics (EoH) — arxiv 2401.02051.
SkillBFreshness: B★ 1Claude Code +9 - 0.533score
eval-review
lseman
Audit an executed AI phase's evaluation coverage and produce an EVAL-REVIEW.md remediation plan.
SkillBFreshness: B★ 1Claude Code +9 - 0.533score
ai-integration-phase
lseman
Generate an AI-SPEC.md design contract for phases that involve building AI systems.
SkillBFreshness: B★ 1Claude Code +9 - 0.533score
config
lseman
Configure GSD settings — workflow toggles, advanced knobs, integrations, and model profile
SkillBFreshness: B★ 1Claude Code +9
Cite this page
autoresearch-create skill. Agent Mart. https://agentmart.dev/skills/lseman-autoresearch-create (last updated 2026-10-24)