Turnout for search_code returns "search failed: temp file" on Windows 11 (Issue #196)
#297
kevalrajpalknight
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Community,
I was struggling with using search_code within claude code on my windows machine, so here is what alternative you can use to have turnout for your task
Tested and verified tool behaviour for
mcp__codebase-memory__*. Use this reference to pick the right tool on the first try and avoid wasting tokens on tools that are broken or redundant.Status at a Glance
search_graphsearch_codeentirelyget_code_snippetqualified_nametrace_pathdetect_changesget_architectureget_graph_schemaindex_statuslist_projectsmanage_adrquery_graphsearch_graphis insufficientsearch_codesearch_graphinsteadsearch_graph(semantic_query)fullmodeRecommended Workflow (minimum tokens)
Always follow this sequence — each step feeds the next, no wasted calls:
Never call
get_architectureorget_graph_schemaon every task — only on first orientation in a new project or after a reindex.search_graph— Three ModesMode 1 — BM25 full-text (recommended)
updateProfile→update,profilelabelparam to restrict to one node type (e.g.label="Route")Mode 2 — Regex name match
queryoverridesname_patternif both are set — use one at a timeMode 3 — Semantic vector (only if index built with
fullmode)dispatchwhen you searchsendsemantic_resultsfield, notresultsfullmodeUseful filters (combinable with any mode):
label="Route"— only routeslabel="Class"— only classesfile_pattern="*.py"— restrict to file typeinclude_connected=true— pull connected nodes toolimit=5— always set this; default is unlimitedtrace_path— Three Modesdirection:outbound(callees),inbound(callers),bothrisk_labels=trueadds CRITICAL/HIGH/MEDIUM/LOW per hop — useful for security reviewinclude_tests=falseby default — settrueonly when debugging test coveragedetect_changes— Impact AnalysisReturns: changed files + every symbol (function, class, route) defined in those files. Use before starting a task to know what's already in motion.
get_code_snippet— Reading SourceAlways call
search_graphfirst to get the exactqualified_name. Passing a short name works but returns suggestions if ambiguous.Set
include_neighbors=trueto also get caller and callee names in the response — saves atrace_pathcall for shallow lookups.manage_adr— Architectural MemoryStores decisions that survive across sessions. No ADR exists yet in any project.
Write an ADR after any significant architectural decision so future sessions don't re-derive it.
Node Labels by Project
repo-1(richest — use for deep analysis)repo-2(frontend — functions + interfaces)repo-3(frontend — functions + utilities)What NOT to Do
search_code— it is broken on Windows (temp file error).get_architectureon every task — only once per project for orientation.semantic_queryunless you confirmed the index was built withmode="full".limitas unlimited — always setlimit=5tolimit=10to control token usage.query_graphwith raw Cypher for simple lookups —search_graphis faster and token-cheaper.Beta Was this translation helpful? Give feedback.
All reactions