This guide takes you from installation to a first ExplainGate session.
Documentation · Visual artifacts · Workflows · Gates and data · Troubleshooting
- Claude Code or Codex
- Git, for batch and review workflows
- Bash for command gates: macOS, Linux, WSL, or Git Bash on Windows
- The GitHub CLI (
gh) when reviewing pull requests
You can still use system, study, and drill modes without GitHub.
Run:
claude plugin marketplace add phaltoe/explaingate
claude plugin install explaingate@explaingateYou can also run the equivalent commands inside a Claude Code session:
/plugin marketplace add phaltoe/explaingate
/plugin install explaingate@explaingate
Restart the session, then invoke /explaingate or ask for a quiz in plain
language.
Run:
codex plugin marketplace add phaltoe/explaingate
codex plugin add explaingate@explaingateThen:
- Open
/hooksand trust the ExplainGate hook. - Start a new thread so Codex discovers the installed skill.
- Invoke
$explaingateor ask for a quiz in plain language.
Open a repository containing work on a branch and ask:
| Client | Prompt |
|---|---|
| Claude Code | /explaingate |
| Codex | $explaingate |
| Either | Quiz me on this branch before I push. |
ExplainGate will:
- Identify the branch changes.
- Ask one question and wait for your answer.
- Teach anything important you missed.
- Ask a different question about the same concept.
- Write the pass marker only after you demonstrate understanding.
- Save a card for later recall.
- Create a polished visual artifact and return a link to it.
The default batch session uses about four questions. Short, precise answers
are welcome; this is not a writing test. The artifact is a self-contained HTML
page saved under ~/.explaingate/artifacts/; read Visual artifacts
for its contents and privacy model.
Review PR 64 and check whether I understand it.
Help me learn this codebase well enough to walk through its architecture.
Help me absorb docs/design.md and make cards from it.
Run a five-minute drill on whatever is due.
See Workflows for the exact behavior and command form of each mode.
The plugin hook covers commands issued through the coding agent. A native Git hook also covers pushes from an ordinary terminal.
For one repository:
git clone https://github.com/phaltoe/explaingate.git ~/.explaingate/plugin
cd /path/to/your/repository
bash ~/.explaingate/plugin/scripts/install-git-hook.shFor every repository owned by your user account:
git clone https://github.com/phaltoe/explaingate.git ~/.explaingate/plugin
bash ~/.explaingate/plugin/scripts/install-global-git-hook.shThe installers refuse to overwrite an existing hook configuration. Read Gates and local data before enabling the global option.
The project and plugin ID changed to ExplainGate in version 0.4. Install the
new explaingate@explaingate package so clients discover $explaingate or
/explaingate.
Old cards are not read from ~/.teachback. To preserve them:
mkdir -p ~/.explaingate
cp ~/.teachback/deck.md ~/.explaingate/deck.mdOld pass markers intentionally do not migrate; complete a fresh quiz for the current commit or pull request.
If anything does not appear or remains blocked, continue with Troubleshooting.