feat: add spawn tracker and deepsearch tool with configurable depth limits

Implement spawn_tracker module to enforce recursive agent spawning limits via R_MAX_SPAWN_DEPTH and R_MAX_TOTAL_SPAWNS environment variables, replacing the previous max_subagents parameter in tool_agent.c. Add tool_deepsearch.c implementing an iterative multi-query research algorithm with configurable system message, and register the new source files in Makefile build targets.
This commit is contained in:
2026-02-10 20:20:19 +00:00
parent 866647d5ac
commit 28b8f44147
8 changed files with 894 additions and 138 deletions
+5
View File
@@ -31,4 +31,9 @@ bool r_config_set_session_id(r_config_handle cfg, const char *session_id);
const char *r_config_get_system_message(r_config_handle cfg);
int r_config_get_max_spawn_depth(r_config_handle cfg);
int r_config_get_max_total_spawns(r_config_handle cfg);
const char *r_config_get_deepsearch_system_message(void);
#endif