Prompt
How do I find relevant code and docs faster during development?
Latest observation
Oct 16, 2026
OpenAI APIWeb search: off
A good way to speed this up is to make searchable structure part of your workflow, not an afterthought.
1) Keep code and docs in the same mental map
- Put feature docs near the code they describe when possible.
- Use clear folder names and consistent naming.
- Add short
README.mdfiles at module/package boundaries.
2) Use fast search tools
- ripgrep (
rg) for text search in code:rg "search term" - fzf for fuzzy finding files, symbols, or docs.
- IDE/global search:
- search by symbol
- search by file path
- search by string literal
3) Search the codebase by intent, not just keywords
Instead of searching for vague terms, search:
- function names
- error messages
- config keys
- API endpoint names
- constants
- TODO/FIXME comments
Example:
rg "timeout_ms|request_timeout|read_timeout"
4) Learn the “entry points”
To find relevant code faster, know where to look first:
- route/controller layer
- service layer
- model/data access layer
- tests
- docs/architecture notes
A common approach:
- find the feature in tests
- jump to implementation
- read surrounding docs/comments
- inspect related config
5) Use “Go to Definition” and references
In an IDE:
- jump to definition
- find references
- rename symbol
- call hierarchy
- type hierarchy
These beat manual searching once the code is indexed.
6) Read docs with a purpose
Look for:
README.mddocs/ARCHITECTURE.mdCONTRIBUTING.md- design docs / ADRs
- test files as executable documentation
7) Build your own shortcuts
Make repeated searches one keystroke away:
- shell aliases for common searches
- IDE saved searches
- bookmarks in docs
- quick notes on common subsystems
Example alias:
alias csearch='rg --hidden --glob "!node_modules" --glob "!dist"'
8) Prefer examples over descriptions
When unsure how something works:
- search for its usage
- search for tests
- search for similar code paths
Usually the most relevant code is where the feature is used, not where it’s defined.
9) Keep local docs indexed
If your docs are scattered:
- use a doc search tool
- add a simple index file
- generate docs from code comments if possible
- ensure markdown is included in search
10) Use an LLM strategically
If you’re using an AI assistant:
- ask it to find the likely files/functions
- provide the search result snippets
- ask for a “map” of the feature area
- ask it to explain the flow from request to implementation
A practical workflow
- Search for the feature name or error message with
rg - Open the main test or usage site
- Jump to definition in the IDE
- Read nearby docs/README/ADR
- Follow references outward
If you want, I can give you:
- a VS Code workflow
- a Neovim/terminal workflow
- or a “how to search any codebase” checklist