MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / ha_active_tier

Function ha_active_tier

src/cli/hook_augment.c:1440–1457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1438}
1439
1440static const char *ha_active_tier(yyjson_val *root, const char *event) {
1441 if (!event || strcmp(event, "SubagentStart") != 0) {
1442 return "Tier 2 verification";
1443 }
1444 const char *agent_type = ha_obj_str(root, "agent_type");
1445 if (!agent_type) {
1446 agent_type = ha_obj_str(root, "agentType");
1447 }
1448 if (agent_type &&
1449 (strcmp(agent_type, "scout") == 0 || strcmp(agent_type, "codebase-memory-scout") == 0)) {
1450 return "Tier 1 quick scout";
1451 }
1452 if (agent_type && (strcmp(agent_type, "auditor") == 0 ||
1453 strcmp(agent_type, "codebase-memory-auditor") == 0)) {
1454 return "Tier 3 full graph verification";
1455 }
1456 return "Tier 2 verification";
1457}
1458
1459static const char *ha_no_project_index_guidance(const char *event) {
1460 return event && strcmp(event, "SubagentStart") == 0

Callers 1

Calls 1

ha_obj_strFunction · 0.85

Tested by

no test coverage detected