Troubleshooting

Most issues resolve in under 2 minutes.

Try restarting VS Code first. Check Output panel (⌘+Shift+U → “Vreko”) for errors.

Quick Fixes

When Vreko first loads it checks five preconditions. If any are unmet, the status bar shows an actionable message instead of 🦎. Click the status bar item to resolve each one.

$(warning) Install Vreko CLI The Vreko CLI is not installed or not on your PATH.

npm install -g @vreko/cli
vr --version

Or click the status bar item - it opens a terminal and runs the install automatically.

$(sync~spin) Starting Vreko… The service is starting. This resolves on its own within a few seconds. If it persists, reload VS Code (⌘+Shift+P → Developer: Reload Window).

$(key) Sign in to Vreko You are not authenticated. Click the status bar item to open the sign-in flow in your browser, then return to VS Code.

$(folder) Initialize workspace This workspace has not been initialized. Click the status bar item or run:

vr init

$(plug) Connect AI tool MCP is not configured for your AI assistant. Click the status bar item or run ⌘+Shift+P → Vreko: Configure MCP. Supported tools configure automatically - no manual editing needed.

Extension not installing:

# Close VS Code, clear cache, reinstall
rm -rf ~/.vscode/extensions/marcellelabs.vreko-*
code --install-extension MarcelleLabs.vreko-vscode

Requirements:

  • VS Code 1.70+
  • Node.js 14+ (for CLI)

No restore points being recorded:

  1. Check status bar for 🦎 icon (green = active)
  2. Save a file with Cmd+S / Ctrl+S
  3. Check the Vreko sidebar

Permission denied (EACCES):

chmod -R 755 .vreko/

AI tool not detected:

  • Make a change with AI, then save
  • Check the status bar for the AI detection badge

Detection is automatic - there is no .vrekorc key to force it. The daemon classifies a session as ai-assisted from file-event timing and velocity, not from a configured tool name. Slow, human-paced edits are classified as human; both are observed.

Too many files flagged as elevated risk? Set a less aggressive default in .vrekorc:

{
  "protection": { "defaultLevel": "watch", "autoProtectConfigs": false }
}

MCP not connecting:

⌘+Shift+P → Vreko: MCP Reconnect

Run diagnostics:

⌘+Shift+P → Vreko: MCP Diagnose

Verify CLI:

npm install -g @vreko/cli
vr --version

vreko / vreko_end sessions not linking:

If vreko opens a session but vreko_end reports “No active session to close”, the MCP server is not connecting to your local service correctly.

  1. Verify the service is running:

    ls ~/.vreko/service.sock
    vr status
  2. Check what your MCP config is pointing at - it should use the local Vreko binary, not a remote endpoint.

  3. Rebuild and restart the MCP server:

    pnpm --filter @vreko/cli build
    # Then reload your AI assistant

Sessions created in one workspace not visible in another:

Each workspace must have its own MCP server process with its specific workspace path. Sessions are workspace-scoped by design - this is expected behavior, not a bug.

Slow performance? The most effective fix is to stop Vreko from observing large or generated directories. Add a .vrekoignore at your project root - one glob per line, # for comments (same syntax as .gitignore):

# .vrekoignore
**/node_modules/**
**/dist/**
**/.next/**
*.mp4
*.zip

Old learnings are archived automatically per the learning.maxAgeDays setting in .vrekorc (default 90 days) - no manual cleanup command is required.

Intelligence Issues

”My agent isn’t being observed”

If your AI tool sessions are not showing up in vr status or vreko.dev/app/dashboard:

  1. Check the daemon is running:

    vr status
    # Expected: daemon: running

    If the daemon is stopped, start it: vr start

  2. Check AI tool detection: The daemon detects AI sessions from file event timing and velocity. If you are making changes slowly or in a pattern that looks like human editing, the session may be classified as human rather than ai-assisted. This is expected behavior - Vreko classifies sessions, not individual keystrokes. Both human and AI sessions are observed and counted toward your observation total.

  3. Check the MCP connection: If you are using MCP integration, verify the server is running:

    vr mcp status

    Check that your AI tool’s MCP config points to vr mcp --stdio.

”workspace.json isn’t updating”

If workspace.json is not being written or updated:

  1. Check your observation count:

    vr status

    A low observation count (0–1) means not enough sessions have completed for the file to reflect new data. Complete a full development session (open files, make changes, save).

  2. Check if you are in INSUFFICIENT_DATA state: During INSUFFICIENT_DATA, workspace.json is written at init and updated after sessions. The scores may not visibly change between early sessions because the seed data dominates the model. This is expected - scores stabilize through OBSERVING into CONFIDENT.

  3. Check the debounce: workspace.json is written on a 5-minute debounce after a session ends. If you just finished a session, wait a few minutes and check again.

”AGENTS.md is empty”

Vreko requires at least OBSERVING state before generating meaningful AGENTS.md content. During INSUFFICIENT_DATA, AGENTS.md may contain only seed-based placeholder instructions or be minimal.

Check your current state:

vr status
# intelligenceState: INSUFFICIENT_DATA | OBSERVING | CONFIDENT

If you are in INSUFFICIENT_DATA, continue using Vreko - the file will populate as you accumulate observations and transition to OBSERVING. Most workspaces reach OBSERVING within 1–3 days of active development.

”Fragility scores look wrong”

Fragility scores are only reliable in CONFIDENT. During INSUFFICIENT_DATA and OBSERVING, scores are estimates.

What “wrong” usually means:

  • All scores are identical or very similar → you are in INSUFFICIENT_DATA (seed data dominates)
  • Scores do not reflect a file’s actual complexity → you are still in OBSERVING
  • A file you know is fragile has a low score → it may not have enough session history yet

The model needs 3–4 days of active sessions across your team before CONFIDENT scores are stable. If you are a solo developer with one session per day, CONFIDENT may take longer.

Check when you initialized:

cat workspace.json | grep -A 5 '"health"'

If observationsToNextState is still high, the scores will continue changing as observations accumulate.

Error Codes

CodeIssueFix
ERR_001Storage permission deniedchmod -R 755 .vreko/
ERR_002Invalid configCheck JSON syntax in .vrekorc
ERR_003Network errorCheck internet, firewall settings

FAQ

Get Help

ChannelBest For
DiscordQuick questions, community help
GitHub IssuesBug reports, feature requests
[email protected]Direct support (24-48h response)

Generate debug report:

⌘+Shift+P → Vreko: Generate Debug Report