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

Function install_managed_agent_instructions

src/cli/cli.c:7886–7902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7884}
7885
7886static void install_managed_agent_instructions(const char *label, const char *instructions_path,
7887 bool dry_run) {
7888 if (g_install_plan) {
7889 plan_record(label, "instructions", instructions_path);
7890 return;
7891 }
7892 bool installed = true;
7893 if (!dry_run &&
7894 (!prepare_config_parent(instructions_path) ||
7895 cbm_upsert_instructions(instructions_path, agent_instructions_content) != CLI_OK)) {
7896 installed = false;
7897 record_agent_config_error(false, label, "instructions_install", instructions_path);
7898 }
7899 if (installed) {
7900 printf(" instructions: %s\n", instructions_path);
7901 }
7902}
7903
7904static void install_qoder_durable_context(const char *home, const char *binary_path,
7905 const char *settings_path, bool config_resolved,

Calls 4

plan_recordFunction · 0.85
prepare_config_parentFunction · 0.85
cbm_upsert_instructionsFunction · 0.85

Tested by

no test coverage detected