Loading repository data…
Loading repository data…
parthalon025 / repository
Agent-driven development pipeline — Code Factory quality gates, entropy audit, lesson enforcement, and batch tooling.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Requires Claude Code. Built specifically for the Claude Code + Claude API ecosystem.
A collection of scripts, skills, and infrastructure for agent-driven software development. It implements a structured pipeline — from brainstorming through verified delivery — with quality gates between every batch, fresh AI context per execution unit, and a compounding lesson system that turns production bugs into automated checks.
Works as a Claude Code plugin (interactive sessions) or as standalone Bash scripts for headless, unattended CI/CD execution. The standalone scripts (scripts/) have no Claude Code dependency and integrate directly with any CI system that respects exit codes.
quality-gate.sh, lesson-check.sh, run-plan.sh) work independently and exit 0/1 for any CI systemCore insight: Plan quality dominates execution quality at roughly a 3:1 ratio. The pipeline enforces rigor at the stages where agent failures actually originate — not just at code review.
Brainstorm → Research → PRD → Plan → Worktree → Execute → Verify → AAR → Finish
Each stage exists because a specific failure mode demanded it:
| Stage | What It Does | Problem It Prevents |
|---|
| Brainstorm | Explore intent, surface edge cases, get approval before code | Agents building the wrong thing correctly |
| Research | Structured investigation producing durable artifacts | Decisions made on stale assumptions |
| PRD | Machine-verifiable acceptance criteria (tasks/prd.json) | "Done" meaning different things to agent and human |
| Plan | TDD-structured tasks at 2–5 minute granularity | Plans too coarse for quality gate insertion |
| Worktree | Isolated Git worktree with safety pre-checks | Concurrent agents corrupting shared staging area |
| Execute | Fresh Claude context per batch, quality gate between each | Context degradation degrading output quality |
| Verify | Evidence-based gate: run commands, read output | Completion claims without verification |
| AAR | After-action review, lesson capture | Repeating the same class of bug |
| Finish | PR creation, worktree cleanup | Lingering branches and broken editable installs |
Research basis: SWE-bench Pro (spec removal → 3x degradation), Context Rot (11/12 models below 50% at 32K tokens). Full citations in docs/RESEARCH.md.
npm install -g autonomous-coding-toolkit
Puts act on your PATH.
/plugin marketplace add parthalon025/autonomous-coding-toolkit
/plugin install autonomous-coding-toolkit@autonomous-coding-toolkit
git clone https://github.com/parthalon025/autonomous-coding-toolkit.git
cd autonomous-coding-toolkit
npm link
| Platform | Status | Notes |
|---|---|---|
| Linux | Supported | bash 4+, jq, git required |
| macOS | Supported | Install bash 4+ via brew install bash coreutils — macOS ships bash 3.2 |
| Windows | WSL only | wsl --install, then use from inside WSL |
# Bootstrap a project
act init --quickstart
# Full pipeline — interactive, with brainstorming gate
/autocode "Add paginated list endpoint with cursor-based navigation"
# Execute a plan headless — fresh context per batch, quality gates throughout
act plan docs/plans/my-feature.md --on-failure retry --notify
# Run the quality gate standalone
act gate --project-root .
# See all commands
act help
See examples/quickstart-plan.md for a minimal two-batch plan you can run in three commands.
All scripts live in scripts/. They can be invoked directly (standalone) or through the act CLI.
run-plan.sh — Headless batch executorParses a markdown plan file and executes each batch via claude -p, with a quality gate between batches and persistent state across context resets.
# Execute a plan from the beginning
scripts/run-plan.sh docs/plans/2026-02-20-feature.md
# Resume after an interruption
scripts/run-plan.sh --resume --worktree /path/to/worktree
# Retry failures, start from batch 3, send Telegram notifications
scripts/run-plan.sh docs/plans/feature.md --start-batch 3 --on-failure retry --notify
# Multi-Armed Bandit mode: two competing strategies, LLM judge picks winner
scripts/run-plan.sh docs/plans/feature.md --mab
# Parallel patch sampling: generate N candidates per batch, score, take winner
scripts/run-plan.sh docs/plans/feature.md --sample 3
Key options:
| Flag | Description |
|---|---|
--mode headless|team|competitive | Execution strategy (default: headless) |
--on-failure stop|skip|retry | Batch failure handling |
--max-retries N | Retry limit per batch (default: 2) |
--start-batch N / --end-batch N | Execute a range of batches |
--resume | Continue from saved .run-plan-state.json |
--mab | Thompson Sampling routing between competing agent strategies |
--sample N | Spawn N candidate patches per batch, score and pick winner |
--max-budget <dollars> | Abort if cumulative cost exceeds limit |
--verify | Run verification pass after all batches complete |
--notify | Send Telegram notifications on completion/failure |
State survives interruption via .run-plan-state.json. Execution context is assembled per-batch into a 6,000-character budget injected into CLAUDE.md before each Claude invocation.
quality-gate.sh — Composite quality gateRuns all checks in sequence, fails fast on the first failure. Designed to run between every batch in the Ralph loop or as a standalone pre-commit gate.
# Full gate (lesson check + lint + tests + memory warning)
scripts/quality-gate.sh --project-root .
# Fast inner-loop mode (skip lint and license audit)
scripts/quality-gate.sh --project-root . --quick
# Include dependency license audit
scripts/quality-gate.sh --project-root . --with-license
Checks in order:
| Step | What It Does | Fails Gate? |
|---|---|---|
| Toolkit validation | Runs validate-all.sh if present (toolkit self-check) | Yes |
| Lesson check | Scans changed files for known anti-patterns | Yes |
| Lint | ruff (Python) or eslint (Node), if configured | Yes |
| Structural analysis | ast-grep patterns for bare-except, empty-catch, async-no-await, retry-no-backoff, hardcoded-localhost | Advisory |
| Module size | Flags files over 300 lines | Advisory |
| Test suite | Auto-detects pytest / npm test / make test / bash test runner | Yes |
| License audit | Flags GPL/AGPL dependencies (--with-license only) | Yes |
| Memory check | Warns if available RAM < 4 GB | Warning only |
Exit 0 if all blocking checks pass. Telemetry is recorded automatically when called from run-plan.sh context.
lesson-check.sh — Anti-pattern detectorScans files for syntactic patterns extracted from the lessons database. Dynamic: adding a lesson automatically adds its check, no code changes needed.
# Check git-changed files in current directory (default)
scripts/lesson-check.sh
# Check specific files
scripts/lesson-check.sh src/api.py src/db.py
# Show detected project scope (scope-aware filtering)
scripts/lesson-check.sh --show-scope
# Override scope manually
scripts/lesson-check.sh --scope "language:python,domain:myproject" src/
# Bypass scope filtering — run all lessons
scripts/lesson-check.sh --all-scopes
Output format: file:line: [lesson-N] title — same as compiler errors, composable with other tools.
When lessons-db is installed (recommended), checks are sourced from the canonical SQLite database. Falls back to reading detection patterns directly from docs/lessons/*.md if the database is unavailable.
auto-compound.sh — Automated Code Factory pipelineFully automated end-to-end pipeline: reads a report, uses an LLM to identify the top priority, generates a PRD, creates a branch, runs the Ralph loop to completion, and opens a PR.
# Analyze latest report and execute the full pipeline
scripts/auto-compound.sh /path/to/project
# Point at a specific report
scripts/auto-compound.sh /path/to/project --report reports/2026-03-08-audit.md
# Preview what would happen without executing
scripts/auto-compound.sh /path/to/project --dry-run
# Limit iterations in case of runaway loop
scripts/auto-compound.sh /path/to/project --max-iterations 15
Pipeline stages: analyze-report.sh → /create-prd → git checkout -b compound/<slug> → Ralph loop with quality gates → gh pr create.
analyze-report.sh — LLM-powered priority extractionReads any markdown report (test failures, error logs, user feedback, metrics) and uses a local LLM to identify the single highest-impact fix. Outputs structured JSON consumed by auto-compound.sh.
# Analyze a report, output analysis.json
scripts/analyze-report.sh reports/weekly-audit.md
# Use a specific