Skip to main content

GLOBAL_MEMORY_WRITE_TOOL

Constant GLOBAL_MEMORY_WRITE_TOOL 

Source
pub(crate) const GLOBAL_MEMORY_WRITE_TOOL: &str = r#"{
  "name": "GlobalMemoryWrite",
  "description": "Create a new Global Memory entry, or update an existing one by id. Global Memory is inherited by EVERY agent in this workspace at launch — this is workspace-wide shared state, not your own private memory (use MemoryWrite for that). Every write is retained as a version (see GlobalMemoryHistory) — nothing is ever silently lost. Scope: the Global Memory of the AgentMux you are running in — shared by every channel that shares its identity store, but an isolated channel (a dev or test build) keeps its own, so a write there does not reach the main one or other channels, and vice versa (the Memory pane can bring entries into an isolated channel). It is not synced to other machines. Cannot create or touch AgentMux's own system-tier (highest-priority, override-wording) entries — those are managed exclusively in the Memory pane.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "id": { "type": "string", "description": "Omit to create a new entry. Provide an existing entry's id (from GlobalMemoryList) to update it instead." },
      "name": { "type": "string", "description": "The entry's display name (shown in the Memory pane's Global list, and injected as a heading)" },
      "content": { "type": "string", "description": "Markdown instructions injected into every agent's startup instructions file" },
      "provenance": {
        "type": "object",
        "description": "Optional context for why you're writing this — helps a human reviewing this later. Omit for an ordinary write from your own reasoning.",
        "properties": {
          "source": { "type": "string", "description": "\"human\" if directly instructed by the operator, \"jekt\" if this write is a direct response to jekt content still in your context, omit otherwise (defaults to agent_inferred)" },
          "detail":  { "type": "object", "description": "Extra structured context — e.g. the jekt's marker fields (FROM/TIER/TRUST/DELIVERY/MSGID) when source is \"jekt\"" }
        },
        "required": ["source"]
      }
    },
    "required": ["name", "content"]
  }
}"#;