reflex

Your AI coding agent learns what works.

Reflex captures successful workflows, fixes, and repeated patterns from real coding sessions — then reuses them when similar situations appear.

npx @reflex1abs/cli install --editor cursor

Installs Reflex into Cursor. Reload the editor after the command completes.

Do not use npm install -g reflex-cli — that is an unrelated package. Use npx @reflex1abs/cli instead.

The CLI downloads the extension and installs it into your editor. Install docs

cursor agent + reflex
capturing

cursor agent

reflex analysis

awaiting session traces…

.local-patterns/patterns.json

listening for repeatable workflows…

recording session…traces.db · local

AI agents are powerful, but they forget.

Reflex watches what you actually do locally — then surfaces memory when a familiar loop starts again.

Repeated debugging

You fix the same class of bug — test failures, type errors, schema mismatches — again and again across sessions.

Re-explaining context

Every new chat starts from zero. You re-describe the failure, the file, and what worked last time.

Same mistakes happening again

Agents are powerful but stateless. Without memory, patterns do not compound — they reset.

How it works

Four phases, one pipeline — from observation to memory, entirely local.

  1. 01

    Capture

    Reflex observes your workflow locally — file edits, terminal commands, and session traces stored on your machine.

  2. 02

    Detect

    It identifies repeated debugging patterns: test-fix loops, type-error cycles, and API/schema failures.

  3. 03

    Learn

    After you approve, Reflex saves reusable fixes to `.local-patterns/patterns.json` in your project — plain JSON, no cloud.

  4. 04

    Replay

    When a similar failure starts again, Reflex surfaces the saved fix before you rediscover it — status bar and measured cost framing.

Your workflow stays yours.

Reflex is built for developers who want memory without giving up control. Everything described here matches the current implementation.

  • Local-first

    Traces and patterns stay on your machine — SQLite in editor global storage, JSON in your project's `.local-patterns/`.

  • No account required

    Install the extension, grant consent once, and start coding. No sign-up, no API keys for Reflex itself.

  • You control your data

    Secrets are redacted before storage. Sensitive paths like `.env` are skipped. You choose when to save a pattern.

  • No cloud dependency

    Reflex does not sync to a server, run embeddings, or phone home. It works offline after install.

cursor agent + reflex
capturing

cursor agent

reflex analysis

awaiting session traces…

.local-patterns/patterns.json

listening for repeatable workflows…

recording session…traces.db · local

Getting started

Three steps after install. No account, no cloud configuration.

npx @reflex1abs/cli install --editor cursor

Installs Reflex into Cursor. Reload the editor after the command completes.

Do not use npm install -g reflex-cli — that is an unrelated package. Use npx @reflex1abs/cli instead.

Developing locally (before npm publish)
npm run reflex -- install --editor cursor

The CLI downloads the extension and installs it into your editor. Install docs

  1. step 1

    Install the extension

    Run the install command from the hero, or download the .vsix from GitHub Releases.

  2. step 2

    Enable local memory

    Accept the consent prompt on first launch. Reflex only captures after you opt in.

  3. step 3

    Start coding

    Work normally. Reflex observes sessions, detects repeated loops, and offers to save patterns you approve.

FAQ

Does Reflex replace my AI coding agent?
No. Reflex improves the workflow around agents — it captures what you do locally, detects repeated debugging loops, and surfaces saved fixes when similar failures start again. Your agent still writes code; Reflex adds memory.
Does my code leave my machine?
Reflex is local-first. Session traces are stored in SQLite on your machine (editor global storage). Saved patterns live in `.local-patterns/patterns.json` inside your project. Reflex does not upload your code or traces to a cloud service.
Who is it for?
Developers who use AI coding tools daily — Cursor, VS Code with Copilot or similar — and hit the same debugging patterns repeatedly. If you have never re-fixed the same class of test failure twice, you may not need Reflex yet.
What loop types does Reflex detect today?
Test-fix loops (fail → fix in src → pass), type-error build loops, and API/schema error loops. Detection runs locally against your recent session traces — no LLM calls for pattern matching.
Is Reflex open source?
The project is MIT licensed. See the GitHub repository for source, issues, and contribution guidelines.