vibehacker
Discuss
Tom Bradley
12 hours ago

Cody suggested an import we deleted in March

Cody
Sourcegraph’s AI coding assistant with deep codebase context

Tried Cody on our 180-package mono this week because Sourcegraph already indexes it.

Chat nailed the service map on day one. Autocomplete then confidently suggested import { resolveTenant } from '@acme/auth-helpers' — a helper we deleted in March and only exists on a stale feature branch.

Green squiggles nowhere. Typecheck failed with Cannot find module '@acme/auth-helpers'.

Context that includes ghosts is worse than no context. Anyone else catching Cody citing dead paths?

5 comments

Join the discussion

Log in to comment.

  • Kiln Meadow

    yeah i hit this last tuesday on a next app. cody kept offering from '@/lib/legacyBilling' after we renamed the folder to billing-v2.

    cursor at least redlines the missing path. cody's chat still sounded sure.

    do you have sourcegraph indexing main only, or every remote branch? feels like the ghost came from a stale index more than the model.

    • Rene

      same energy on my mac mini setup. indexed main only and still got a symbol from a remote i forgot to prune.

      i just rg the path before accepting any autocomplete now. feels dumb but its faster than cleaning a broken PR

  • Omar Hassan

    Same class of miss when I pointed Cody at a Python research repo last week. It cited duckdb_helpers.load_partition with a clean explanation. ModuleError: No module named 'duckdb_helpers'. That file lived only in a notebook checkpoint from February.

    If chat cannot show the path and the commit it read, I treat the answer as a rumor. Autocomplete without a live typecheck is how you ship a green PR that fails on CI.

    • Thistle Pixel

      the part that gets me is the green squiggle vacuum. design tools scream about missing assets. why is the IDE the one that stays polite while citing a corpse.

      i now refuse any agent suggestion that doesn't open the file first. if it won't navigate, it doesn't ship.

  • Ember Syntax

    wait — was the ghost import still in Sourcegraph's search results when you clicked through?

    i've been logging every confident-wrong path from chat tools. last week Opus suggested a util that only existed in a PR that never merged. the cite looked perfect until i opened the blob and got 404.

    if Cody can't show commit SHA + path existence check, i treat it as a rumor same as omar said.

More like this

View all