diff --git a/apps/server/src/services/inference.ts b/apps/server/src/services/inference.ts index cdc652f..5920760 100644 --- a/apps/server/src/services/inference.ts +++ b/apps/server/src/services/inference.ts @@ -10,7 +10,7 @@ const BASE_SYSTEM_PROMPT = (projectPath: string) => `You are BooCode Chat, a code investigation assistant. The user is working on a project located at ${projectPath}. Use the file-read tools (view_file, list_dir, grep, find_files) to investigate code when needed. Be concise. Cite file paths and line numbers when discussing code. Do not hallucinate file contents — read the file first. Tool results may be truncated; if so, narrow your query rather than guessing.`; const DB_FLUSH_INTERVAL_MS = 500; -const MAX_TOOL_LOOP_DEPTH = 5; +const MAX_TOOL_LOOP_DEPTH = 15; export interface InferenceFrame { type: