TeachReplay
Teach once, replay anywhere.
A harness-agnostic Teach-by-Demonstration engine. Show a workflow once — clicks, typed values, shell commands — and it becomes a reusable, parameterized skill, replayed later with different inputs and an explicit success or failure.
26-second walkthrough · click for HD · teachreplay-demo.mp4
How it works
- Teachstart recording, demonstrate the task once
- →
- Recordsemantic events become a versioned trajectory
- →
- Compilea deterministic compiler builds a parameterized skill
- →
- Replaydeterministic execution with per-step checks
- →
- Verifyan explicit verdict — never silent success
Highlights
Harness-agnostic
Zero OpenMausBot dependencies, enforced by a test. Adapters contribute backends and stores only.
GUI + CLI workflows
Shell commands recorded with real exit codes replay beside browser steps.
Parameterized skills
Demonstrated values become inputs — your values are the defaults.
Explicit verification
Success requires the recorded condition to hold; failures say which step broke.
Real remote computers
Validated on live Linux boxes over SSH — GUI and shell in one workflow.
Semantic grounding
Roles and names, not pixels — mild UI drift tolerated, severe drift fails loudly.
Package overview
The core depends on nothing but Node.js — enforced by an automated independence test. Adapters contribute backends, stores, and event sinks only.
Integrations
Quick start
# clone and install
git clone https://github.com/Ottohere-Mourn/TeachReplay.git
cd TeachReplay
pnpm install
# build, then try it
pnpm build
pnpm demo # record → compile → change parameters → replay → verify
pnpm test # 50 tests, including the zero-harness-dependency invariant
pnpm typecheck
Runs entirely on the built-in demo computer — no credentials, no network, no harness.
Known limitations
- Recording observes state transitions (polled, ~500 ms), not input events — very fast actions can coalesce.
- Clicks are inferred from state changes; ambiguous transitions record no click rather than a wrong one.
- Model-assisted recovery is an optional hook — adapters wire the agent.
- Replay speed is SSH-round-trip bound (~4 s/step on the evaluation box).
- DSH is in developer preview with compatibility-breaking changes — re-verify per release.