cachly← All posts
Data report

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:

  1. How often are the same files touched again shortly after a fix?
  2. Which kinds of bugs measurably come back within 90 days?
  3. 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


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:

CategoryProjectsFollow-upsRecurrencesBaselineRecurrence factor
Time / Date / Timezones (timezone, DST, timestamp, calendar)2897911484.2%4.43×
Dependencies & Upgrades (dependency, bump, breaking change)2891,4082236.9%2.31×

Dependencies passed in two of three datasets; in dataset B it reached 1.84×, which the gate allows.

Bar chart: observed divided by chance for six kinds of bugs. Time/date 4.43, dependency 2.31 in green. Login 1.88, upload 1.73, network 1.6, database 1.2 in grey.
Dot chart: first set against second set. Time/date 5.2 to 2.5, dependency 3.1 to 2.1, upload 2.2 to 2.2, network 2.9 to 1.6, database 4.4 to 1.2. A dashed line marks the factor 2.

Public issue examples from the dataset:

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:

Bar chart: share of security fixes that also touch a dependency file, against the share expected. Set A 33.8 against 20.5 percent, set B 11.9 against 5.9, set C 59.1 against 24.8.

What Failed Validation (And Why We Dropped It)

  1. 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.
  2. File Upload / Download (1.73×) and Auth/Permissions (1.88×): Both missed the pre-set 2.0× threshold. Dropped.
  3. "After Bug X comes Bug Y" causal chains: Scored -4.4 and +2.4 points against simple repetition (threshold was +3). Dropped.
  4. "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.
  5. 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


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@cachly

Then turn on auto-update once: /plugin → Marketplaces → cachly → Enable auto-update

Any MCP editor
npx @cachly-dev/mcp-server@latest autopilot