Add ai-sources task, update ai-docs to include all docs

ai-sources: concatenates all git-tracked files (excluding lock files
and other non-useful artifacts) for full codebase AI context (~353K
tokens).

ai-docs: now concatenates all docs instead of a curated subset (~85K
tokens).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-03-15 18:37:50 -07:00
commit 9566d8fec9
2 changed files with 26 additions and 20 deletions

19
mise-tasks/ai-sources Executable file
View file

@ -0,0 +1,19 @@
#!/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$' \
| while read -r f; do
printf '=== %s ===\n' "$f"
cat "$ROOT/$f"
printf '\n'
done