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

Function ha_active_tier

src/cli/hook_augment.c:1107–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105}
1106
1107static const char *ha_active_tier(yyjson_val *root, const char *event) {
1108 if (!event || strcmp(event, "SubagentStart") != 0) {
1109 return "Tier 2 verification";
1110 }
1111 const char *agent_type = ha_obj_str(root, "agent_type");
1112 if (!agent_type) {
1113 agent_type = ha_obj_str(root, "agentType");
1114 }
1115 if (agent_type &&
1116 (strcmp(agent_type, "scout") == 0 || strcmp(agent_type, "codebase-memory-scout") == 0)) {
1117 return "Tier 1 quick scout";
1118 }
1119 if (agent_type && (strcmp(agent_type, "auditor") == 0 ||
1120 strcmp(agent_type, "codebase-memory-auditor") == 0)) {
1121 return "Tier 3 full graph verification";
1122 }
1123 return "Tier 2 verification";
1124}
1125
1126static const char *ha_no_project_index_guidance(const char *event) {
1127 return event && strcmp(event, "SubagentStart") == 0

Callers 1

Calls 1

ha_obj_strFunction · 0.85

Tested by

no test coverage detected