> ## Documentation Index
> Fetch the complete documentation index at: https://auto-sop.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Claude Code never makes the same mistake twice. auto-sop captures interactions, detects recurring mistakes, and writes enforced directives automatically.

# auto-sop

**Claude Code never makes the same mistake twice.**

auto-sop captures every Claude Code interaction, detects recurring mistakes, and writes enforced directives to your project's `CLAUDE.md` — automatically. Zero manual upkeep.

## What it does

Every time you use Claude Code, auto-sop silently captures tool calls and outcomes. When it detects a recurring pattern — the same mistake happening three or more times — it writes a directive to your `CLAUDE.md` that prevents it from happening again.

<CardGroup cols={3}>
  <Card title="Zero manual upkeep" icon="wand-magic-sparkles">
    No need to write or maintain CLAUDE.md rules by hand. auto-sop observes real mistakes and writes directives for you.
  </Card>

  <Card title="Works silently" icon="eye-slash">
    Hook shim adds less than 50ms overhead. Captures happen in the background — your workflow stays uninterrupted.
  </Card>

  <Card title="Learns from reality" icon="brain">
    Directives come from actual mistakes in your codebase, not generic best practices. Every rule has evidence behind it.
  </Card>
</CardGroup>

## How it works

```
Observe → Detect → Write → Prevent
```

1. **Observe** — Hook shim captures every tool call Claude Code makes
2. **Detect** — Learner finds patterns (3+ occurrences) and validates with LLM analysis
3. **Write** — Directives are written to a managed section in `CLAUDE.md`
4. **Prevent** — Claude Code reads directives on every session and avoids the same mistakes

<Tip>
  All processing happens locally on your machine. Cloud sync is optional and always encrypted.
</Tip>

## Who it's for

auto-sop is built for developers who use Claude Code daily and want it to get smarter over time — without manually curating rules.

Whether you're a solo developer or part of a team, auto-sop turns your Claude Code sessions into a continuously improving knowledge base.

## Pricing

<CardGroup cols={2}>
  <Card title="Free (forever)" icon="gift">
    * **1 project**, unlimited directives
    * All CLI commands included
    * Full local capture + LLM analysis
    * Cloud sync for 1 project (stats + dashboard)
    * Uses your Claude Max subscription (\$0 cost)
    * Elastic License 2.0 (ELv2)
  </Card>

  <Card title="Pro" icon="rocket">
    * **Unlimited projects**
    * Full cloud sync (stats + directives)
    * Cross-machine directives
    * Web dashboard with analytics
    * Curated directive packs
    * No credit card on trial
  </Card>
</CardGroup>

## Next steps

<Card title="Quickstart" icon="rocket" href="/docs/docs/quickstart">
  Install auto-sop and get your first directive in 5 minutes.
</Card>
