miosa-osa/canopy/autoresearch
Claude Code and agent skill by miosa-osa/canopy
- community
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/autoresearchSKILL.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
Arguments
| Flag | Type | Default | Description | |
|---|---|---|---|---|
--metric | string | required | Command that produces a measurable result | |
--target | string | required | Success condition (number, comparison, or keyword) | |
--max-iter | int | 10 | Maximum improvement iterations | |
--stall-limit | int | 3 | Stop after N consecutive iterations with no improvement | |
--scope | string | . | Files or directories the agent may modify | |
--dry-run | flag | false | Show the improvement plan without executing | |
--resume | flag | false | Resume from last autoresearch session | |
--branch | string | autoresearch/<timestamp> | Git branch name for the experiment | |
--commit-each | flag | true | Commit each successful iteration | |
--verbose | flag | false | Show full metric output each iteration |
Workflow
- Baseline — Run the metric command on current code. Record the baseline score. Create a new git branch.
- Analyze — Read the metric output and the scoped source files. Identify the highest-impact area for improvement.
- Hypothesize — Form a single, testable change hypothesis. Write it to the commit message.
- Implement — Make the code change. Keep changes small and focused (one logical modification per iteration).
- Measure — Run the metric command again. Parse the result.
- Decide — Compare to previous best score. If improved or equal:
git commitwith hypothesis + result. If worse:git checkout -- .to revert. - Log — Record iteration number, hypothesis, before/after scores, and keep/revert decision.
- Repeat — Return to step 2 unless: target met, max iterations reached, or stall limit hit.
- Report — Summarize all iterations, net improvement, and final state. Optionally squash commits.
Examples
Improving test coverage
Output
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
- SKILL.md in the repositoryCheckinglibrary/skills/development/autoresearch/SKILL.md
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
[](https://verified-skill.com/skills/miosa-osa/canopy/autoresearch)