blumeops/mise-tasks/ai-sources
Erich Blume d121006086 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) <noreply@anthropic.com>
2026-03-15 18:40:35 -07:00

20 lines
525 B
Bash
Executable file

#!/usr/bin/env bash
#MISE description="Concatenate all BlumeOps source files for AI context"
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
# All git-tracked files, excluding lock files and other non-useful artifacts
git -C "$ROOT" ls-files \
| grep -v '\.lock$' \
| grep -v '\.gitignore$' \
| grep -v '\.gitkeep$' \
| grep -v '\.gitattributes$' \
| grep -v '^LICENSE$' \
| grep -v '^docs/' \
| while read -r f; do
printf '=== %s ===\n' "$f"
cat "$ROOT/$f"
printf '\n'
done