kanso-context

Audit and prune AGENTS.md and CLAUDE.md context files for redundancy and drift.

2|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/blakecyze/kanso --skill kanso-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kanso-context
Source: https://github.com/blakecyze/kanso/tree/main/skills/kanso-context
Command: npx skills add https://github.com/blakecyze/kanso --skill kanso-context

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the problem of bloated, ineffective, or outdated agent context files (like AGENTS.md or CLAUDE.md) that degrade AI performance and increase costs.

Core Features & Use Cases

  • Context Auditing: Analyzes existing context files to identify redundancy, drift, and missing critical guidance like security or performance constraints.
  • Intelligent Pruning: Proposes specific, line-by-line deletions to keep context files under the optimal 150-line threshold for maximum agent reliability.
  • Interactive Initialization: Bootstraps lean, high-impact AGENTS.md files based on your project's specific architecture and conventions.
  • Drift Detection: Compares your context files against recent PR history to ensure instructions remain aligned with the actual codebase.

Quick Start

Run the kanso-context skill in audit mode to review your current AGENTS.md file for potential improvements.

Frequently Asked Questions about kanso-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize AGENTS.md files to reduce token waste and improve AI reliability?

Optimizing AGENTS.md files requires auditing existing context for redundancy and drift, then pruning line-by-line deletions to keep the file under the optimal 150-line threshold for maximum agent reliability.

What is context drift in AI agent documentation and when should I audit it?

Context drift occurs when agent instructions become misaligned with the actual codebase. You should audit context files when recent PR history diverges from documented conventions, degrading AI performance and increasing costs.

Do I need git and ripgrep installed to audit CLAUDE.md documentation drift?

Yes, analyzing codebase structure and detecting documentation drift requires git, rg (ripgrep), find, and wc tools to inspect file structures and compare context files against recent development patterns.

What's the best way to bootstrap a lean AGENTS.md file for a new project?

The best way to bootstrap a lean AGENTS.md file is through interactive initialization that analyzes your project's specific architecture and conventions to generate high-impact context without bloat.

Why does my AI agent ignore instructions in my large context file?

AI agents ignore instructions in large context files due to diminished reliability beyond the optimal 150-line threshold. Pruning redundant lines and enforcing high-impact constraints resolves this degradation.