From asi
Detects and retrieves interruption patterns like tool rejections, reverts, two-locks, and abandonments from Amp thread history to analyze and improve agent behavior.
How this skill is triggered — by the user, by Claude, or both
Slash command
/asi:amp-skillThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**GF(3) Trit**: 0 (ERGODIC - coordination layer)
GF(3) Trit: 0 (ERGODIC - coordination layer) Foundation: DuckDB ACSet from Amp file-changes
Amp-Skill distills usage patterns from Amp thread history, specifically focusing on interruption patterns where tool suggestions were rejected in favor of:
| Metric | Value |
|---|---|
| Total Threads | 616 |
| Total Tool Calls | 2,535 |
| Threads with Interruptions | 282 (45.8%) |
| Reverted Tool Calls | 84 (3.3%) |
| Two-Lock Cascades | 47 |
| Complete Discontinuations | 22 |
| Pattern Type | Count | Percentage |
|---|---|---|
| abandoned | 269 | 62.4% |
| reverted | 84 | 19.5% |
| two_lock | 47 | 10.9% |
| discontinuation | 22 | 5.1% |
| high_rejection | 9 | 2.1% |
| Role | Threads | Tool Calls | Reverted |
|---|---|---|---|
| MINUS | 218 | 769 | 27 |
| ERGODIC | 209 | 976 | 26 |
| PLUS | 189 | 790 | 31 |
.org - 28 reverts (Emacs org-mode files).py - 20 reverts (Python scripts).sh - 18 reverts (Shell scripts).md - 15 reverts (Markdown documentation)-- Query interruption patterns
SELECT * FROM amp_interruptions ORDER BY ts DESC;
-- Find high-rejection threads
SELECT thread_id, tool_call_count, reverted_count,
ROUND(100.0 * reverted_count / tool_call_count, 1) as revert_pct
FROM amp_threads
WHERE reverted_count > 0
ORDER BY revert_pct DESC;
-- Detect two-lock cascades
SELECT thread_id, COUNT(*) as consecutive_reverts
FROM amp_interruptions
WHERE pattern_type = 'two_lock'
GROUP BY thread_id
ORDER BY consecutive_reverts DESC;
capability-signer-prototype.sh.org files most frequently rejected (28)# Load/refresh Amp threads
bb scripts/amp_thread_loader.bb
# Query via DuckDB
duckdb trit_stream.duckdb "SELECT * FROM amp_interruptions"
When Amp-Skill detects a high-rejection pattern:
~/.amp/file-changes/T-* (2,535 files)npx claudepluginhub plurigrid/asi --plugin asiExtracts undocumented Amp API patterns from local thread JSONs using DuckDB SQL and bash. Reveals tool usage stats, MCP servers, and message schemas for API discovery.
Analyzes Claude Code conversation history to identify usage patterns, common mistakes, and automation opportunities for workflow improvement.
Root cause analyzer for AI coding sessions. Detects scope drift, rework patterns, and root causes to improve future prompts and repo health.