amplihack¶
Agentic coding framework for Claude Code, Microsoft Amplifier, GitHub Copilot CLI, and Codex that uses specialized AI agents to accelerate software development through intelligent automation and collaborative problem-solving.
What is amplihack?¶
amplihack is a development framework for popular coding agent systems (Claude Code, Microsoft Amplifier, GitHub Copilot CLI, and Codex) that leverages multiple specialized AI agents working together to handle complex software development tasks. It combines ruthless simplicity with powerful capabilities to make AI-assisted development more effective and maintainable.
Quick Navigation¶
New to amplihack? Start here:
- Get Started - Installation and first steps
- Core Concepts - Philosophy and principles
- Amplihack Tutorial - Comprehensive 60-90 minute tutorial
Looking for something specific?
- Repair a Codex installation - Resolve incomplete packages and missing helpers
- Codex installation validation - Startup checks, overrides, and recovery policy
- Code Atlas - Architecture diagrams, dependency maps, and bug hunt results
- Test binary isolation - How test builds link large executables into fake homes instead of copying them
- Commands & Operations - Execute complex tasks
- Workflows - Structured development processes
- Agents & Tools - Specialized AI capabilities
- Troubleshooting - Fix common issues
π Get Started¶
Everything you need to install and configure amplihack.
Prerequisites¶
- Rust 1.88+ / cargo
- Node.js 18+ / npm
- git
- cmake and a C/C++ toolchain for LadybugDB
Choose Your Tool¶
amplihack works with multiple agentic coding tools. Choose the one that fits your workflow:
# Install, then launch with Claude Code (default)
npx --yes --package=git+https://github.com/rysweet/amplihack-rs.git -- amplihack install
amplihack claude
# Or launch with Microsoft Amplifier
amplihack amplifier
# Or launch with GitHub Copilot CLI
amplihack copilot
Tool Compatibility Matrix:
| Feature | Claude Code | Amplifier | Copilot CLI | Codex |
|---|---|---|---|---|
| Plugin Architecture | β Yes | β No | β No | β No |
| Per-Project Staging | β Yes | β Yes | β Yes | β Yes |
| All Agents (42) | β Yes | β Yes | β Yes | β οΈ Limited |
| All Skills (120) | β Yes | β Yes | β Yes | β οΈ Limited |
| All Commands (31) | β Yes | β Yes | β Yes | β οΈ Limited |
| Workflows | β All | β All | β All | β οΈ Limited |
| Auto Mode | β Yes | β Yes | β Yes | β οΈ Limited |
See amplihack-rs parity for subprocess prompt delivery support across Claude Code, Amplifier, Copilot CLI, and Codex.
New to amplihack? After launching, try the interactive tutorial:
The guide agent will walk you through workflows, prompting strategies, and hands-on exercises (60-90 minutes).
Plugin Architecture β NEW¶
Centralized plugin system that works across all your projects:
- Plugin Installation Guide - Install amplihack as a global plugin (Claude Code only)
- Plugin Architecture Overview - How the plugin system works
- Migration Guide - Migrate from per-project to plugin mode
- CLI Reference - Complete command-line reference
Note: The plugin guides above describe Claude Code. Codex uses its native local marketplace package and command hooks; Microsoft Amplifier and GitHub Copilot CLI use framework staging.
Installation¶
- Prerequisites - System requirements and dependencies
- Interactive Installation - Step-by-step setup wizard
- Quick Start - Basic usage and first commands
- Stale Wrapper Repair Tutorial - Learn how install/update keeps the Rust binary first and refreshes stale assets
- Repair Stale Wrappers and PATH Conflicts - Quarantine stale Python/uvx wrappers and make
~/.local/bin/amplihackresolve first - Update amplihack with gh's login - Use gh's existing login for release lookup and download, and read a GitHub rate-limit refusal
- Repair a Stale Framework Bundle - Replace stale installed
amplifier-bundleassets, and what to do when install refuses a source - Find Installed Skills and Agents - Search the index of every skill and agent amplihack installs with
amplihack directory find, and use an entry you find (reference) - Choose Listed Skills and Agents - Extend the default set, remove an extension or restore the full lists for installed tools
- Use the frontend-design Skill - Load Anthropic's frontend-design skill for user-interface work, show the agent screenshots before and after, and choose its model tier
- Switch Off Routing and Preferences Text - Leave out the routing text or the repeated preferences table, for one launch or for good
- Manage Claude Login Profiles - Keep multiple Claude Code logins in separate
CLAUDE_CONFIG_DIRprofiles that share one session store (reference, ccswitch review) - Usage-Limit Waits and Limit Records - A step that meets a usage, spend or credit limit records it for its login, waits for room and continues; what ends a step, the record format, the
waiting_for_capacityline - Wait for a Usage-Limit Reset - Let a recipe step that hits a Claude usage limit wait for the reset, for another stored login to show capacity, or for the rotator to move a new login into
~/.claude, and run once more (reference)
Configuration¶
Tool-Specific Setup¶
Claude Code (Default)
- Requires:
$ANTHROPIC_API_KEYenvironment variable for Anthropic models - Plugin mode: Install globally with Plugin Installation Guide
- Claude Code native plugin installation - Marketplace setup and shared immutable runner delivery
- Per-project mode: Copy
~/.amplihack/.claude/directory to your project - Azure OpenAI: Configure via environment variables
Microsoft Amplifier
Amplifier walks you through model configuration on first startup. Supports all Amplifier-compatible models including Claude, GPT-4, and local models.
GitHub Copilot CLI
- Uses GitHub Copilot models (switch with
/modelcommand) - Adaptive hooks enable preference injection and context loading
- All 37 bundled agents available via
--agent <name>flag - See GitHub Copilot CLI for complete guide
- See How to Use amplihack with a Non-Claude Agent for
AMPLIHACK_AGENT_BINARYpropagation and nested Copilot compatibility details - Follow the Copilot parity control-plane tutorial for step-by-step setup and validation
- Use How to Configure the Copilot Parity Control Plane to pin the runner, pick the hook engine, and verify XPIA behavior
- Read Understanding the Copilot Parity Control Plane for the architecture and trade-offs
- Use the Copilot Parity Control Plane Reference for precedence, hook contracts, and environment variables
Codex
- Use Amplihack with Codex - Install native skills and hooks, launch sessions, and run recipes
- Recover an interrupted Codex installation - Retry safely or preserve a pending journal with
--reset-recovery - Codex agent-step launch flags - Sandbox, hook trust, and the directory-check bypass for validated review launch directories
- Run amplihack codex with a Local Model - Interactive sessions, single tasks and recipe agent steps on a model served from your own machine, with a small prompt
- Codex Local-Model Launches - Selection, the generated Codex home, its
config.tomlandhooks.json, refresh, nested launches and errors - Runner validation reference - Capability schema, provider compatibility, managed provenance, installer downgrade guard, and diagnostics
- Recipe Context Transport Reference - How
recipe runhands context to the runner without argv - Workflow context transport - File-first authority, structured verifier objects, legacy compatibility, and consumer verdict policies
- Native plugin probe - Probe time limits, failure classification and error messages
- Native installer ownership - Packaging, hook ownership, locking, and recovery
- Codex ownership ledger migration - Safe upgrade of legacy schema 1 ownership proofs
General Configuration¶
- User Configuration - Persistent defaults in
~/.amplihack/config.tomland.amplihack/config.toml, and theamplihack configcommand - Dangerous Command Policy - The single list of dangerous commands amplihack ships, the Claude
permissions.denyentries, Codex execpolicy rules file and Copilot CLI launch flags written from it, and thepolicy.deny_commandskey that adds to it - Config Write Durability - Why the first-launch save of
node.heap_consentskipsfsyncwhileconfig setandconfig unsetkeep it - AMPLIHACK_* Environment Variable Audit - Every
AMPLIHACK_*name classified as user preference, internal or test-only, with its config key - Model Tiers - How a recipe step's
fast,standardorstrongtier becomes a model and, on Codex, a reasoning effort: the per-harness mapping, precedence, the fall-back to a harness default, instance and per-step overrides, and the run-summary section that names what each step ran on - Put Recipe Steps on Model Tiers - Change one cell of the mapping, fill in a harness column, move one step, force one model everywhere, run small-change reviews as one pass, and read back what a run spent
- Profile Management - Multiple environment configurations
- Hook Configuration - Customize framework behavior
- Artifact Guard - Guard for broad staging, pre-commit, and workflow publication artifacts
- Configure Workflow Runtime Isolation - Keep generated workflow runtime output outside commit worktrees
- Clean Up After Recipe Runs - Where runs write, end-of-run cleanup, folders kept because they hold unsaved Git work, when a checkout's build target is removed, linked targets, and
amplihack cleanupfor worktrees, targets, temporary folders and old logs - Memory Configuration Consent - Intelligent memory settings with timeout protection
- Verify .claude/ Staging - Check that framework files are properly staged
- Verify Runtime Asset Resolution - Check helper, session, hooks, and multitask asset parity
- Verify Framework Injection - Check that AMPLIHACK.md injection is working
- Enable Blarify Code Indexing - Opt-in code graph indexing with env var, non-interactive mode, and staleness detection
Deployment¶
- Release Installation - Install from published binaries or source
- Install Manifest - Understand installed files and uninstall state
- Claude Profiles How-To - Separate Claude logins per profile, shared sessions, and what a new profile inherits
- Rotate Claude Logins - Keep
~/.claudeon the account with the most capacity withamplihack profile rotate, and resume sessions stopped by a usage limit - Passed Resets and Session Evidence in the Rotator - When the rotator reads a login whose stored reset has passed, which processes do not make a profile
session running, and the lines for a credit login with a running session - Keep a Session Running After Its Process Exits - Mark a supervised session as standing so it is relaunched with
claude --continuein its own pane when its process exits - Bring Agent Sessions Back After a Terminal Loss - Register long-lived Claude sessions with
amplihack agentand let a supervisor service resume them from their saved conversation - Keep Tests from Leaking Rotator Daemons - How tests avoid starting a real
rotate watch --spawneddaemon, and the CI leak check that catches one - How a Test's Rotator Ends with Its Test - Why a rotator started by a killed test used to leak, and the lifetime pipe that now stops it
- Keep Tests off the Host Process Table - How
amplihack profiletests read a fake/procthroughAMPLIHACK_TEST_PROC_ROOTor, in lib tests, a per-thread scope and a shared empty default, theFakeProcbuilder, and the guard that fails a test reading host processes - Keep Tests out of the Real Profile Root - How tests avoid writing real profiles'
settings.json, and the guard that fails the run when one changes - Keep Tests from Writing to an Inherited Claude Profile - The shared helper that clears
CLAUDE_CONFIG_DIR,AMPLIHACK_CLAUDE_PROFILE,AMPLIHACK_CLAUDE_PROFILE_ROOT,AMPLIHACK_CLAUDE_AUTO_SWITCHandAMPLIHACK_HOMEwherever a test setsHOME,with_config_dirfor tests that need one set, and the behaviour test that leaves a stand-in profile byte-identical (#2922) - Give Test Logins a Fake Account Identity - How profile tests give fake logins a server identity, seed logins in rotate unit tests, re-issue a credential when its account changes, and test the no-record case
- Keep Tests from Changing PATH and HOME - How tests give a child process its
PATHandHOMEwithout changing the test process, and how to test a timeout so that host load cannot fail it - Keep Tests from Prompting for Git Credentials - Why git under plain
timeoutstops onSIGTTIN, the settings that stop test and amplihack git from prompting, and how to run long commands safely - Keep Shell Test Stubs from Blocking on stdin - Why a multi-mode shell stub dispatches before it reads stdin, which
orch helpermodes take a blob, the null stdin the bundled-tool helper gives every call, and the FIFO check that proves a stub never opens stdin (#2582) - Run recipe::run Tests Inside a Recipe Session - How
recipe::runtests clear the outer run'sAMPLIHACK_*variables withclear_outer_run_env()andOUTER_RUN_IDENTITY_VARS, so they pass inside a recipe run (#1984) - Keep Recipe Shell Tests out of the Shared Work Root - How the recipe shell suites source
recipe-test-env.shto clear an inheritedAMPLIHACK_WORK_ROOT, how a Rust test starts a suite throughisolated(), and the behaviour test that checks the outside work root stays empty (#2712) - Run Tests Against the Pinned Recipe Runner - How runner-backed tests build
recipe-runner-rsat the pinned revision into a test-private cache, theRECIPE_RUNNER_RS_PATHandRECIPE_RUNNER_QA_BINARYoverrides and their receipt check, and how to prove a test does not use the host runner (#2658) - Keep Tests Passing Under Host Load - Wait on events and conditions under two hang guards, inject a clock, write stubs without
ETXTBSY, use the debug-only knobs including the probe wait, review event waits, and validate timing policy with an injected clock - Wait Without Leaving Orphan Processes - Wait with
amplihack wait --seconds Norwait $pid, use uutilstimeoutsafely, and what the tail-follow guard in thepre-tool-usehook denies amplihack profileReference - Seeding allowlists, theprofile usagecommand, auto-switch,profile rotate, security rules, and errors- Profile Organisation Affinity - Same-organisation selection, crossing restrictions and session warnings
- Capacity Governor - How recipe runs and agent launches are admitted, made to wait or refused (exit 80) from session and weekly budgets, and
amplihack governor status amplihack sessionsReference - Archive old Claude Code session logs out of~/.claude/projects, restore one, and the rotator's daily runamplihack agentReference - Register flags,amplihack claude --supervise, the supervisor pass, result texts, status formats, the registry and the systemd unit- Install/Update PATH Conflict Reference - Rust binary precedence, stale wrapper neutralization, and PATH profile persistence
- Update Release Lookup Reference - When update uses gh, the commands it runs, the download checks and the 403 and 429 message
- Framework Bundle Compatibility - Atomic bundle refresh and active
orch_helper.pyrejection - Framework Source Selection - Which source install, update and self-heal stage the bundle from, the release tag fetch, the manifest check and file modes
- Versioned Install Layout - Releases under
~/.amplihack/releases, atomic link switch, in-use cleanup and why an install leaves running recipe runs alone - Azure Integration - Deploy to Azure cloud
- External LiteLLM Gateway - Route supported local agents through an operator-managed gateway
- External LiteLLM Gateway Tutorial - Configure a protected route to an existing gateway
- Operate an External LiteLLM Route - Rotate, disable, and troubleshoot routing
- Verify Real LiteLLM Clients - Attest Claude Code, Copilot CLI, and RustyClawd on a trusted host
- External LiteLLM Boundary - Understand the external-only trust and data boundaries
- External LiteLLM Environment Reference - Look up the gateway configuration contract
- LiteLLM Live Verification Contract - Review host controls, evidence, diagnostics, and exit codes
π‘ Core Concepts¶
Understand the philosophy and architecture behind amplihack.
Philosophy & Principles¶
- Development Philosophy - Ruthless simplicity and modular design
- This Is The Way - Best practices and patterns
- Workspace Pattern - Organize your development environment
- Trust & Anti-Sycophancy - Honest agent behavior
Architecture¶
- Project Overview - System architecture
- Development Patterns - Proven implementation patterns
- Unified Staging Architecture - How .claude/ staging works across all commands
- Framework Injection Architecture - How AMPLIHACK.md injection works
- Unified Distributed Cognitive Memory - Planned architecture for deterministic cluster-wide memory retrieval
- Goal-Seeking Agents - Overview of generated agents and the shared LearningAgent engine
- LearningAgent Module Architecture - How the refactored LearningAgent is split into focused modules
- LearningAgent Refactor Tutorial - Walk through learning, retrieval, and temporal answering in the split module design
- Maintain the Refactored LearningAgent - Contributor workflow for changing ingestion, retrieval, temporal logic, and synthesis
- LearningAgent Module Reference - Public API, configuration knobs, ownership map, and validation commands
- How to Use Blarify Code Graph - Enable, query, and configure
- Enable Blarify Code Indexing -
AMPLIHACK_ENABLE_BLARIFY, non-interactive skip, staleness detection - Blarify Architecture - Understanding the Blarify integration
- Documentation Knowledge Graph - How docs connect
- amplihack-rs Parity Reference - Subprocess prompt delivery capabilities, configuration, diagnostics, and Rust API
- Large Payload Delivery to Child Processes - Why large prompts, recipe context and GitHub bodies stay out of argv and environment values (
E2BIG,MAX_ARG_STRLEN) - Why Prompt Text Stays Out of argv - Why no contract, prompt or brief text appears in an agent's
/proc/<pid>/cmdline(#2030) - Recipe Context Transport Reference -
context_file_v1, the 0600 context file in the runtime folder, the--setpath for a runner older than the pin, cleanup and errors (#2582) - Stop Background Jobs by PID - Stop your own job by
$!or process group, never by pattern, and time-box tests with the runner's options (#2582) - Agent Prompt Channels Reference - Per-launch-path channels, the contract file, the Claude Code 2.1.319 version gate, the
amplihack claudepassthrough rewrite and errors - Launcher Output Streams Reference - Launcher notices go to stderr, so stdout of
amplihack <agent> -pis only the agent's output (#2585) - Check Agent Processes for Prompt Text - Run the
/proccheck and fix version-gate failures - Large Payload Delivery Reference -
file-referencemode, sync and async stdin writers, runner value spill, UTF-8 truncation, reasoner bounds,--prompt-file, andworkflow_body_file.sh amplihack-turnTurn Driver Reference - Agent-generic turn model:AgentSession/Channel/NextPrompt, therun_session_loopdriver (run-to-completion, no wall-clock cap), and the relocatedSerialTurnDriver/CopilotTurnRunner/build_turn_argv/ToolAllowlistprimitivesamplihack-supply-chain-auditSupply Chain Audit Reference - Native Rustsupply-chain-auditskill: theamplihack-supply-chain-auditCLI, 12 audit dimensions, finding/report schemas,run_audit/AuditConfig/Finding/Severitylibrary API, accepted-risks configuration, and the seven enforced security invariants- Idle Watchdog Concept - Why agentic child processes use idle detection instead of wall-clock timeouts
- Idle Watchdog Reference -
amplihack-utils::idle_watchdogAPI, configuration, and per-site behavior - Use the Idle Watchdog - Wrap a subprocess call site with idle detection and write the required tests
Key Features¶
- Modular Design - Self-contained modules (bricks & studs)
- Zero-BS Implementation - No stubs or placeholders
- Specialized AI Agents - Purpose-built for each task
- Structured Workflows - Proven methodologies
π Workflows¶
Proven methodologies for consistent, high-quality results.
- Workflow checkpoints and commits - Implementation checkpoint staging and formatting, plus commit identity configuration
Automatic Workflow Classification β NEW¶
Mandatory at Session Start (Issue #2353) - amplihack now automatically classifies your request and executes the appropriate workflow when you start a session:
- 4-Way Classification: Q&A, Operations, Investigation, or Development
- Recipe Runner Execution: Code-enforced workflow steps with fail-fast behavior
- Graceful Fallback: Recipe Runner β Workflow Skills β Markdown
- Explicit Command Bypass: Commands like
/fix,/analyzeskip auto-classification
Quick Reference: | Your Request | Classified As | Workflow | Steps | |--------------|---------------|----------|-------| | "What is..." | Q&A | Direct answer | 3 | | "Clean up..." | Operations | Direct execution | 1 | | "How does X work?" | Investigation | Deep exploration | 6 | | "Add feature X" | Development | Full workflow | 23 |
Implementation: crates/amplihack-workflows/ - classifier, execution_tier_cascade, session_start modules
Core Workflows¶
- Default Workflow - Standard multi-step development process
- Investigation Workflow - Deep codebase analysis and understanding
- PR Recovery Readiness - Entry point for existing-PR recovery docs and the canonical readiness contract
- Publish Workflow Versioning - Classification-driven commit prefix and version bump (bugfix branches stay on
fix:and do not bump the workspace version) - GitHub API Rate-Limit Tolerance - Shared
ghretry library: classify auth/rate-limit/transient errors, wait for the authoritative reset or fall back to REST, with credential redaction - GitHub Repo Identity Parser - The one shared
parse_github_repo_identityused by every workflow helper and the terminal-state recipe: accepted origin forms, hostile-userinfo rejection, helper lookup, the self-hosting reinstall requirement, and the Rust parsers (issue #1642) - Document-Driven Development (DDD) - Documentation-first approach for large features
DDD Deep Dive¶
Document-Driven Development is a systematic methodology where documentation comes first and acts as the specification.
- Core Concepts
- Overview - What is DDD and when to use it
- Core Concepts - File crawling, context poisoning, retcon writing
- File Crawling - Systematic file processing
- Context Poisoning - Preventing inconsistencies
-
Retcon Writing - Present-tense documentation
-
Implementation Phases
- Phase 0: Planning - Define scope and objectives
- Phase 1: Documentation - Write the spec
- Phase 2: Approval - Review and validate
- Phase 3: Code Planning - Implementation strategy
- Phase 4: Implementation - Build it
- Phase 5: Testing - Verify behavior
-
Phase 6: Cleanup - Final touches
-
Reference
- Reference Materials - Practical resources
- Checklists - Phase verification
- Tips for Success - Best practices
- Common Pitfalls - What to avoid
- FAQ - Common questions
Recipe Runner¶
Code-enforced workflow execution engine with declarative YAML recipes.
- Resume After a Usage Limit - Planned: relaunch the same issue, inspect the restart step, or use
--fresh - Recovery after a Recipe Usage Limit - Planned: latest-attempt eligibility, nested replay, and compatibility
- Recipe Recovery Reference - Planned: persistence policies, resources, durable storage, and runner contracts
- Recipe Runner Architecture - Execution and recovery ownership across the CLI and runner
- Why a Recipe Run Does Not Trace Git Commands - Why the ptrace observer and Git-command journal were removed, how named-checkout execution works, and what a tamper-resistant record would require (#2738)
-
Recipe Command Reference - Launch flags, detached execution, and recovery decisions
-
Recipe Runner Overview - Architecture, YAML format, and creating custom recipes
- UltraThink Recipe Runner Integration - How ultrathink uses Recipe Runner for code-enforced workflow execution
- Recipe CLI Commands How-To - Task-oriented guide for using recipe commands
- Dev-Orchestrator Routing Contract - Issue #749 target rules for Development and hybrid workstream routing
- Verify Dev-Orchestrator Routing - Check deterministic Development-to-default-workflow routing from the CLI
- Quick-Change Recipe - Single-session recipe for small changes: diff limits, hand-over to default-workflow, routing precedence and the
Workflow:log line,-c workflow= - Auto-Drive-Light Recipe - Smaller drive-to-merge recipe for small PRs: eligibility rules, escalation to auto-drive-to-merge, the task id its follow-up issues name, and the per-finding follow-up model it shares with auto-drive-to-merge
- Correlate Recipe Runs with Logs - Match terminal output, final JSON, child process IDs, and runner log paths by run ID
- Model Tiers - The tier a recipe agent step declares, the per-harness model and effort it maps to, and the combined review pass for small diffs
- Recipe Executor Environment - Step-level variables plus subprocess environment contract for forced non-interactive recipe execution
- Recipe Commit Hook Repair - How checkpoint and publish steps hand a rejected git
pre-commitorpre-pushhook to a fixing agent, retry under loop-health evaluation, and refuse changes to hook configuration - Recipe Push Failure Recovery - How a failed step-15 or step-18c push is judged as a change or environment fault, merged with the remote branch when it is ahead, retried once from a clean environment, and checked by a gate (including a fast-forward check) before the run continues
- Step Failure Recovery - How an opted-in recipe step sends its failure to a recovery agent that retries after a repair, runs a declared alternative, continues with a record, or hands off to a named owner; record format, recurrence rule and exit 81 (issue #2539)
- Auto-drive Round Push Before Review - A Crusty round's fix commits reach the pull request head before the next review, a refused push is recovered by the agent, and step recovery pushes an unpushed commit the run made (issue #2923)
- Recipe Check Exit Status - How test, hook and CI check steps report the real exit status, keep stderr in the step log, and route failures to fix or diagnosis steps (issue #2190)
- Structured Verdict & Intent Parsing Reference -
normalise-verdicthelper,session-tree register --json, and theverdict/no_merge/goal_status/statusfields that replace brittle agent-prose scraping - Auto-drive Goal Loop - The shared goal-driven agent loop: turns, readings, actions, guidance, turn records, endings, goal contract v1 and known limits (#3129)
- Auto Drive To Merge Reference - Inputs, merge authority, what the agent decides, and how a run ends
- Auto-drive Evidence and Outcomes - The 13 criteria, auto-drive's crusty convergence substitution, the PR write-up and reported outcomes
- Merge-ready Round, Merge and Hand-off - The agentic merge-ready write-up, the one-word outcome, GitHub-only merge conditions, the hand-off recipe, the run report, which invocations the "success means merged" rule judges, and the loop driver's output kept in the state folder for an
UNREADABLEhand-off (#2575, #2769, #2849) - Auto-drive QA (Criterion 1) - Criterion 1 as a recorded judgement: the measured QA record, the declared QA command from merge-base
qa.toml, the named recoverable blockers, and how the merge round reads the judgement (#2569) - Auto-drive State Permissions - State folders 0700 and files 0600 under any umask; when the evidence check repairs an entry this user owns (slug folders directly under the auto-drive state root), when it refuses, and the
INFO/WARNINGrepair log line (#2546) - Verify a PR Without Merging - Planned guide; current no_merge=true does not protect final merging
- Loop-Health Evaluator Reference - the reusable
CONTINUE/DONE/STUCKagentic loop-health contract,normalise-loop-verdict, and why the loop terminator is absence of progress rather than an iteration cap - Crusty Completion Contract - Completion-first dispatch for CLEAN and MINOR_ONLY, decision integrity, and follow-up recording before phase completion; preflight skip reasons and recoverable assess and round faults
- Expected Checks at the Head -
autodrive_expected_checks.sh: CI green means every expected check (required checks and every pull_request workflow job) exists at the head SHA and passed; MISSING, PENDING, RED and UNREADABLE block, and the limits of the expected set (#2186) - Build Preflight Decision -
autodrive-buildstep-01 reports PR facts (pr_found,pr_state,blockers) and the step-02 condition decides build or reuse: no PR builds, an OPEN or MERGED PR is reused, an incomplete search stops with blockers (#2552) - Git Repository Environment Helper -
git-repo-env.sh: the one shell list ofGIT_*repository selectors and outer-runAMPLIHACK_*names, which auto-drive QA steps and the cargo hook clear before running tests, thegit_env_clearedandrun_env_clearedevidence fields, and the drift guard (#2033) - Session-Tree Recursion Control - where tree state lives, how the depth ceiling is sealed, the
BLOCKED_TERMINALexit-79 contract,session-tree gcretention, and mixed-version fleets - Read Agent Verdicts with orch helper - Migrate grep/awk/jq gates to
orch helper extract-json | extract-field | normalise-verdictand structuredparse_jsonconditions - Pass Large Recipe Context and Agent Text -
--context-file,--context-from-file,--body-fileandgit commit -Ffor values that would exceed the argument limit - Recipe Context Environment Export - Export recipe context variables to bash steps (
$TASK_DESCRIPTION,$REPO_PATH), uppercasing, reserved-name denylist, and precedence - Tutorial: Propagate Recipe Context to Bash Steps - Read context from the environment under
set -u, including nested sub-recipes and skipped keys - Workflow Provider Abstraction - Provider-neutral tracking, change-request publication, terminal state, and stale cleanup through typed helpers and adapters
- Configure Provider-Neutral Workflows - Configure GitHub, Azure DevOps, local, and unsupported workflow provider paths
- Provider-Neutral Workflow API - Rust domain models, helper JSON schemas, manual/blocked states, and validation contracts
- Recipe Simulation Reference - Deterministic fake-provider, fake-tool, and fake-agent workflow simulation contract
- Tutorial: Simulate Provider-Neutral Workflows - Run and inspect a provider-neutral recipe simulation
- Clean Up Stale Workflow Change Requests - Dry-run and apply stale/superseded cleanup through the provider abstraction
- CI Resource Discipline Reference - Concurrency, timeout, matrix, cache, and coverage boundaries for CI
- CI Pipeline Reference - Pinned toolchain, cargo-nextest test job, disk freeing, caching, recipe runner pin ancestry, and required checks
- CI Wall-Clock Parallelization Reference - Parallel fan-out job graph (no
needs: check) and tag-conditional release optimization keeping shipped artifacts fully optimized - Merge Flow Reference - Why a GitHub merge queue is unavailable on a user-owned repo, and the earlier serial up-to-date squash-merge flow (strict up-to-date merges were turned off on 9 Nov 2026; see Branch protection on main)
- Branch Protection Guard Reference - In-repo check written for the earlier strict up-to-date policy; strict is now off on purpose, and retiring or inverting the guard is tracked in #2203
- Validate Recipe Subprocess and Hook Input Contracts - Validate recipe child env handling and hook JSON compatibility
- Workflow Execution Guardrails - Canonical execution roots, exact GitHub identity checks, and observer-only stall detection
- How to Configure Workflow Execution Guardrails - Supply
expected_gh_account, inspectexecution_root, and troubleshoot failures - Tutorial: Workflow Execution Guardrails - End-to-end walkthrough of the guarded workflow contract
- Workflow Execution Guardrails Reference - Input fields, output schema, signals, and failure semantics
- Workflow Runtime Isolation - Runtime-root isolation and narrow cleanup for generated workflow artifacts
- How to Configure Workflow Runtime Isolation - Set
AMPLIHACK_RUNTIME_ROOT, inspect runtime files, and troubleshoot guard failures - Tutorial: Workflow Runtime Isolation - Practice the runtime isolation and strict Artifact Guard contract
- Workflow Runtime Artifacts Reference - Environment variables, shell helper API, lifecycle hooks, the single excluded-runtime-paths list (including
/index.scip) and the dirty-worktree message, and regression contract - Workflow Commit Identity Reference - Explicit author/committer identity contract for workflow-created commits
- Workflow Identity Preflight Reference - One-call check, before any step does real work, that the acting
ghaccount can write to the target repository (issue #1290) - How to Configure Workflow Commit Identity - Setup for
AMPLIHACK_GIT_*, repo-local Git identity, and provider-safe fallbacks - Tutorial: Verify Workflow Commit Identity - Disposable-repository walkthrough for explicit, repo-local, GitHub, and Azure DevOps commit attribution
- Default Workflow Step 13 Validation Reference - Toolchain-aware outside-in local validation contract for Step 13
- Workflow Publish Lockfile Sync Reference - Offline
Cargo.locksync after the version bump so--lockedpre-commit gates pass (issue #915) - Workflow Publish package.json Version Sync Reference - Offline sync of root
package.jsonversion to[workspace.package].versionso the version-contract test and CI Test job pass (issue #925) - Best-Effort PR Labeling Reference -
WORKFLOW_PR_LABELScontract and theapply_pr_labels_best_efforthelper that stamps labels onto the published PR via a singlegh pr edit --add-labelcall - Workflow Terminal-State Reference - Target contract for development completion evidence, no-op states, failure semantics, shell helper API, and the branch PR lookup for agent-opened PRs
- Default Workflow Agentic Finalization - Structured finalizer schema, terminal-state vocabulary, configuration, and examples for robust workflow closure
- How to Diagnose Workflow Terminal-State Failures - Investigate missing evidence after planning, analysis, design, or worktree-only runs
- Tutorial: Workflow Terminal-State Closure - Walk through completion evidence, planning-only failure, and rerun semantics
- Workflow-Owned PR Recovery Readiness - Recover an existing PR through
default-workflowwith branch reuse, hook readiness, additive-copy readiness, and workflow-owned finalization - Existing Branch Finalization Runbook - Finish an already-implemented branch through preservation, validation, PR publication, CI gating, and policy-ready merge
- How to Recover an Existing PR with
default-workflow- Supplypr_number,existing_branch, and issue requirements without manually merging - Tutorial: Recover PR 579 Readiness - Walk through hook and additive-copy readiness evidence for an interrupted PR recovery
- PR Recovery Readiness Reference - Context fields, readiness evidence schema, publish contract, and finalization states
- PR-Ownership Lease Concepts - Why a TTL-based cooperative lease prevents two sessions from concurrently driving one PR to merge
- How to Coordinate Concurrent PR Sessions with the Ownership Lease - Acquire before force-push/rebase/merge, stand down when contended, auto-expire on crash, release on merge/close/session end
- PR-Ownership Lease Reference -
PrLease,LeaseStore,Clock,LeaseError, on-disk format, configuration, and the behavior contract locked bypr_lease_behavior.rs - Step 03 Host-Aware Tracking Idempotency - GitHub issue, Azure Boards work-item, and local tracking reuse/create behavior
- Tracking Issue Selection Reference - How step 03 honours
issue_numberon GitHub, reuses only open issues referenced in the task text (#1595), defaults to local tracking unlesscreate_issue=true, reuses exact-title matches, and bounds rate-limit retries with jittered backoff (#1881) - Workflow Delivery Inputs Reference -
base_branch(the pull request's base everywhere it is used) and the opt-instrict_deliverycontract for a caller that has already assigned the issue and the branch - Workflow Issue Extraction Reference - Three-tier issue-number resolution (direct URL β PR closing-refs β
#Nverify) in step 03b - Multi-Provider Workflow Reference - Provider-neutral helper routing for GitHub, Azure DevOps, local, and unsupported repositories
- How to Use the Workflow with Azure DevOps - Run default-workflow against an AzDO repository
- Provider-Neutral Workflow Architecture - Domain models, CLI-owned adapters, typed helpers, and agentic validation contracts
- Run a Quality Audit - Invoke quality-audit-cycle recipe, target subdirectories, filter categories
- CLI Reference - Top-level
amplihackcommand,--versionflag, global environment variables - Recipe CLI Reference - Complete command-line documentation
- Quality Audit Cycle Recipe - Context variables, step reference, bash step safety patterns
- Token Sanitizer - Pattern ordering, audit labels, and custom patterns for secret redaction
- RecipeResult -
RecipeResultandStepResultdataclasses,str()format, JSON serialisation - AppendHandler -
AppendResultclass, timestamp filename format, atomic file writes - Rust Runner Execution Reference - Wrapper contract, stderr/stdout streams, JSONL events, environment variables, and security model
- Rust Runner Execution Architecture - CLI/runner responsibility split, stream ownership, progress events, and additive JSON preservation
- Recipe Execution in Named Checkouts - Execution locations, PR-worktree review, agentic assessment, and retained work
- Run a Recipe in a Selected Worktree - Observe staged, unstaged, and untracked content and writes in a real linked worktree
- Recipe Runner Logging Reference - stderr progress, heartbeats, bounded snippets, JSONL events, and additive result fields
- Recipe Run Correlation Reference - Stable run IDs,
AMPLIHACK_RECIPE_RUN_ID, pointer event schema, and final result fields - Observe Recipe Progress Tutorial - Watch live workflow progress, capture JSON, and debug failed steps
- Trace Recipe Run Correlation Tutorial - Follow one run across stderr pointers, final JSON, child PID, and JSONL logs
- Scoped Workflow Closure - Explicit persisted PR and process ownership model for default-workflow closure
- How to Configure Scoped Workflow Closure - Pass repository, branch, base, PR, tracking item, run, and start-time scope through workflow closure
- Tutorial: Scoped Workflow Closure - Walk through scoped PR validation and stale process rejection
- Scoped Workflow Closure Reference - Helper arguments, JSON schemas, state fields, Rust validation API, and failure semantics
Quick Start:
# List available recipes
amplihack recipe list
# Execute a workflow recipe
amplihack recipe run default-workflow \
-c task_description="Add user authentication" \
-c repo_path=.
# Validate recipe YAML
amplihack recipe validate my-workflow.yaml
# Show recipe details
amplihack recipe show default-workflow
Advanced Workflows¶
- N-Version Programming - Multiple solutions for critical code
- Multi-Agent Debate - Structured decision-making
- Cascade Workflow - Graceful degradation patterns
GitHub Actions Workflows¶
- Configure Issue Classifier - Permissions, timeout, label extension, lock file recompilation, and troubleshooting
- Investigate Automated Action Failures - Evidence-first workflow for failing scheduled or automated GitHub Actions runs, root-cause classification, fixes, regression coverage, and PR closure
- Automated Action Failure Investigation Reference - Inputs, configuration, evidence schema, classification values, PR contract, and closure semantics
- Tutorial: Automated Action Failure Investigation - End-to-end example from user report to merge-ready PR
π€ Agents & Tools¶
Specialized AI agents and tools for every development task.
Core Agents¶
- Architect - System design and specifications
- Builder - Code implementation from specs
- Reviewer - Quality assurance and compliance
- Tester - Test generation and validation
Specialized Agents¶
- API Designer - Contract definitions
- Security Agent - Vulnerability assessment
- Database Agent - Schema and query optimization
- Integration Agent - External service connections
- Cleanup Agent - Code simplification
Goal-Seeking Agents¶
Autonomous agents that learn, remember, teach, and apply knowledge across four SDK backends.
π Tutorials (Learning-Oriented)
- Goal-Seeking Agent Tutorial - Interactive 10-lesson tutorial covering agent generation, SDK selection, multi-agent architecture, evaluations (L1-L12), and self-improvement loops
π How-To Guides (Problem-Oriented)
- Goal Agent Generator Guide - Create custom goal-seeking agents with
amplihack new - SDK Adapters Guide - Choose and configure Copilot, Claude, Microsoft, or Mini SDK backends
π Reference (Information-Oriented)
- Quick Reference Card - Fast lookup: commands, SDK selection, eval levels, common patterns
- Eval System Architecture - Progressive test suite (L1-L12), grading pipeline, domain agents, long-horizon memory eval, self-improvement runner
- Goal Agent Generator Design - Architecture and design patterns
- Goal Agent Requirements - Technical specifications
- Bundle Generator Module Reference -
bundle_generatormodule layout, public API, and maintenance guide - Implementation Summary - Current implementation status
π‘ Explanation (Understanding-Oriented)
- Comprehensive Guide - Complete system overview: capabilities, architecture, memory systems, evaluation framework, and self-improvement
- Goal Agent Generator Presentation - High-level concept introduction
Key Features:
- SDK-Agnostic: Write once, run on Copilot, Claude, Microsoft Agent Framework, or lightweight mini-framework
- 7 Learning Tools: learn, search, explain, verify, find gaps, store, summary
- Progressive Eval (L1-L12): From simple recall to far transfer across domains
- 3-Run Median Eval:
--runs 3for stable benchmarks (reduces LLM stochasticity) - Multi-Vote Grading:
--grader-votes 3for noise reduction on ambiguous answers - Teaching Evaluation: Multi-turn teacher-student knowledge transfer (Chi 1994, Vygotsky ZPD)
- Self-Improvement Loop: EVAL -> ANALYZE -> RESEARCH -> IMPROVE -> RE-EVAL -> DECIDE with automated error analysis
- 5 Domain Agents: Code Review, Meeting Synthesizer, Data Analysis, Document Creator, Project Planning
- Long-Horizon Memory Eval: 1000-turn dialogue stress test
- Multi-SDK Comparison: 4-way eval comparison across Copilot, Claude, Microsoft Agent Framework, and mini SDK
- Current Score: 97.5% overall median (L1-L7, 3-run median, mini SDK)
Memory-Enabled Agents β NEW¶
Learning agents that improve through experience and persist knowledge across sessions.
- Feature Overview - What are memory-enabled agents and when to use them
- Getting Started Tutorial - Create and run your first learning agent (30 minutes)
- API Reference - Complete technical documentation for amplihack-memory-lib
- Architecture Deep-Dive - System design and technical details
- How-To: Integrate Memory - Add memory to existing agents
- How-To: Design Learning Metrics - Track domain-specific improvements
- How-To: Validate Learning - Test learning behavior with gadugi-agentic-test
Key Features:
- Native memory API: use the bundled memory commands and libraries from the installed
amplihackCLI - Persistent Memory: SQLite-based storage (no external database required)
- Pattern Recognition: Automatically recognize recurring situations after 3 occurrences
- Learning Metrics: Track runtime improvement, pattern recognition rate, confidence growth
- Four Experience Types: SUCCESS, FAILURE, PATTERN, INSIGHT
- Validated Learning: Test-driven validation ensures agents actually learn
Demonstration Agents:
- Documentation Analyzer - Learns documentation quality patterns (MS Learn integration)
- Code Pattern Recognizer - Identifies reusable code patterns and abstractions
- Bug Predictor - Predicts likely bug locations based on learned characteristics
- Performance Optimizer - Learns performance anti-patterns and optimization techniques
Meta-Agentic Task Delegation β NEW¶
Run AI agents in isolated subprocess environments with automatic validation and evidence collection.
- Meta-Delegation Overview - What is meta-delegation and when to use it
- Tutorial - Learn meta-delegation step-by-step (30 minutes)
- How-To Guide - Common tasks and recipes
- API Reference - Complete technical documentation
- Concepts - Architecture and design principles
- Troubleshooting - Fix common issues
Key Feature: Delegate complex tasks to specialized personas (guide, QA engineer, architect, junior developer) running in isolated environments. The system monitors execution, collects evidence, validates success criteria, and provides detailed reports.
Workflow Agents¶
- Ambiguity Handler - Clarify unclear requirements
- Optimizer - Performance improvements
- Pattern Recognition - Identify reusable solutions
Claude Code Skills¶
Modular, on-demand capabilities that extend amplihack:
- Skills Catalog - Complete skills catalog
- Mermaid Diagrams - Visual documentation
- Test Gap Analyzer - Find untested code
Scenario Tools¶
Production-ready executable tools following the Progressive Maturity Model:
- Scenario Tools Overview - Progressive maturity model
- Create Your Own Tools - Build custom tools
- Agent Bundle Generator - Package agents for distribution
- GitHub Distribution - Publish bundles to GitHub via
ghCLI
Available Tools¶
- Platform Bridge - Multi-platform support for GitHub and Azure DevOps
- Automatic platform detection from git remotes
- Unified API for both GitHub and Azure DevOps
- Zero configuration required
- Used by DEFAULT_WORKFLOW for cross-platform compatibility
β‘οΈ Commands & Operations¶
Execute complex tasks with simple slash commands.
Command Reference¶
- Command Selection Guide - Choose the right command for your task
- Amplifier Command - Launch Amplifier with the amplihack bundle and argv-only prompt delivery
- resolve-bundle-asset Command - Resolve native bundle assets and legacy parity aliases
Operations¶
- Operations Index - Release canaries, cleanup, workflow resilience, downstream validation, and roadmap docs
- v0.10.6 Canary Evidence - Sanitized install/update/default-workflow evidence contract and current availability limitations
- Hygiene Cleanup - Conservative opt-in cleanup for stale worktrees, detached Cargo targets, and session artifacts
- Clean Up After Recipe Runs - Run folders, the work root,
amplihack cleanup, unsaved work that cleanup keeps, and log archive and restore - Workflow Publish and Finalize Resilience - Idempotent no-diff, existing-PR, already-merged, and closed-after-merge terminal states
- Prompt Delivery Downstream Validation - Simard/RabbitHole-style prompt delivery validation scenarios
- Operational Roadmap - Curated backlog for fleet rollout, Azure DevOps E2E, release contracts, and observability
Core Commands¶
/ultrathink- Main orchestration command (reads workflow, orchestrates agents)/analyze- Comprehensive code review for philosophy compliance/improve- Capture learnings and self-improvement/fix- Intelligent fix workflow for common error patterns
Document-Driven Development Commands¶
/ddd:0-help- Get help and understand DDD/ddd:prime- Prime context with DDD overview/ddd:1-plan- Phase 0: Planning & Alignment/ddd:2-docs- Phase 1: Documentation Retcon/ddd:3-code-plan- Phase 3: Implementation Planning/ddd:4-code- Phase 4: Code Implementation/ddd:5-finish- Phase 5: Testing & Phase 6: Cleanup/ddd:status- Check current phase and progress
Advanced Commands¶
/amplihack:customize- Manage user preferences and settings
Auto Mode¶
- Auto Mode Guide - Autonomous multi-turn execution
- Auto Mode Safety - Safety guardrails and best practices
- Auto Mode on the Generic Turn Loop -
AutoModeChannel/AutoModeRunnerarchitecture (issue #910 PR-4)
π§ Memory & Knowledge¶
Persistent memory systems and knowledge management.
5-Type Memory System β NEW¶
Psychological memory model with episodic, semantic, procedural, prospective, and working memory:
- 5-Type Memory Guide - Complete user guide
- Developer Reference - Architecture and API
- Quick Reference - One-page cheat sheet
- KΓΉzu Memory Schema - Graph database design for 5 memory types
- KΓΉzu Code Schema - Code graph schema for memory-code linking
- Terminal Visualization - View graph in terminal
- Memory System Overview - Complete memory documentation
Memory Systems¶
- Agent Memory Integration - How agents share and persist knowledge
- Agent Memory Quickstart - Get started with memory
- Agent Type Memory Sharing - Patterns for memory collaboration
Kuzu Memory System¶
Embedded graph-based memory using Kuzu (NO Neo4j required):
- Documentation Graph - Navigate documentation connections
- Code Context Injection - Link code to memories
Code Graph¶
Query your codebase structure via the Kuzu graph database:
- How to Use Blarify Code Graph - Enable, query, and configure
amplihack query-code stats
amplihack query-code search <name>
amplihack query-code functions --file <path>
Current References:
- Documentation Knowledge Graph - Documentation graph architecture and workflows
- Blarify Code Graph Integration - Kuzu-backed code graph indexing and retrieval
Memory Testing¶
- Memory System Guide - Overview of the current Kuzu-backed memory stack
- Testing Strategy - Validation approach for memory behavior
- Effectiveness Test Design - How we measure success
External Knowledge¶
- External Knowledge Integration - Import external data sources
Distributed Hive Mind β NEW¶
Multi-agent distributed memory system enabling agents to share knowledge across a gossip-based graph network.
- Overview - Architecture overview and design goals
- Architecture - Technical architecture: DHT shards, CRDT gossip, event bus
- Design - Design decisions, data model, and trade-offs
- Getting Started - Deploy a local hive mind in minutes
- Tutorial - Step-by-step guide to building distributed agents
- Evaluation - Benchmarks, eval scenarios, and performance results
- Presentation - High-level slides and demo walkthrough
- Prompt-to-Hive Tutorial - End-to-end walkthrough from prompt to deployed hive
- Hive Mind Getting Started - Diataxis tutorial for the Rust hive runtime
- Hive Mind Tutorial - Build and operate hive-mind workflows step by step
- Hive Mind Design - Design concepts for the Rust hive implementation
- Hive Mind Evaluation - Evaluation model and criteria for hive-mind behavior
Key Features:
- DHT-based sharding: Consistent-hash ring distributes facts across agent shards
- CRDT gossip: Bloom-filter gossip protocol for eventual consistency without conflicts
- Azure Service Bus transport: Cross-process event bus for production deployments
- NetworkGraphStore: Pluggable transport layer wrapping any local GraphStore
- Kuzu-backed shards: Each shard uses Kuzu embedded graph for POSIX-safe persistent storage
Blarify Code Indexing¶
Complete code indexing and analysis with multi-language support:
- How to Use Blarify Code Graph - Enable, query, and configure code graph indexing
- Blarify Integration - Technical integration details
- Blarify Quickstart - Get started in 5 minutes
π§ Features & Integrations¶
Specific features and third-party integrations.
Native Binary Trace Logging β NEW¶
Optional request/response logging using Anthropic's native Claude binary:
- Native Binary Trace Logging Overview - Complete feature documentation hub
- Trace Logging Feature Guide - What it is and when to use it
- How-To: Trace Logging - Practical recipes
- API Reference: Trace Logging - Technical details
- Troubleshooting: Trace Logging - Fix common issues
Key Features: Zero overhead when disabled (<0.1ms), automatic security sanitization, session-scoped JSONL logs, no NPM dependencies.
Power Steering¶
Intelligent guidance system that prevents common mistakes:
- Power Steering Overview - What is Power Steering
- Configuration Guide - Complete configuration reference
- Customization Guide - Customize considerations
- Troubleshooting - Fix common issues
- Migration Guide v0.9.1 - Upgrade guide
- Changelog v0.9.1 - Infinite loop fix release notes
Compaction Handling β NEW
Robust handling of conversation compaction in long sessions:
- Compaction Overview - What is compaction and how power-steering handles it
- Compaction API Reference - Developer documentation for CompactionValidator and CompactionContext
- How to Customize Power Steering - Configuration and troubleshooting
Launching Agent Binaries¶
How amplihack claude launches an agent binary:
- Launch Target Resolution - One resolver decides which binary launches, whether it is healthy, and whether to install
- System Prompt Append - Deliver amplihack's routing contract on a channel the base system prompt cannot outrank
Other Features¶
- Smart Memory Management - Automatic Node.js memory optimization for Claude Code
- Claude.md Preservation - Preserve custom instructions
Third-Party Integrations¶
- MCP Evaluation - Model Context Protocol evaluation
- Signal Onboarding / Signal Channel / Signal Release Builds - Per-session Signal notifications with advisory reply-to-agent, configured via
amplihack signal setup - Signal Chat - Drive a whole agent session from a topic-scoped Signal group chat via
amplihack signal chat "<topic>"(the/signalskill)
βοΈ Configuration & Deployment¶
Advanced configuration, deployment patterns, and environment management.
Configuration¶
- Profile Management - Multiple environment configurations
- Hook Configuration - Customize framework behavior
- amplihack Hooks Block - The single hooks definition, every writer that keeps it in
settings.json, the launch--settingsfile and thedoctordrift report - One Source for the Hooks Block - Why install, launch, profiles and the rotator share one merge, and why launches also pass
--settings - Hook Payload Compatibility - Claude Code, Amplifier, and Copilot CLI tool-input payload shapes and normalization
- Global Hooks at Session Start & Doctor Hook Detection - Why session start keeps global hooks alongside project-local ones, and how
amplihack doctorchecks installed hooks - Shell Command Hook - Custom shell integrations
Deployment¶
- First-Time Install - Install from source, npm bootstrap, or release binaries
- Install Manifest - Understand installed files and uninstall state
- Azure Integration - Deploy to Azure cloud
Build System¶
- Install Manifest - Installed-file manifest and uninstall state
Remote Sessions¶
- Remote Sessions Overview - Execute on remote machines
- Remote Sessions User Guide - Set up and operate remote sessions
- Remote Sessions Tutorial - Walk through an end-to-end remote workflow
π§ͺ Testing & Quality¶
Testing strategies, quality assurance, and validation patterns.
Testing¶
- Benchmarking - Performance measurement and comparison
- Test Gap Analyzer - Find untested code
- CS Validator - Code style validation
- Testing Plan - Testing strategy and execution checklist
- Skill Frontmatter Type Guard - Regression test catching Copilot CLI frontmatter string-scalar TYPE bugs
- Load-Independent Deadline Tests for the Direct Usage Read - How the
tests_usage_directdeadline tests derive their delays fromREFRESH_BUDGETandMAX_STEPso that a loaded host cannot change their outcome - Multitask Launcher Tests and the Profile Root Variable - How the multitask launcher tests pass
AMPLIHACK_CLAUDE_PROFILE_ROOTas an argument so that another test's non-UTF-8 value cannot fail them, and the regression test that races them against a mutator thread - Merge-Base Diffs and Issue-Derived PR Titles in the Publish Step - How
workflow_publish_pr.shlists and counts changed files against the merge base and titles the PR from the issue, with theUpdate <scope>template as the last resort - Draft PR Metadata Recovery and Diagnostics - GitHub title and body recovery, source-backed macOS temp-directory diagnosis, and verified runner-error propagation
- Honest PR Titles and Honoured No-Merge Directives - Lockfile-free scope selection for the template title and detection of no-merge directives in the task
- Keep the Pre-commit Hooks Portable to macOS - POSIX sed, bash 3.2, Linux-only clippy allows, and libc type aliases
Code Review¶
- Code Review Guide - Review process and standards
- Memory Code Review - Example: Memory system review
π Security¶
Security guidelines, context preservation, and best practices.
Security Documentation¶
- Security Recommendations - Essential security practices
- XPIA Configuration Reference - XPIA prompt-injection scanning is off by default; opt in with
XPIA_ENABLED=true, and the CWD, commit-on-main and--no-verifyguards that stay active either way - Dangerous Command Policy - The single list of dangerous commands amplihack ships, the Claude
permissions.denyentries, Codex execpolicy rules file and Copilot CLI launch flags written from it, and thepolicy.deny_commandskey that adds to it - Why Dangerous Commands Are Denied in the Harness - Why the policy uses each harness's own allow/deny mechanism rather than a hook, and what a command-prefix matcher is not
- Add Dangerous-Command Deny Rules - Add your own entries with
policy.deny_commands, apply them, and check what each harness received - Security Context Preservation - Maintain security through sessions
- Security Guides - Comprehensive security documentation
- Turn-Failure Error Hygiene - Bounded, debug-gated turn-failure errors that avoid embedding child output (issue #1092)
Safe Operations¶
- Auto Mode Safety - Autonomous operation guardrails
π οΈ Troubleshooting & Discoveries¶
Fix common issues and learn from past solutions.
Troubleshooting¶
- Discoveries - Known issues and solutions (CHECK HERE FIRST!)
- Troubleshooting Guides - Common problems and fixes
- Memory Consent Issues - Fix prompt, timeout, and detection problems
- Memory-Enabled Agents Issues - Fix memory persistence, pattern recognition, and learning problems
- Platform Bridge Troubleshooting - Fix platform detection and CLI issues
- Stop Hook Exit Hang - Fix 10-13s hang on exit (resolved v0.9.1)
Documentation Guides¶
- Documentation Guidelines - Writing effective docs
- Documentation Knowledge Graph - Graph-based doc navigation and indexing
- How to Generate GitHub Pages - Publish your docs
How-To Guides¶
- Exception Handling - Implement proper error handling in amplihack code
- Configure Memory Consent - Customize prompt behavior, timeouts, and CI/CD integration
- Configure Power-Steering Merge Preferences - Set up merge approval workflow
- Platform Bridge Quick Start - Learn the basics in 10 minutes
- Platform Bridge Workflows - Common workflows for GitHub and Azure DevOps
- Crusty Old Engineer - Skeptical engineering advisor for architecture and tooling decisions
π¬ Research & Advanced Topics¶
Cutting-edge research, experimental features, and deep technical dives.
Research Projects¶
- Blarify Code Graph Integration - Code graph indexing with Kuzu-backed memory
- Documentation Knowledge Graph - Graph-based documentation retrieval
- External Knowledge Integration - Import external data sources into memory workflows
Advanced Topics¶
- Agent Type Memory Sharing Patterns - Advanced memory patterns
- Documentation Knowledge Graph - Graph-based doc navigation
- Workspace Pattern - Advanced workspace organization
π Reference & Resources¶
Quick references, guides, and additional resources.
Quick References¶
- Exception Handling Reference - Complete exception hierarchy and patterns
- Command Selection Guide - Choose the right command
- Platform Bridge API Reference - Complete API documentation
- Power Steering File Locking - Prevents counter race conditions
- UserPromptSubmit Hook API Reference - Framework injection API
- Hook State Root Reference - Where
amplihack-hookswrites metrics, transcripts and session state, and why never into the working directory - Doc Graph Quick Reference - Navigate documentation
Developing amplihack¶
- Developing amplihack - Contribute to the framework
- Create Your Own Tools - Build custom tools
- Workflow to Skills Migration - Migration guide
Contributing¶
- File Organization - Where different file types belong in the repository
- Branch Protection on main - The 7 required CI checks, why strict is off, and the rule for changing CI jobs
- Discoveries - Patterns and insights discovered during development
Investigations¶
- #434 gherkin-expert disposition - Investigation confirming the gherkin-expert skill already ships in amplihack
GitHub & Community¶
- GitHub Repository - Source code
- Issue Tracker - Report bugs or request features
- GitHub Pages - Online documentation
Philosophy in Action¶
amplihack follows three core principles:
-
Ruthless Simplicity: Start with the simplest solution that works. Add complexity only when justified.
-
Modular Design: Build self-contained modules (bricks) with clear public contracts (studs) that others can connect to.
-
Zero-BS Implementation: No stubs, no placeholders, no dead code. Every function must work or not exist.
Example Workflow¶
# Start with a feature request
/ultrathink "Add user authentication to the API"
# UltraThink will:
# 1. Read the default workflow
# 2. Orchestrate multiple agents (architect, security, api-designer, database, builder, tester)
# 3. Follow all workflow steps systematically
# 4. Ensure quality and philosophy compliance
# 5. Generate tests and documentation
Use Cases¶
amplihack excels at:
- Feature Development: Orchestrate multiple agents to design, implement, test, and document new features
- Code Review: Comprehensive analysis for philosophy compliance and best practices
- Refactoring: Systematic cleanup and improvement of existing code
- Investigation: Deep understanding of complex codebases and architectures
- Integration: Connect external services with proper error handling and testing
- Security: Vulnerability assessment and secure implementation patterns
Need Help?¶
- Skill model selection: Configure and validate neutral skills and model-neutrality reference
- Model-neutrality documentation evidence: Review scope and validation
- Start here: Prerequisites β Interactive Installation β Quick Start
- Common issues: Check Discoveries first
- Questions: See DDD FAQ
- Report issues: GitHub Issues
Ready to get started? Head to Prerequisites to set up amplihack in your development environment.