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

Function print_detected_agents

src/cli/cli.c:7382–7426  ·  view source on GitHub ↗

Print detected agent names on a single line. */

Source from the content-addressed store, hash-verified

7380
7381/* Print detected agent names on a single line. */
7382static void print_detected_agents(const cbm_detected_agents_t *a, const char *home) {
7383 struct {
7384 bool flag;
7385 const char *name;
7386 } agents[] = {
7387 {a->claude_code, "Claude-Code"},
7388 {a->codex, "Codex"},
7389 {a->gemini, "Gemini-CLI"},
7390 {a->zed, "Zed"},
7391 {a->opencode, "OpenCode"},
7392 {a->antigravity, "Antigravity"},
7393 {a->aider, "Aider"},
7394 {a->kilocode, "KiloCode"},
7395 {a->vscode, "VS-Code"},
7396 {a->cursor, "Cursor"},
7397 {a->windsurf, "Windsurf"},
7398 {a->augment, "Augment-Auggie"},
7399 {a->openclaw, "OpenClaw"},
7400 {a->kiro, "Kiro"},
7401 {a->junie, "Junie"},
7402 {a->hermes, "Hermes"},
7403 {a->openhands, "OpenHands"},
7404 {a->cline, "Cline"},
7405 {a->warp, "Warp"},
7406 {a->qwen, "Qwen-Code"},
7407 {a->copilot_cli, "Copilot-CLI"},
7408 {a->factory_droid, "Factory-Droid"},
7409 {a->crush, "Crush"},
7410 {a->goose, "Goose"},
7411 {a->mistral_vibe, "Mistral-Vibe"},
7412 };
7413 printf("Detected agents:");
7414 bool any = false;
7415 for (int i = 0; i < (int)(sizeof(agents) / sizeof(agents[0])); i++) {
7416 if (agents[i].flag) {
7417 printf(" %s", agents[i].name);
7418 any = true;
7419 }
7420 }
7421 print_detected_registry_agents(home, &any);
7422 if (!any) {
7423 printf(" (none)");
7424 }
7425 printf("\n\n");
7426}
7427
7428/* Install Claude Code-specific configs (skills, MCP, hooks). */
7429/* ── Install plan recorder (issue #388) ────────────────────────────

Callers 1

Calls 1

Tested by

no test coverage detected