| 1801 | const tokenVerified = !keyworded && codeTokens.some((t) => cg.getNodesByName(t).length > 0); |
| 1802 | if (keyworded || tokenVerified) { |
| 1803 | const exploreHere = async (): Promise<string> => { |
| 1804 | const { ToolHandler } = await import('../mcp/tools'); |
| 1805 | const result = await new ToolHandler(cg).execute('codegraph_explore', { query: prompt }); |
| 1806 | return result.isError ? '' : result.content[0]?.text ?? ''; |
| 1807 | }; |
| 1808 | // A daemon already running for this project answers from memory |
| 1809 | // what an explore here reads from disk again on every prompt |
| 1810 | // (#3284). One that is exploring but has not answered by the |