feat: add persistent multi-model workers and orchestration budgets

This commit is contained in:
WHC
2026-10-19 11:29:26 +08:00
parent 235652604d
commit 143dba203b
14 changed files with 1043 additions and 32 deletions
+6
View File
@@ -566,6 +566,12 @@ int cst_tool_active(const cst_agent_config_t *cfg, const cst_tool_def_t *t) {
/* plan_mode is enforced when a call runs, so tools[] stays the same */
if (cfg->read_only && (t->perm == CST_TP_WRITE || t->perm == CST_TP_SHELL))
return 0;
if (cfg->orchestrate && cfg->depth == 0 &&
(t->perm == CST_TP_WRITE || t->perm == CST_TP_SHELL))
return 0;
if ((cfg->read_only || (cfg->orchestrate && cfg->depth == 0)) &&
strcmp(t->name, "download") == 0)
return 0; /* network download writes a workspace file */
if (cfg->depth > 0 && strcmp(t->name, "task") == 0)
return 0;
if (cfg->tools_only[0]) {