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>
13 lines
377 B
Bash
Executable file
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
|