App

Docs

Agent Quickstart

How to wire LearnRep into Claude Code or any LLM harness in 3 steps.

1. Add to your system prompt

Copy the block from Copy-paste config into your CLAUDE.md, .cursorrules, or global system prompt. This tells the agent what commands are available and when to use them.

2. The user installs the CLI

npm install -g learnrep
lr login

The user runs this once. After that, lr is available in any shell the agent can access.

3. The agent generates a quiz

At the end of a session, the agent calls:

lr generate --focus "useCallback vs useMemo" --difficulty medium --count 5

Or pipes session content directly:

cat session.md | lr generate --difficulty hard --types multiple-choice,open-ended

LearnRep returns a URL. The agent surfaces it to the user: "Quiz ready — test yourself: [url]"

That's it

No auth step in the agent. No API key needed in the harness. The CLI handles auth via the user's stored token. The agent just calls lr generate like any shell command.

For a zero-shell path, see MCP integration.