Agent Friction Detector

•
307
•

Identifies repetitive obstacles and friction points during sessions to automatically propose and graduate permanent project rules.

The Agent Friction Detector is a sophisticated diagnostic tool designed to bridge the gap between ephemeral session context and durable project guidance. By monitoring Claude's execution signals—such as command failures, repeated file reads, and user corrections—it calculates a graduation score based on frequency and recency. This systematic approach ensures that recurring patterns are promoted from temporary logs into permanent documentation like LEARNINGS.md or CLAUDE.md, effectively preventing the same mistakes from occurring in future sessions and optimizing agent autonomy over time.

主な機能

01Intelligent anti-noise filtering to exclude one-off transient failures and intentional user exploration.
02Automatic detection of weighted friction signals including retry loops, permission denials, and user overrides.
03Weighted scoring algorithm with recency decay to ensure only relevant and persistent issues are flagged for graduation.
04307 GitHub stars
05Three-tier storage architecture that graduates patterns from session logs to persistent candidates and finally to project rules.
06Standardized session-capture envelope (ADR-0011) for consistent parsing and downstream tool integration.

ユースケース

01Automating the maintenance of project-specific best practices and CLAUDE.md guidelines.
02Identifying and fixing hidden context gaps that cause the agent to repeatedly re-read the same files.
03Conducting automated session retrospectives to improve the efficiency of long-term development workflows.