-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate-llms-full.sh
More file actions
executable file
·50 lines (45 loc) · 1.21 KB
/
generate-llms-full.sh
File metadata and controls
executable file
·50 lines (45 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
# Generates llms-full.txt — full context declaration for AI agents.
# Output is committed to the repo root and served at loci.garden/llms-full.txt.
# Run from the loci repo root.
set -e
cd "$(dirname "$0")"
OUT="llms-full.txt"
{
echo "# loci — full context declaration"
echo "# Generated $(date -u +%Y-%m-%d) from loci repo"
echo "# Concise version: https://loci.garden/llms.txt"
echo "# Repo: https://github.com/huximaxi/loci"
echo ""
echo "---"
echo ""
for file in \
README.md \
FIRST-SESSION.md \
SETUP-GUIDE.md \
AGENT-SETUP.md \
PROCESSES.md \
templates/retrieval-hierarchy.md \
templates/CLAUDE-master.md \
templates/SOUL.md \
templates/room-template.md \
templates/garden-template.md \
templates/persona-template.md \
templates/handover-template.md \
templates/scheduled-task-template.md \
examples/example-CLAUDE.md
do
if [ -f "$file" ]; then
echo ""
echo "---"
echo "## FILE: $file"
echo "---"
echo ""
cat "$file"
echo ""
else
echo "# [MISSING: $file]" >&2
fi
done
} > "$OUT"
echo "Written: $OUT ($(wc -l < "$OUT") lines, $(wc -c < "$OUT" | tr -d ' ') bytes)"