Skip to content

Latest commit

 

History

History
145 lines (100 loc) · 6.72 KB

FORESIGHT.md

File metadata and controls

145 lines (100 loc) · 6.72 KB

Repowise Foresight

Know what a change will need before you open a file.

Every fix your team has shipped, every file someone forgot, every test someone had to
go back and update is already written down in git. Foresight learned from years of that
history across many open-source projects, and now reads yours.

Join the Foresight waitlist Book a Foresight demo

Coming to Repowise hosted and enterprise · no LLM · milliseconds on a CPU · air-gap ready


The bug report that names no file

A customer writes in:

Checkout sometimes charges twice after a timeout. On a slow connection the payment page times out, the customer tries again, and the card is charged twice.

Keyword search, the way most agents and people find code today, returns whatever says "checkout":

web/checkout_page.tsx         matches "checkout" 14 times
tests/test_checkout_ui.py     matches "checkout" 9 times
README.md                     matches "charges" 3 times
web/checkout.css              matches "checkout" 6 times

Foresight answers with where the fix will actually land, and why:

payments/retry.py      likely   fixed for a similar timeout bug 3 weeks ago
billing/ledger.py      possible changes with retry.py 9 of 11 times
payments/gateway.py    possible raises the Timeout that retry.py catches

The issue never mentions retry.py. The history does. Your agent starts on the right file instead of reading the checkout page first.

An illustrative example. Measured results are below.


What it answers

The open-source index knows what your code is. Foresight predicts what a piece of work will need.

Foresight tells you For example
Where the fix goes Paste a bug report or a stack trace and get the files, and the functions inside them, the fix will touch payments/retry.py: fixed for a similar timeout bug
What the change forgot Mid-edit, before any commit message, the file that usually changes with yours and is missing from the diff billing/ledger.py: changes with retry.py 9 of 11 times
What still holds the old name Rename or remove an identifier or a literal, and see the files that still reference it config/settings.py: still references SESSION_TTL
Tests to update The test files that will need edits too, ranked, so the pull request arrives complete test_retry.py: moves with retry.py
Code health that learns A health signal whose weights are learned from how real projects needed fixes payments/processor.py: first in line for review
Confidence you can act on A calibrated band and the evidence behind every answer, so an agent or reviewer knows when to trust it likely: 3 signals agree

Measured on real bugs

Every result was run on the code as it stood before the fix, on projects the models never trained on.

87%

right file in the top five
SWE-bench Verified, 493 real bugs, no LLM

2.6x

better where search fails
when the report names no file: right file first 42% of the time, against 16% for keyword search

3 in 4

right file in the top five on real issues
114 real openclaw bugs: 75%, against 48% for keyword search

6 of 7

unseen projects won
ahead of keyword search on 6 projects it never saw, tied on the seventh

That last number matters most. Foresight is trained once, on public history, and then works on code it has never seen. It does not need months of your data before it is useful, and it never trains on your code.


How it runs

No LLM Small learned models. No prompt and no tokens, and the same input gets the same answer every time.
CPU only Runs on the machine that already runs Repowise. No GPU.
Milliseconds Under half a second on a laptop, so it can run on every edit, commit and pull request.
Air-gap ready Inference is local. Self-hosted and air-gapped deployments keep code inside your network.
Reads your history Each answer draws on your repository's own co-change, fix and ownership record from the Repowise index.
Explains itself Every ranked file carries the reason it ranked, in plain words.
Keeps learning We retrain on new public history, so each release has learned from more real changes than the last.

Where you see it

Foresight sits on top of the Repowise index and reaches you through the surfaces you already use:

  • Your coding agent, through the same Repowise MCP tools, so it opens the right file first and reads less to get there.
  • Pull requests, where the files and tests a change forgot show up before review.
  • The dashboard, next to change risk, code health and each Change Record.

The open-source engine stays complete without it. Foresight is the learned layer on top, for teams that want the next step predicted as well as the current state explained.


Questions

When can we use it? Foresight is coming to Repowise hosted and enterprise. Teams on the waitlist get access first, in the order it opens.

Does our code leave our network? No. Foresight makes no model-provider call. The models are trained ahead of time on public open-source history and run on a CPU next to the index, so enterprise deployments run it self-hosted or fully air-gapped.

Is it open source? No. The Repowise engine is AGPL-3.0 and fully usable without Foresight. Foresight is part of the hosted and commercial products. See COMMERCIAL.md.

Does it replace our coding agent or our reviewers? No. It gives both a better starting point: the right files, the forgotten ones, and how sure it is.


Be first to run Foresight on your code.

Join the Foresight waitlist

Questions first? Book a 30-minute demo or write to hello@repowise.dev.