blumeops/mise-tasks/ai-docs
Erich Blume 9566d8fec9 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>
2026-03-15 18:37:50 -07:00

13 lines
377 B
Bash
Executable file

#!/usr/bin/env bash
#MISE description="Prime AI context with all BlumeOps documentation"
set -euo pipefail
DOCS_DIR="$(cd "$(dirname "$0")/.." && pwd)/docs"
# Concatenate all docs (excluding changelog fragments)
find "$DOCS_DIR" -name '*.md' -not -path '*/changelog.d/*' | sort | while read -r f; do
printf '=== %s ===\n' "${f#"$DOCS_DIR/"}"
cat "$f"
printf '\n'
done