How It Works

Vreko is an intelligence layer, not a backup tool.

A local daemon watches how your codebase actually changes, learns which files are fragile and which change together, attributes changes to the AI tool that made them, and writes the result to agents.workspace.json - read automatically by agents that support the standard. It runs 100% on your machine.

Git tracks what changed. Vreko understands who changed it, and why it matters.

What Vreko observes

The daemon watches file activity in the background - no extra commits, and observation runs asynchronously, off the editor’s critical path.

ObservationWhat it means
File savesEvery change is recorded as a signal, not just the ones you commit
SessionsRelated changes are grouped into a work session and classified as human or ai-assisted from event timing and velocity - Vreko classifies sessions, not individual keystrokes
AI attributionWhen a session is AI-assisted, Vreko identifies the active tool (Cursor, GitHub Copilot, Claude Code, Windsurf) and attributes the changes to it

The intelligence it builds

From those observations the daemon derives three signals and writes them to agents.workspace.json (the open workspace.json v0.3 format). Agents that support the standard consume it automatically - no prompting required.

SignalQuestion it answers
FragilityWhich files break or get reverted most often? (derived from change count and revert rate)
Co-changeWhich files tend to change together, so editing one implies checking another?
AI attributionWhich parts of the codebase are being written by agents vs humans?

Alongside these, the file carries a frameworkManifest and a health block summarizing the workspace’s intelligence state.

How confident the signals are

Fragility and co-change scores are only as good as the observations behind them. The health.intelligenceState field tells you where a workspace is on that curve - it’s derived directly from a confidence score:

StateConfidenceWhat it means
INSUFFICIENT_DATA< 0.30Just initialized. Scores are seed estimates from git history; treat them as rough.
OBSERVING0.30 – 0.70Enough sessions to stabilize. Scores are shifting as real signal accumulates.
CONFIDENT≥ 0.70Stable. Fragility and co-change reflect how the codebase actually behaves.

Most actively-developed workspaces reach OBSERVING within a few days and CONFIDENT with sustained sessions across the team.

Protection levels

Independently of the intelligence it builds, Vreko assigns each file a protection level that controls what happens on write.

LevelBehaviorTypical files
🟢 WatchObserve silently and record a restore pointSource code, docs
🟡 WarnRecord, and surface the change as elevated riskpackage.json, tsconfig.json
🔴 BlockRefuse the writeLock files, .env*, secrets

Levels are assigned automatically; override them per-glob in .vrekorc. See Configuration.

Change history

As it observes, Vreko keeps local restore points so a bad change is recoverable - a safety net, not the headline. Restore points live under ~/.vreko/; roll back from the VS Code sidebar or the CLI. This is deliberately a side effect of observation, not the product.

How it compares to Git

Vreko is not a replacement for version control - it’s the behavioral layer git doesn’t have.

GitVreko
RecordsCommits you choose to makeSessions, automatically
Knows about AINothingWhich tool wrote what
SurfacesWhat changedWhich files are fragile, which co-change, who changed them

Use both: Git for version control, Vreko for understanding how the code - and the agents touching it - actually behave.

Privacy

100% local on the free plan.

All observation and analysis happens on your machine. Your code never leaves your device. Pro’s dashboard syncs metadata only - file paths, change counts, timing - never source content, and only when you opt in.

Everything Vreko stores (restore points, learnings, agents.workspace.json) lives locally under ~/.vreko/. See Privacy & Data for the full breakdown.

Next Steps