On this page

Easy #

Step-by-step guide for common use cases and daily workflow.

Clone Everything #

# Grimoire (the library + build scripts)
git clone https://github.com/sagaciouszu/destiny-agent-grimoire.git
cd destiny-agent-grimoire

# All 12 agent repositories, in the folder beside this clone
grep -oE '"source": *"[^"]+"' series/agents.json | sed -E 's/.*"([^"]+)"$/\1/' |
while read -r repo; do
    git clone "https://github.com/sagaciouszu/$repo.git" "../$repo"
done

Build the Grimoire #

python3 db/migrate.py

Run the Master Audit #

bash grimoire-master-audit.sh
bash tests/query-interface-test.sh
python3 tests/conformance.py

Build the Site Locally #

cd ../destiny-agent-grimoire-site
npm install
npx @11ty/eleventy
# Output in _site/

Deploy Characters to OpenCode #

cd ../destiny-agent-grimoire
bash scripts/sync-live-agents.sh

This installs all 12 main agents plus 12 read-only consult copies to ~/.config/opencode/agents/.

Rebuild After Changes #

If you modify source files, scraper output, or agent content:

# In the grimoire repo
python3 db/migrate.py
python3 tests/sync-doc-counts.py
bash grimoire-master-audit.sh

# In each agent repo (from its root)
python3 tests/conformance.py