miosa-osa/canopy/autoresearch

Claude Code and agent skill by miosa-osa/canopy

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Autonomous iterative improvement loop. Agent modifies code, verifies against metrics, keeps improvements or reverts failures, and repeats. Uses git as memory — each change is committed, measured, and kept or discarded. Runs until a target metric is hit or max iterations reached. Triggers on: "autoresearch", "auto improve", "iterative improvement", "autonomous loop", "hill climb"

Install

npx vskill@latest install miosa-osa/canopy/autoresearch

SKILL.md

The same SKILL.md was published earlier as miosa-osa/canopy/autoresearch.

/autoresearch

Autonomous code improvement through iterative experiment-and-measure cycles.

Purpose

Run an autonomous loop that improves code against a measurable metric. Each iteration: the agent analyzes current performance, hypothesizes an improvement, implements it, commits it, runs the metric, and decides keep-or-revert. Git history becomes the experiment log. The loop continues until the target is met, max iterations are exhausted, or no progress is made for N consecutive rounds.

Usage

bash
# Basic — improve test pass rate
/autoresearch --metric "mix test --cover" --target 95
# Improve benchmark performance
/autoresearch --metric "cargo bench --output json" --target "p99 < 10ms" --max-iter 20
# Improve code quality score
/autoresearch --metric "npx eslint . --format json | jq '.errorCount'" --target 0
# Dry run — show plan without executing
/autoresearch --metric "pytest" --target "all pass" --dry-run
# Resume a previous session
/autoresearch --resume
# Limit scope to specific files
/autoresearch --metric "mix test test/parser_test.exs" --target "0 failures" --scope "lib/parser.ex"

Arguments

FlagTypeDefaultDescription
--metricstringrequiredCommand that produces a measurable result
--targetstringrequiredSuccess condition (number, comparison, or keyword)
--max-iterint10Maximum improvement iterations
--stall-limitint3Stop after N consecutive iterations with no improvement
--scopestring.Files or directories the agent may modify
--dry-runflagfalseShow the improvement plan without executing
--resumeflagfalseResume from last autoresearch session
--branchstringautoresearch/<timestamp>Git branch name for the experiment
--commit-eachflagtrueCommit each successful iteration
--verboseflagfalseShow full metric output each iteration

Workflow

  1. Baseline — Run the metric command on current code. Record the baseline score. Create a new git branch.
  2. Analyze — Read the metric output and the scoped source files. Identify the highest-impact area for improvement.
  3. Hypothesize — Form a single, testable change hypothesis. Write it to the commit message.
  4. Implement — Make the code change. Keep changes small and focused (one logical modification per iteration).
  5. Measure — Run the metric command again. Parse the result.
  6. Decide — Compare to previous best score. If improved or equal: git commit with hypothesis + result. If worse: git checkout -- . to revert.
  7. Log — Record iteration number, hypothesis, before/after scores, and keep/revert decision.
  8. Repeat — Return to step 2 unless: target met, max iterations reached, or stall limit hit.
  9. Report — Summarize all iterations, net improvement, and final state. Optionally squash commits.

Examples

Improving test coverage
/autoresearch --metric "mix test --cover | grep 'Total:'" --target 90 --scope "lib/"
## Autoresearch — Session ar-20260320-1
| Iter | Hypothesis | Before | After | Decision |
|------|-----------|--------|-------|----------|
| 1 | Add missing tests for Parser.parse_header/1 edge cases | 72.3% | 78.1% | KEEP |
| 2 | Cover error branches in Validator.check/2 | 78.1% | 83.4% | KEEP |
| 3 | Add property tests for Encoder module | 83.4% | 82.9% | REVERT |
| 4 | Test Encoder.encode/1 boundary inputs directly | 83.4% | 88.7% | KEEP |
| 5 | Cover remaining uncovered functions in Formatter | 88.7% | 91.2% | KEEP |
Result: TARGET MET (91.2% >= 90%)
Branch: autoresearch/20260320-143022 (5 commits, 2 reverted)

Output

markdown
## Autoresearch Complete
-**Branch**: autoresearch/20260320-143022
-**Iterations**: 7 (5 kept, 2 reverted)
-**Baseline**: 72.3%
-**Final**: 91.2%
-**Target**: 90% — MET
-**Net improvement**: +18.9%
### Iteration Log
| # | Hypothesis | Score | Delta | Decision |
|---|-----------|-------|-------|----------|
| 1 | ... | 78.1% | +5.8 | KEEP |
| ... | ... | ... | ... | ... |
### Recommended Next Steps
-Merge branch or cherry-pick successful commits
-Run full test suite to confirm no regressions

Dependencies

  • Git (branching, committing, reverting)
  • A runnable metric command that produces parseable output
  • /commit — Used for each successful iteration
  • File system access to scoped source files

Security

  • Security scanPassed, 93 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
229
Repository forks
54
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/miosa-osa/canopy/autoresearch/badge)](https://verified-skill.com/skills/miosa-osa/canopy/autoresearch)

Something wrong with this skill or its page? Tell us.