Retrieved article excerpt
Open article · Retrieved 2026-10-20T13:28:26.583888+00:00
# Sóþspell
**Sóþspell** (Old English for "truth story") is an AI/LLM-guided walkthrough of a
software project. It explains a codebase from the top down like a film: a
narrator describes the system, diagrams build and change with the story, and the
relevant code is highlighted and linked as each module, class, function, object,
or feature is discussed.
The explanation can play continuously when the user has nothing to ask. The user
can pause at any moment, open the code, click a diagram node, or ask a question;
answering does not lose their place. Progress is recorded so the walkthrough can
resume later.
[Screenshot 2026-10-20 at 13 21 12](https://private-user-images.githubusercontent.com/5565189/678995719-158512de-98c1-4242-b06b-a21d1bb23ce5.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTI1MDMyMDUsIm5iZiI6MTc5MjUwMjkwNSwicGF0aCI6Ii81NTY1MTg5LzY3ODk5NTcxOS0xNTg1MTJkZS05OGMxLTQyNDItYjA2Yi1hMjFkMWJiMjNjZTUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTAyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjEwMjBUMTMyODI1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzJkMWNmM2NiNGM4ZGVjNTgzYTQ4NjJmOTBmZmFlMDBmZDJiYTQ5NjJjNzNmOWZiY2VmYzY3OTUxNWMxYTAxZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0._pswbVkRGQeCpHvSo-quGWGa4H7O9kLaHqJv3kxdblw)
## Contributors
I welcome PRs and issues! I request that a human reads the whole bug report
or pull request before it is submitted. I also would much prefer smaller PRs
rather than huge ones. Please create PRs that merge into the `dev` branch, not main.
If you are able to tip me for this work, I'd be eternally grateful. I'm currently
looking for work.
[ko-fi](https://ko-fi.com/A0A21MC3JK)
## Quick start
Prerequisites: If you want to use voice support other than browser-based speech,
you will need an ElevenLabs API key. If you want to create your own narrations,
or ask questions during an existing tour, you will need an LLM API key.
### Web
```
<in a suitable parent directory>
git clone https://github.com/anthonyclarka2/sothspell.git
cd sothspell
pnpm install
pnpm build
pnpm sothspell help
pnpm sothspell serve
```
<http://127.0.0.1:4319/> is opened automatically. From here you can run through the demo narration.
#### To Analyse and Narrate a Different Repo
1. Run the web interface as above. (`pnpm sothspell serve`)
2. Open settings near the top right corner of the browser window.
3. Click "New authoring profile" and add an LLM API key. Test the connection and save it.
4. If you have an ElevenLabs API key, you can do the same for "New narration profile".
5. Then click "New Tour".
6. You can choose either a local git repo, or a remote GitHub repo (other Git hosts coming soon!).
7. Check that the repository is accessible via "Check repository".
8. Choose "Active authoring profile".
9. Choose the level of narration: New contributor, Technical evaluator, or Maintainer.
10. Choose a target runtime (TODO: suggest runtime length based on repo size + level of narration)
11. Click "Author the tour" and wait a few minutes.
12. Follow the tour in your web browser!
When in the tour of the repository, you can listen to a narrator or read along at your own pace. To listen to a narrator, choose one of "Browser voice" or "Cloud voice". Browser voice uses the built in web speech API, while Cloud voice uses the credentials and voice you chose earlier in the Narration Profile setup.
Enjoy the tour!
### Terminal
Analyze a local repository read-only and author a tour (use your own checkout
path; Bunbun is this project's reference project):
```
pnpm sothspell analyze /path/to/your/repo --brief
pnpm sothspell analyze /path/to/your/repo --save
pnpm sothspell author /path/to/your/repo --model fixture --out /tmp/your-tour
SOTHSPELL_MODEL=openai/gpt-5.2 pnpm sothspell author /path/to/your/repo --out /tmp/your-tour
```
### OpenCode Plugin
Not published yet; OpenCode V2 can load a local plugin directory, so the plugin
runs straight from this checkout.
Prerequisites (once per checkout):
```
cd /path/to/sothspell
pnpm install
pnpm build # gives `sothspell serve` a web player to host
pnpm sothspell serve # terminal 1; player and API on http://127.0.0.1:4319
```
Point OpenCode at the plugin directory in the project you want to tour, in
`opencode.jsonc`:
```
{
"$schema": "https://opencode.ai/config.json",
"plugins": [
{
"package": "/absolute/path/to/sothspell/packages/opencode-plugin",
"options": { "playerUrl": "http://127.0.0.1:4319" },
},
],
}
```
Relative paths resolve from the config file that contains the entry, so an
absolute path is the least surprising when the plugin lives in another
checkout. Restart OpenCode if it was already running
(`opencode service restart`).
Then, in a session:
- `/sothspell` — open the existing tour, or generate one first.
- `/sothspell status`, `/sothspell generate`, `/sothspell ask <question>`.
- Tools: `sothspell_status`, `sothspell_open`, `sothspell_generate`,
`sothspell_ask`.
- Options: `playerUrl` (4319 for `sothspell serve`, 5173 for `pnpm dev`),
`autoOpen`, `model`, `maxMinutes`.
The plugin resolves `@opencode/plugin` and the `@sothspell/*` workspace
packages from this checkout's `node_modules`, which is why `pnpm install` runs
here first. The terminal only launches the browser; diagrams, code, and
narration play in the player. See
[docs/opencode-plugin.md](https://github.com/anthonyclarka2/sothspell/blob/main/docs/opencode-plugin.md) for the full surface.
### Claude Code Plugin
Not published yet; Claude Code loads a plugin directory directly, so no
marketplace or registry is needed.
With the same prerequisites (checkout installed, `pnpm sothspell serve`
running):
```
claude --plugin-dir /absolute/path/to/sothspell/packages/harness-claude-code/plugin
```
The plugin ships a `sothspell` skill with four verbs — `/sothspell`,
`/sothspell status`, `/sothspell generate`, `/sothspell ask <question>` — and a
SessionStart hook that announces an existing tour. Its `userConfig` exposes
`player_url` (default `http://127.0.0.1:4319`) and an optional `model`.
The bundled wrapper runs `pnpm --dir <repo> exec tsx` against this checkout. If
you copy the plugin elsewhere, set `SOTHSPELL_REPO=/path/to/sothspell` (or
`SOTHSPELL_TSX` to a tsx-compatible launcher). See
[docs/harnesses.md](https://github.com/anthonyclarka2/sothspell/blob/main/docs/harnesses.md).
### Codex Plugin
Not published yet; Codex installs plugins from a local marketplace entry, so no
registry is needed.
With the same prerequisites, add the plugin to a marketplace file — personal
(`~/.agents/plugins/marketplace.json`) or repo
(`.agents/plugins/marketplace.json`):
```
{
"name": "local-sothspell",
"plugins": [
{
"name": "sothspell",
"source": {
"source": "local",
"path": "/absolute/path/to/sothspell/packages/harness-codex/plugin",
},
"policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" },
"category": "Productivity",
},
],
}
```
Restart Codex, install the plugin, and review and trust its bundled hook in
`/hooks`. Then invoke the skill — `$sothspell` (or `/skills`) — with `status`,
`generate`, `open`, and `ask <question>`.
The bundled wrapper runs `pnpm --dir <repo> exec tsx` against this checkout. If
you copy the plugin elsewhere, set `SOTHSPELL_REPO=/path/to/sothspell` (or
`SOTHSPELL_TSX`). `SOTHSPELL_PLAYER_URL` overrides the default player URL
`http://127.0.0.1:4319`. See [docs/harnesses.md](https://github.com/anthonyclarka2/sothspell/blob/main/docs/harnesses.md).
## Example project
The first reference project is **Bunbun**, a NestJS + Prisma Next + ATProto
discussion service at commit `9fef24d`. The Bunbun tree is read-only; all
snapshots, tours, audio, and runs live under `SOTHSPELL_HOME` (default
`~/.sothspell`). The checked-in golden tour lives in `examples/bunbun-tour/` and
stores only small, attributed excerpts.
## Documentation
- [Roadmap](https://github.com/anthonyclarka2/sothspell/blob/main/plans/ROADMAP.md) — next-stage feature inventory, phase sequence,
architecture changes, security, testing standards, and risks.
- [Archived v1 plans](https://github.com/anthonyclarka2/sothspell/blob/main/plans/archive/README.md) — the first-release roadmap and
Phases 1–8, with the shipped baseline.
- [Architecture](https://github.com/anthonyclarka2/sothspell/blob/main/docs/architecture.md) — packages, pipeline, trust boundaries,
and storage.
- [Tour format](https://github.com/anthonyclarka2/sothspell/blob/main/docs/tour-format.md) — the document, anchors, diagrams, and
versioning.
- [Phase 9](https://github.com/anthonyclarka2/sothspell/blob/main/plans/PHASE-9.md) — preferences UI for authoring and narration
connections.
- [Phase 10](https://github.com/anthonyclarka2/sothspell/blob/main/plans/PHASE-10.md) — Claude Code and Codex harness plugins.
- [Phase 11](https://github.com/anthonyclarka2/sothspell/blob/main/plans/PHASE-11.md) — public GitHub import with sandboxed cloning.
- [Phase 12](https://github.com/anthonyclarka2/sothspell/blob/main/plans/PHASE-12.md) — GitHub OAuth accounts and cross-device sync.
- [Phase 13](https://github.com/anthonyclarka2/sothspell/blob/main/plans/PHASE-13.md) — Python, Go, Rust, and Java analyzers.
- [Phase 14](https://github.com/anthonyclarka2/sothspell/blob/main/plans/PHASE-14.md) — multi-language narration and translation.
- [Phase 15](https://github.com/anthonyclarka2/sothspell/blob/main/plans/PHASE-15.md) — human review UI for generated tours.
- [Phase 16](https://github.com/anthonyclarka2/sothspell/blob/main/plans/PHASE-16.md) — embeddable player for documentation sites.
- [Development guide](https://github.com/anthonyclarka2/sothspell/blob/main/docs/development.md) — workspace, commands, and the
golden-tour workflow.
- [Repository analysis](https://github.com/anthonyclarka2/sothspell/blob/main/docs/analysis.md) — read-only snapshots, symbols, cache,
CLI, and project brief.
- [Tour authoring](https://github.com/anthonyclarka2/sothspell/blob/main/docs/authoring.md) — model port, context packs, curriculum,
validation, repair, quality reports, and the author CLI.
- [Player and code browser](https://github.com/anthonyclarka2/sothspell/blob/main/docs/player.md) — playback controls, keyboard map,
virtualized code pages, stale badges, and progress.
- [Narration](https://github.com/anthonyclarka2/sothspell/blob/main/docs/narration.md) — browser and cloud speech, synchronization,
caching, and privacy.
- [Guide and interludes](https://github.com/anthonyclarka2/sothspell/blob/main/docs/guide.md) — in-tour questions, citations,
drilldown, and progress.
- [OpenCode plugin](https://github.com/anthonyclarka2/sothspell/blob/main/docs/opencode-plugin.md) — install, commands, tools, RPC,
and the host model adapter.
- [Harnesses](https://github.com/anthonyclarka2/sothspell/blob/main/docs/harnesses.md) — the adapter contract and the Claude Code and
Codex adapters.
- [Settings and connection profiles](https://github.com/anthonyclarka2/sothspell/blob/main/docs/settings.md) — provider profiles, the
secret store, and resolution rules.
- [GitHub import](https://github.com/anthonyclarka2/sothspell/blob/main/docs/import.md) — URL forms, sandbox limits, and the import
API/UI/CLI.
- [Accounts and sync](https://github.com/anthonyclarka2/sothspell/blob/main/docs/accounts.md) — GitHub OAuth, sessions, sync merge
rules, export, and delete.
- [Embeddable player](https://github.com/anthonyclarka2/sothspell/blob/main/docs/embed.md) — export, the host API, progress, CSP, and
the docs fixture.
- [Human review](https://github.com/anthonyclarka2/sothspell/blob/main/docs/review.md) — the review state machine, editing,
regeneration, anchor gating, and decisions.
- [Translation and loc