Features Documentation¶
Home > Features
This section documents amplihack-rs feature implementations.
Power Steering¶
Intelligent guidance system that prevents common mistakes and ensures work completeness:
Self-Heal¶
- Auto-Restage Framework Assets on Version Change — startup-time version-stamp check that re-runs
amplihack installautomatically when the binary version no longer matches~/.amplihack/.installed-version.
Update Check¶
- Post-Update Install — Re-exec New Binary — after
amplihack updatedownloads a new binary, the post-update install step spawns the new binary as a subprocess instead of running the old binary's compiled-in install code (issue #683). - Install/Update PATH Conflict Handling — detects stale system binaries that shadow
~/.local/bin, prefers safe user-local update targets, and reports manual sudo repair guidance without attempting privileged writes. - Framework Bundle Compatibility — validates smart-orchestrator source and staged bundles so stale monolithic recipes cannot survive install/update repair (issue #734).
- Startup Self-Update Prompt — Subprocess-Safe Skip — startup self-update prompt skips automatically in CI, delegated agents, non-TTY stdin, with
--subprocess-safe, or whenAMPLIHACK_NONINTERACTIVE/AMPLIHACK_AGENT_BINARYis set; emits a single skip-line to stderr (issue #625).
Workflow Recovery¶
- Workflow-Owned PR Recovery Readiness — recover existing pull requests through
default-workflow, reuse the PR branch, verify hook and additive-copy readiness, and finalize only through workflow-owned steps. - Ancestry-Aware Step 15 Publish —
workflow-publishstep 15 integrates with its upstream by branch ancestry: fast-forward whenbehind == 0, fail closed with structuredahead=/behind=/merge_base=evidence when histories diverge, and never blind-rebase already-integrated commits. Includes the PR #980 brick-rule cleanup that trimsworkflow-publish.yamlback under the 400-line limit (issue #978). - Existing Branch Finalization Runbook — inspect, preserve, validate, publish, and merge an already-implemented branch; includes the post-v0.9.77 issue-658 branch as the concrete example.
- Recipe Subprocess and Hook Input Contracts — recipe-runner child environment and hook input compatibility contract; see the recipe environment reference and hook input contract.
- Workflow Provider Abstraction — provider-neutral tracking, change-request publication, terminal state, and stale cleanup through typed helpers and provider adapters.
- Provider-Aware Workflow Tracking — compatibility entry point for the provider-neutral workflow contract.
- Non-Fatal Documentation Review Checkpoint — a failed
step-06b-documentation-reviewno longer reports a generic FAILURE after durable side effects (pushed commit, opened/merged PR, posted review thread) already landed; the workflow checkpoints partial success, surfaces the artifact references, and ends in a degraded-success state with aWARNING+NEEDS_ATTENTIONfollow-up (issue #834).
Install Provisioning¶
- Best-Effort Mermaid CLI Provisioning —
amplihack installprovisions the Mermaid CLI (mmdc, npm@mermaid-js/mermaid-cli) on a best-effort basis so thepr-guideskill can render mermaid diagrams to images locally for Azure DevOps instead of relying on the third-partymermaid.inkservice. A failed or skipped install warns and continues (never blocks install); disable entirely withAMPLIHACK_SKIP_MMDC=1(issue #828).
Workflow Guardrails¶
- Skill-to-Agent Redirect — the
PreToolUsehook intercepts aSkillcall naming an agent-only target (for exampleprompt-writer), blocks it with a non-fatal redirect to agent execution, and prevents the copilot runtime'sSkill not foundabort from silently skipping the requirements-clarification phase (issue #838). See the API reference.
Signal Channel¶
- Signal Channel — feature-gated (
signal, default OFF) per-session Signal messaging channel. Each session opens a private Signal group, posts throttled progress updates, and lets an allow-listed operator send advisory instructions back into the run. Inbound text is surfaced only ashookSpecificOutput.additionalContextand is never auto-executed; the gate is fail-closed (allowlist +device == 1+groupIdmatch + bounded-TTL echo suppression). Wired throughamplihack-hooks(SessionStart/PostToolUse/UserPromptSubmit/Stop) with a detachedsignal-subscriberprocess. Config is env-first with no silent defaults; seeexamples/signal-config.toml. - Setup / onboarding: Signal Onboarding — step-by-step how-to for configuring one host with
amplihack signal setupand distributing the config across a fleet withamplihack signal distribute.
GitHub Distribution¶
- GitHub Distribution — publish agent bundles to GitHub repositories via the
ghCLI, with idempotent uploads, visibility control, and tagged releases.
Additional Features¶
- amplihack-rs Parity Reference - subprocess prompt delivery configuration, binary capability matrix, doctor diagnostics, and Rust API.