# Tune

> Tune is an open-source agent skill for developer tools. Audits your agent setup against past sessions and proposes one-line harness fixes. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/duthaho/skillhub/tree/main/.claude/skills/tune
- **Repository:** https://github.com/duthaho/skillhub
- **GitHub stars:** 9
- **License:** MIT
- **Skill name:** tune
- **Collection:** https://github.com/duthaho/skillhub
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

Tune is a periodic retrospective for an AI coding agent's harness. It reads recent session transcripts from the current project, optionally across all projects, and looks for corrections the user keeps repeating, permission prompts approved over and over, tool errors that recur, and rules that are violated despite being written down. It also checks for rules, skills and allowlist entries that no longer earn their context cost.

The workflow inventories the existing CLAUDE.md files, installed skills and settings before mining, so findings are judged against the current setup. Mining is delegated to cheaper parallel workers, one per evidence stream. Findings need at least two occurrences to be proposed, and each is presented one at a time with quoted, dated evidence and an exact proposed change. The change is chosen from an escalation ladder that prefers the weakest mechanism likely to work, such as a rule, an allowlist entry, a script, or a hook. For mechanical changes, the skill injects the violation to confirm the new config actually blocks it.

Nothing is applied without explicit approval. Accepted and rejected decisions are logged to a local learnings file so rejected ideas are not raised again, and recurring principles can be promoted into a separate principles file. The skill expects Claude Code session transcripts on disk and the user's project directory layout.

## When your agent uses it

> Harness retro — turn recurring agent mistakes into one-line fixes. Mines recent session transcripts (plus the bugfix log and past runs) for repeated corrections, permission friction, and rules that get violated anyway, then proposes ranked changes one at a time: a CLAUDE.md rule, an allowlist entry, a script replacing repeated prose, a new-skill candidate, or a deletion that no longer earns its context cost. Nothing applies without approval; accepted/rejected findings persist in out/tune/learnings.md. Use when the user says "/tune", "improve my setup", "why does claude keep doing X", or after a frustrating session. done's one-line retro catches one lesson at ship time; tune is the periodic audit of the whole harness.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/duthaho/skillhub/tree/HEAD/.claude/skills/tune)
- [License: MIT](https://github.com/duthaho/skillhub/tree/HEAD/.claude/skills/tune)

## Features

- **Transcript mining:** Parallel workers scan recent sessions for repeated corrections, friction and violated rules.
- **Two-strike filtering:** Only mistakes that recur across sessions become proposals; single incidents are parked.
- **One-at-a-time proposals:** Each finding is shown with quoted evidence and an exact change for explicit approval.
- **Deletion review:** Flags rules and skills that no longer justify the context they consume.
- **Mechanism escalation:** Prefers a rule, allowlist entry or script over prose, and hooks only for hard blocks.
- **Learnings log:** Records accepted and rejected findings so past decisions guide future runs.

## Good for

- Find out why the agent keeps repeating the same mistake
- Reduce repeated permission prompts for safe commands
- Turn a procedure the agent re-derives every session into a script
- Trim a bloated CLAUDE.md of rules that no longer matter
- Review the harness after a frustrating session

## Install

### Claude Code

This skill ships in the `daily` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add duthaho/skillhub
/plugin install daily@skillhub
```

Or copy only this skill to `~/.claude/skills/tune`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/duthaho/skillhub.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/tune &&
cp -R "$tmp/.claude/skills/tune" ~/.claude/skills/tune &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/tune` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/tune` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/duthaho/skillhub.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/tune &&
cp -R "$tmp/.claude/skills/tune" ~/.agents/skills/tune &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/tune` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/tune` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/duthaho/skillhub.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/tune &&
cp -R "$tmp/.claude/skills/tune" ~/.cursor/skills/tune &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/tune` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/duthaho/skillhub.git --path .claude/skills/tune
```

Or copy the folder to `~/.gemini/skills/tune` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/tune`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/duthaho/skillhub.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/tune &&
cp -R "$tmp/.claude/skills/tune" ~/.copilot/skills/tune &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/tune` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/duthaho/skillhub.git
```

Then copy `skillhub/.claude/skills/tune` into your agent's skills folder as `tune`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the skill trigger?

When the user says /tune, asks to improve their setup, asks why the agent keeps doing something, or after a frustrating session.

### Does Tune change my configuration automatically?

No. Nothing is applied without an explicit yes for each proposed change.

### What does /tune all do?

It widens the mining to every project under the Claude projects directory, with shallower analysis per project.

### Where are findings stored?

Accepted and rejected findings persist in out/tune/learnings.md, and quotes are kept in out/tune/ files that should be gitignored.

### How do I install Tune in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/tune to use it in all your projects, or to .claude/skills/tune in one project. Or install the daily plugin, which includes it: /plugin marketplace add duthaho/skillhub, then /plugin install daily@skillhub.

### Does Tune run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Tune?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Tune?

The closest alternatives to Tune are Regression finder, Reflect, Review sessions, Retro and Scan sessions and learn.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Regression finder](https://ai-powered.com/skills/regression-finder): Regression finder is an open-source agent skill for developer tools.
- [Reflect](https://ai-powered.com/skills/reflect-michael-denyer): Reflect is an open-source agent skill for developer tools.
- [Review sessions](https://ai-powered.com/skills/review-sessions): Review sessions is an open-source agent skill for developer tools.
- [Retro](https://ai-powered.com/skills/retro-mattpocock): Retro is an open-source agent skill for developer tools.
- [Scan sessions and learn](https://ai-powered.com/skills/scan-sessions-and-learn): Scan sessions and learn is an open-source agent skill for developer tools.
- [System audit](https://ai-powered.com/skills/system-audit): System audit is an open-source agent skill for developer tools.
- [Config hygiene edho ferdian](https://ai-powered.com/skills/config-hygiene-edho-ferdian): Config hygiene edho ferdian is an open-source agent skill for developer tools.
- [Harness test drive](https://ai-powered.com/skills/harness-test-drive): Harness test drive is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/tune-duthaho
