From d121006086d24bbc176719ae6f6ee16ab5624c3f Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Sun, 15 Mar 2026 18:40:35 -0700 Subject: [PATCH] Exclude docs from ai-sources, mention ai-sources in CLAUDE.md ai-sources now skips docs/ to avoid duplicating ai-docs output. CLAUDE.md notes ai-sources as available for deep context on problems with a large surface area. Co-Authored-By: Claude Opus 4.6 (1M context) --- CLAUDE.md | 1 + mise-tasks/ai-sources | 1 + 2 files changed, 2 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index a6d883e..289725a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -15,6 +15,7 @@ blumeops is Erich Blume's GitOps repository for personal infrastructure, orchest 1. **Always run `mise run ai-docs` at session start** This will refresh your context with important information you will be assumed to know and follow. **Read the full output** — never truncate, pipe to `head`/`tail`, or skip sections. + For problems with a large surface area, ask the user if `mise run ai-sources` should also be run — it concatenates all non-doc source files (~270K tokens) for deep codebase context. 2. **Always use `--context=minikube-indri` with kubectl** (or `--context=k3s-ringtail` for ringtail services) - work contexts must never be touched 3. **Classify the change as C0/C1/C2 before starting** (see below) — this determines branching and PR requirements 4. **Feature branches + PRs for C1/C2** - checkout main, pull, create branch, open PR via `tea pr create`. C0 goes direct to main. diff --git a/mise-tasks/ai-sources b/mise-tasks/ai-sources index 4048c68..325b6e5 100755 --- a/mise-tasks/ai-sources +++ b/mise-tasks/ai-sources @@ -12,6 +12,7 @@ git -C "$ROOT" ls-files \ | grep -v '\.gitkeep$' \ | grep -v '\.gitattributes$' \ | grep -v '^LICENSE$' \ + | grep -v '^docs/' \ | while read -r f; do printf '=== %s ===\n' "$f" cat "$ROOT/$f"