{"record":{"id":"ee177cd05fb802c1","repo":"zeroclaw-labs/zeroclaw","slug":"no-aliased-agent-found-with-name-name","errorCode":null,"errorMessage":"No aliased agent found with name '{name}'","messagePattern":"No aliased agent found with name '(.+?)'","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/zeroclaw-tools/src/model_routing_config.rs","lineNumber":1005,"sourceCode":"\n        Ok(ToolResult {\n            success: true,\n            output: serde_json::to_string_pretty(&json!({\n                \"message\": \"Delegate agent upserted\",\n                \"name\": name,\n                \"config\": Self::snapshot(&cfg),\n            }))?\n            .into(),\n            error: None,\n        })\n    }\n\n    async fn handle_remove_agent(&self, args: &Value) -> anyhow::Result<ToolResult> {\n        let name = Self::parse_non_empty_string(args, \"name\")?;\n\n        let mut cfg = self.load_config_without_env()?;\n        if cfg.agents.remove(&name).is_none() {\n            anyhow::bail!(\"No aliased agent found with name '{name}'\");\n        }\n\n        cfg.save().await?;\n\n        Ok(ToolResult {\n            success: true,\n            output: serde_json::to_string_pretty(&json!({\n                \"message\": \"Aliased agent removed\",\n                \"name\": name,\n                \"config\": Self::snapshot(&cfg),\n            }))?\n            .into(),\n            error: None,\n        })\n    }\n}\n\n#[async_trait]","sourceCodeStart":987,"sourceCodeEnd":1023,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/crates/zeroclaw-tools/src/model_routing_config.rs#L987-L1023","documentation":"Error \"No aliased agent found with name '{name}'\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at crates/zeroclaw-tools/src/model_routing_config.rs:1005 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create the aliased agent first (upsert_agent), or correct the name."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}