The Silent Killer of Developer Productivity: Code Discovery
By Kodelens Team
•April 13, 2025

It was supposed to be a simple, one-line fix.
You knew the field, you knew the object. A senior manager needs a picklist value updated based on a new business requirement. "Should take ten minutes," you tell them confidently. You open Visual Studio Code, refresh your sandbox, and start the hunt.
Six hours later, you're staring into the abyss. You've touched a dozen triggers, four helper classes, a mysterious managed package, and a long-forgotten Workflow Rule. Your confidence has evaporated, replaced by a creeping dread. Your entire day has vanished, swallowed by the search for a single piece of logic.
This time-consuming, soul-crushing process has a name: Code Discovery.
It's the single biggest, yet most quietly accepted, drain on developer productivity in the Salesforce ecosystem. We treat it like a cost of doing business, a rite of passage. But it's a critical problem, and it's time we started treating it like one.
Why is Code Discovery So Hard in Salesforce?
If you've ever felt that finding code in Salesforce is uniquely challenging, you're not wrong. The platform's greatest strength—its flexibility—is also the source of this complexity. Logic doesn't live in one place; it's spread across a layered cake of automation.
- The Automation Medley: A single field update could be initiated by an Apex trigger, a record-triggered Flow, a legacy Process Builder, or an ancient Workflow Rule. Is the logic you're looking for before-save or after-save? Is it in code, or is it declarative "clicks"? The investigation is immediately fragmented.
- The Weight of Legacy: Many Salesforce orgs are over a decade old. They are living museums of different developers' styles, forgotten workarounds, and shifting best practices. You're not just navigating code; you're navigating history.
- The "God Trigger" Problem: We've all seen it. A single, thousand-line trigger on the
AccountorOpportunityobject that handles everything from validation to integration callouts. Trying to find one specific business process inside it is like trying to find a single needle in a stack of needles. - Mythical Documentation: In a perfect world, every complex piece of logic is documented with clear, up-to-date comments. In reality, comments are often missing, outdated, or worse, just plain wrong, sending you on a wild goose chase.
The True Cost of Poor Code Discovery
This daily frustration isn't just an annoyance; it has a tangible, expensive impact on the business.
- Lost Developer Hours: This is the most obvious cost. If a developer wastes just four hours a week hunting for code—a conservative estimate for many—that's over 200 hours a year. For a small team of five developers, you've lost 1,000 hours of productive time. That's half a developer's entire year, spent just looking for things.
- Crippling Onboarding Time: You can't expect a new hire, no matter how senior, to be productive if they can't understand the codebase. This extends ramp-up time from a few weeks to several months, as they struggle to build a mental map of the org's logic.
- The Fear of Refactoring: When developers can't see the full picture of how a piece of code is used, they become afraid to change it. This fear is rational—no one wants to be the one who breaks a critical, downstream process. So, instead of fixing technical debt, they add another patch, making the problem even worse for the next person.
- A Cascade of Bugs: Making a change without understanding its full impact is the number one cause of production bugs and regressions. Poor code discovery turns every "simple fix" into a high-stakes gamble.
The Old Way vs. The New Way
For years, we've relied on a set of manual, inefficient techniques to find what we need.
The "Old Way" is manual code archeology:
- Using
Ctrl+F(Global Search) and praying for a unique keyword that isn't used in a hundred other places. - Manually reading through every single trigger and related class for an object.
- Pinging a senior developer who might have written the code five years ago and hoping they remember anything about it.
This is not a strategy; it's a desperate scramble. But what if there were a better way?
The "New Way" is intelligent discovery. It's a shift from finding keywords to finding intent. What if you could just ask your codebase a question, the same way you'd ask a colleague?
Tools are now emerging that use local AI to index your entire codebase, creating a semantic understanding of what your code does. This allows you to ask questions in plain English, like:
"Where are lead assignment rules handled?" "Show me all callouts to our external shipping API."
And get an instant, accurate answer that points you to the exact line of code. This isn't science fiction; it's a fundamental change in the developer workflow.
Conclusion: Reclaim Your Time
Code discovery is the silent killer of our productivity, and we've been conditioned to accept it as part of the job. But it doesn't have to be.
Our time is too valuable to be wasted on digital archeology. Our skills are in building, creating, and solving complex business problems—not in being code detectives.
It's time to fight back against the silent killer. Start by recognizing the hours you lose and demand better tools. Explore modern solutions built to solve this exact problem, because your time is the most valuable asset you have.
A Note on Kodelens: We built Kodelens because we were tired of losing our days to code discovery. It's a VS Code extension that uses 100% local AI to help you find code by meaning, not just keywords. If this article resonated with you, see how Kodelens can make your code discovery instant and secure.

