I counted fixes in 289 open-source projects to see which bugs teams fix twice.
Every developer knows the feeling: you fix a bug, merge the PR, close the issue—and a few weeks later, someone touches the exact same files again for the same kind of problem.
When building cachly (a shared memory layer for Claude Code, Cursor, GitHub Copilot, IntelliJ, and VS Code), we wanted measured numbers instead of guesses. We extracted 499,183 lessons across 3,350 open-source repositories—each lesson built from a closed GitHub issue with a merged PR—and tested three questions:
- How often are the same files touched again shortly after a fix?
- Which kinds of bugs measurably come back within 90 days?
- Can you ship "500 pre-packaged open-source lessons" to give an AI coding assistant instant experience?
Several intuitive ideas failed our independent checks. Here is what held up—and what we threw out.
(Privacy note: No raw issue texts, usernames, or external code are published here or placed in any user's Brain. Everything below is aggregated statistics and pre-registered validation checks, plus two public issue numbers as examples.)
Methodology & Sample Limits
- Broad corpus: 3,350 repositories, 499,183 lessons (each a closed issue with a merged PR, counted programmatically).
- Sample bias: Selected from well-known open-source repositories per language—predominantly application repos, not closed company codebases. Proprietary code may behave differently.
- Recurrence validation gate: Measured across 289 projects split into three independent datasets (32 + 130 + 127 projects) over a 90-day window on issue titles. A kind of bug only survived if it reached ≥ 2× baseline probability in at least two of three independent datasets, ≥ 2× combined, and ≥ 300 follow-ups.
Finding 1: 35.8% to 41.5% of Fixes Touch the Same Files Again Within 30 Days
In two of our three datasets, 41.5% and 35.8% of all fixes saw the exact same files modified again within 30 days, and the share was almost the same for every kind of bug.
Our reading: most teams don't lack smart engineers—they lose the specific context of why a fix or constraint existed once the PR merges and people switch sessions, teammates, or editors. What we measured is only that the same files are touched again.
Finding 2: Of the Kinds We Tested, Two Held Up Over 90 Days—Led by Time/Date at 4.43×
We tested eight kinds of bugs: time/date, dependencies, upload, auth/permissions, character encoding, database, network, and "bug X after bug Y". Only two passed the 3-dataset gate:
| Category | Projects | Follow-ups | Recurrences | Baseline | Recurrence factor |
|---|---|---|---|---|---|
Time / Date / Timezones (timezone, DST, timestamp, calendar) | 289 | 791 | 148 | 4.2% | 4.43× |
Dependencies & Upgrades (dependency, bump, breaking change) | 289 | 1,408 | 223 | 6.9% | 2.31× |
Dependencies passed in two of three datasets; in dataset B it reached 1.84×, which the gate allows.


Public issue examples from the dataset:
- Time/Date:
AppFlowy-IO/AppFlowy(#2408 → #2466 just 2 days later incalendar_page.dart). - Dependencies:
apache/rocketmq(#7636 → #7680 7 days later touchingpom.xml).
Practical takeaway: Most of these fixes held. But when a fix touches timezones, daylight saving time, timestamps, or dependency upgrades, it comes back more often than the project's baseline predicts. A second-timezone/DST boundary test, or pinning and testing against the next major version, is cheap insurance.
Finding 3: Security Fixes Frequently Pull Manifest/Lock Files Along
Across 1,127 security fixes in 289 projects (pre-registered gate: ≥ 1.5× and +10 percentage points over project baseline on at least 2 of 3 datasets), security fixes modified a manifest or lock file (package.json, go.mod, Cargo.toml, pom.xml, *.lock, etc.) more often than the project's baseline predicts:
- Dataset A (157 fixes): 33.8% vs. 20.5% expected
- Dataset B (412 fixes): 11.9% vs. 5.9% expected (2.0×, missed the +10 pt bar)
- Dataset C (558 fixes): 59.1% vs. 24.8% expected

What Failed Validation (And Why We Dropped It)
- Database & Network hints: Looked strong on the first dataset (4.4× and 2.9×), then collapsed to 1.2× and 1.6× on the second. Dropped.
- File Upload / Download (
1.73×) and Auth/Permissions (1.88×): Both missed the pre-set 2.0× threshold. Dropped. - "After Bug X comes Bug Y" causal chains: Scored -4.4 and +2.4 points against simple repetition (threshold was +3). Dropped.
- "Pre-seeded starter brains" (500 OSS lessons per language): Failed in random spot checks—only 2 to 4 out of 30 lessons helped another user of the same language, because app repos mainly describe bugs in their own app code.
- Training a reranker on too few external projects: Trained on 10 external projects (2,000 questions), the reranker lost 39 correct answers in the top 3 on our own Brain. Trained on 3,250 projects, it gained 49. Narrow external data overfits; only breadth across thousands of projects makes a learned ranker safe.
What Actually Works Instead
You cannot preload someone else's app bugs into a team's memory. In cachly, every team's Brain starts empty and stores only your own lessons, commits, and decisions—never foreign code or outside issues.
What we can train in advance is the reranker that orders your own lessons. For new Brains, it was trained on public issue/PR pairs from more than 3,000 open-source projects—never on customer lessons. On 1,000 questions from projects it had never seen, measured through the live service, it put the right lesson in the top 3 for 61.2% of questions, against 54.0% for our earlier reranker. By default, no generative AI model reads or rewrites your lessons. A small ranking model in the EU only scores them. Storage runs in Germany.
The practical gain is cross-tool continuity: a fix recorded once in Claude Code, Cursor, Copilot, IntelliJ, or VS Code stays available across sessions, teammates, and languages.
Try It on Your Own Repo
- Check a public repo without installing anything, in a few seconds: cachly.dev/roentgen
- Connect your editor:
npx @cachly-dev/mcp-server@latest autopilot(EU servers, free tier with 500 recalls a month, no credit card).
Which kind of bug keeps coming back in your repo?
cachly.dev
For solo developers, teams and whole companies
Explain it once. Every AI knows it.
Shared team memory between your code, your tickets and your AI. Hosted in the EU, in every tool. cachly keeps the fixes, the decisions and the traps, so the next session starts with them. Claude Code, Cursor, Copilot, Windsurf, Codex, Gemini CLI and JetBrains all read it. Free for one project, no card needed.
Servers in the EU · one command, restart your editor, done · 1 project free
Four ways to install
- Claude Code
/plugin marketplace add cachly-dev/cachly-mcp /plugin install cachly-brain@cachlyThen turn on auto-update once:
/plugin→ Marketplaces → cachly → Enable auto-update- Any MCP editor
npx @cachly-dev/mcp-server@latest autopilot- JetBrains
- JetBrains Marketplace: cachly-brain