# Repository Briefing: tigerless-labs/autoharness
> Source: https://repoforai.com/repo/tigerless-labs/autoharness (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/tigerless-labs/autoharness
- **Official Docs / Website**: https://github.com/tigerless-labs/autoharness
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A (84/100 · Maintenance 35/35 · Adoption 18/25 · Releases 11/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI
- **Momentum**: 10,484 ★ total (+2 24h / +434 7d) · 666 forks
- **Topics**: `agent-skills`, `claude-code`, `claude-code-plugin`, `llm-agents`, `python`
- **When to Use**: Best for: Claude Code teams with recurring workflows that want to turn session lessons into auditable native skills and can review generated guidance during a project-scoped trial. Skip if: You need every edit approved before it lands, measured task improvements as a promotion gate, or a deployment whose model processing is verified to stay offline.

## Overview
```text
### Architecture & Core Mechanics
AutoHarness is a Claude Code plugin written in Python with no third-party Python dependencies. Capture hooks count tool calls and trigger reflection at the end of the turn that crosses the threshold. Capture references the host transcript rather than copying the complete log, and applies redaction when captured data is passed onward. The reflector compares the episode with the skill index and submits a proposed change through the plugin-scoped `stage_skill` MCP tool; it does not write directly to the live library.

The promoter is the sole writer. It checks safety, structure, ledger requirements, completeness, and ownership before promoting a valid intent into the live skill directory with an atomic rename. Skills remain native `SKILL.md` directories. Claude Code's name-and-description discovery stays in place, with a grouped index of AutoHarness-authored skills added at session start.

### Key Capabilities & Differentiators
Reflection can create or patch a skill, fold same-scenario skills together, remove a support file, or propose deletion. Before creating a duplicate, it checks read-only owners such as archived skills, installed plugin skills, scheduled tasks, `CLAUDE.md`, and project auto-memory. If the lesson belongs to one of those owners, AutoHarness records a suggestion instead of editing the owner or creating another skill. A fold identifies the surviving skill so that consolidation can be distinguished from retirement.

Learning can run automatically or on demand via `/learn`. Skills can live at project or global scope. Each generated skill has a `.ledger.jsonl` for change history and a `.sidecar.json` for lifecycle counters; supporting transcript excerpts can land under `references/evidence-*.md`. Per-run JSON records proposals, accepted changes, and rejections with reasons, giving operators a way to audit automated changes.

### Trade-offs & Limitations
Compared with an unbounded skill library, AutoHarness adds consolidation and pruning. Compared with offline benchmark-gated self-editing, it avoids a dedicated evaluation loop and uses observed adherence: skill loads relative to requests for which the skill was available. This makes retention possible during ordinary work, but a load is not proof of correctness or task improvement. A rarely needed skill may also have little opportunity to demonstrate its value.

Unlike a timer-and-daemon design, learning is tied to work performed in the session. That avoids a resident daemon but still incurs model work for reflection and disk use for evidence and snapshots. The self-authored-only boundary limits unintended changes to existing guidance; the trade-off is that a stale hand-maintained instruction still needs human follow-up. Transcript-derived evidence deserves a retention review even when capture applies redaction.

### Hardware & Deployment Guide
Install from Claude Code with `/plugin marketplace add tigerless-labs/autoharness` and `/plugin install autoharness@autoharness`, then run `/reload-plugins` or restart Claude Code. Hooks and MCP require Python 3.11+ as the `python3` resolved on `PATH`; an older interpreter earlier on `PATH` disables the hooks for that session. This is a host-integrated plugin, not a standalone inference service. No tagged release is listed.

Start a trial with `AUTOHARNESS_DISABLE_GLOBAL=1` to keep the global library untouched. The default project skill directory is `.claude/skills/`; `AUTOHARNESS_PROJECT_DIR` changes the project layer directory, `AUTOHARNESS_GLOBAL_ROOT` redirects the global layer, and `AUTOHARNESS_STATE_HOME` relocates state and archives. Uninstalling stops the plugin but leaves generated skills and state on disk, so cleanup must be planned separately.
```

## Key Capabilities
```text
- Trigger: End-of-turn reflection is driven by a tool-call threshold; `/learn` invokes the same pipeline on demand.
- Write boundary: The reflector stages intents through plugin-scoped MCP; only the promoter can land validated edits to self-authored skills.
- Deduplication: Read-only owners such as `CLAUDE.md` and installed plugin skills receive suggestions rather than edits or duplicate skills.
- Recall: A grouped session-start index supplements Claude Code's native skill discovery without replacing it.
- Traceability: `.ledger.jsonl` records skill decisions, and run JSON records landed and rejected proposals with reasons.
- Isolation: `AUTOHARNESS_DISABLE_GLOBAL`, `AUTOHARNESS_GLOBAL_ROOT`, and `AUTOHARNESS_STATE_HOME` control managed scope and state placement.
```

## Quick Start / Clone
```bash
/plugin marketplace add tigerless-labs/autoharness
/plugin install autoharness@autoharness
```
