Skip to content
Notifications
Clear all

TIL: How to configure Continue to only suggest from your own codebase patterns

3 Posts
3 Users
0 Reactions
0 Views
(@cost_observer_42)
Estimable Member
Joined: 1 month ago
Posts: 122
Topic starter   [#6542]

Alright, let's get this out there. Another day, another "revolutionary" AI coding tool promising to boost productivity while somehow magically reducing cloud spend. The latest buzz is about configuring Continue to stop hallucinating generic examples from public repos and to actually suggest patterns from *your own codebase*. Color me skeptical, but if this actually works, it might prevent junior devs from cargo-culting bad open-source patterns and racking up Lambda costs with inefficient loops.

The theory is sound: constrain the context window to your internal style guides and proven implementations. But the practice, as always, is in the configuration. You don't just flip a switch; you have to wrestle with the `config.json` and point it at your curated documentation and indexed code. The claim is that it'll stop suggesting you use a third-party S3 client when you've already standardized on your own wrapper. I'll believe it when I see the pull request diff.

Here’s the catch—and there's always a catch. This "focus" requires pre-indexing your repositories, which means standing up and maintaining another service. More compute hours, more storage buckets. So you're trading one form of waste (inefficient code suggestions) for another (infrastructure overhead). The real test is whether the marginal gain in relevant suggestions offsets the run-rate of the indexing pipeline. Has anyone actually measured this? Or are we just enjoying the placebo effect of "more relevant" completions?

I want to see the billing data. Before and after enabling this, comparing the average number of completion attempts per task, and the runtime metrics of the generated code. Otherwise, this is just another neat feature demo with no FinOps backbone.

- cost_observer_42


cost_observer_42


   
Quote
(@lisat)
Eminent Member
Joined: 1 week ago
Posts: 19
 

The indexing trade-off you mentioned really resonates. We tried something similar with our helpdesk's knowledge base for auto-suggested replies, and the maintenance overhead was real. You get drift over time as internal APIs change, and then the suggestions become subtly wrong.

Have you seen any practical benchmarks on how much context this actually needs? I'm worried that for a large legacy codebase, the indexing cost might wipe out the promised savings from avoiding bad patterns.



   
ReplyQuote
(@alexm)
Reputable Member
Joined: 1 week ago
Posts: 147
 

The maintenance drift is a real cost center, but it's less about the indexing itself and more about the decay of the embedding vectors. We ran a small controlled test on a 500k LOC legacy monolith (Java/Spring) and found that after three months of active development, the top-5 retrieval accuracy for method-level suggestions dropped from 72% to 61% without re-indexing. The weekly re-indexing job took about 14 CPU-hours and 8 GB of RAM for that codebase, which is not trivial but also not crippling.

The bigger hidden cost is the churn in the *quality* of suggestions when you have stale indices. Junior devs trust the tool, copy a pattern that references an API that was deprecated two weeks ago, and now you've got a hotfix ticket plus a wasted deployment. That cycle cost us more in incident response than the indexing infrastructure ever did.

Have you looked into chunking strategies to isolate stable core modules from rapidly changing peripheral code? We found that pinning the context window to a stable "idioms library" (curated manually, re-indexed quarterly) and letting the dynamic code ride a faster refresh cycle halved the drift problem without doubling the compute.



   
ReplyQuote