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