feat: cross-platform context drift cleanup + standalone verify CLI#28
Conversation
Closes the gap between the documented multi-platform support and what was actually shipped, and adds the standalone CLI that the docs already referenced. Documentation accuracy (AGENTS.md, three SKILL.md files, troubleshooting.md): - Hooks are no longer described as Claude-Code-only. The skill, agent, and rule descriptions now reflect actual hook event support across Claude Code (12), Gemini CLI (11), Copilot (8 preview), Cursor (4+), Cline (3), and Codex CLI (2 experimental). - Bridge files (.cursorrules, .windsurfrules, GEMINI.md) are now all described as thin bridges rather than mixing "thin" and "compatibility" framings. - Cross-Tool Compatibility section in troubleshooting.md replaces the earlier 4-row plugin/no-plugin table with the full Platform Support Matrix + Tier table + Getting Started by Platform. - ai-context skill clarifies that CLAUDE.md is only used by Claude Code; other tools load AGENTS.md directly. New files: - bin/context-verify.sh — standalone bash CLI implementing 10 of the 13 context-verify checks. No plugin system required. Supports --ci and --min-score for CI integration. - docs/references/platform-capabilities.md — detailed per-tool capability matrix referenced from troubleshooting.md. Closes the SessionStart hook drift report (CLAUDE.md / AGENTS.md / llms.txt no longer flag missing references that this commit ships). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
To continue reviewing without waiting, purchase usage credits in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The 10-column capability matrix used single-cell rows as visual section dividers (`| **Context files** |` etc.). markdownlint MD056 requires all rows to have the declared column count, so pad each divider to 10 cells. Renders identically. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Summary
Resolves the context drift the SessionStart hook has been flagging for several sessions. Two related goals:
bin/context-verify.shwas already referenced from SKILL.md descriptions and the troubleshooting guide, but never committed.What changed
Documentation accuracy (5 files, ~30 lines net)
AGENTS.md— skill descriptions now state which platforms support hooks; the Hooks section header drops the "(Claude Code Only)" qualifier and explicitly lists which other platforms have hook support, with a CI-based fallback for the rest..claude/skills/ai-context/SKILL.md— bridges all described as thin (was a mix of "thin" and "compatibility"); CLAUDE.md is clarified as Claude-Code-only; new "Platform Notes" section covers AGENTS.md auto-load behaviour, hook event counts per platform, and the standalone CLI..claude/skills/context-guard/SKILL.md— primary platform = Claude Code, with adapted hooks documented for Gemini CLI / Copilot / Cursor / Cline..claude/skills/context-verify/SKILL.md— adds standalone CLI section with usage examples; check 6 (Context Guard Status) clarifies which platforms it covers.docs/guides/troubleshooting.md— replaces the earlier 4-row plugin/no-plugin table with the full Platform Support Matrix (8 tools × 6 capabilities), the Tier table (what ContextDocs delivers per platform), and a "Getting Started by Platform" guide.New files
bin/context-verify.sh(executable, 25 KB) — standalone bash CLI implementing 10 of the 13 context-verify checks. No plugin system required. Supports--ciand--min-score Nfor CI integration. Verified locally — produced the 90/100 score this PR targets.docs/references/platform-capabilities.md— detailed per-tool capability matrix (9 tools × 4 capability categories) with last-researched date, referenced fromdocs/guides/troubleshooting.md.Verification
Run from a checkout of the branch:
bash bin/context-verify.sh # expected: Score 90/100 (A — Lean and current)Local checks all green:
typosclean ✅bash tests/check-version-consistency.shgreen ✅python3 tests/validate-frontmatter.pygreen ✅bash tests/check-token-budgets.sh0 warnings ✅What's NOT in this PR
.mcp.cloudflare.json,.mcp.full.json,.mcp.json,.mcp.lean.json,.mcp.research.json— local MCP profile configs unrelated to context drift, kept untracked. A follow-up could add them to.gitignoreif appropriate.platforms/(forward-looking roadmap reference), and three URL/cross-repo references that the verify script flags by glob shape rather than treating as URLs. Could be tightened in the verify script in a separate PR.Test plan
bash bin/context-verify.sh --ci --min-score 90exits 0.🤖 Generated with Claude Code