{"record":{"id":"d5c163e95de72490","repo":"HKUDS/nanobot","slug":"unknown-agent-plugin-name","errorCode":null,"errorMessage":"unknown Agent Plugin '{name}'","messagePattern":"unknown Agent Plugin '(.+?)'","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"nanobot/agent/plugins.py","lineNumber":253,"sourceCode":"\n\ndef discover_agent_plugins(workspace: Path) -> list[AgentPlugin]:\n    \"\"\"Return component and lifecycle state for discovered plugins.\"\"\"\n    return [\n        replace(\n            plugin,\n            mcp_servers=tuple(sorted(_plugin_mcp_servers(workspace, plugin))),\n            enabled=_enabled(workspace, plugin),\n        )\n        for plugin in _installed_plugins(workspace)\n    ]\n\n\ndef set_agent_plugin_enabled(workspace: Path, name: str, enabled: bool) -> None:\n    \"\"\"Enable or disable one installed plugin.\"\"\"\n    plugin = next((item for item in _installed_plugins(workspace) if item.name == name), None)\n    if plugin is None:\n        raise ValueError(f\"unknown Agent Plugin '{name}'\")\n    data = _plugin_data_dir(workspace, plugin.name, create=True)\n    marker = data / \"enabled\"\n    if enabled:\n        activation = _activation_marker(plugin)\n        if activation is None:\n            raise RuntimeError(f\"Agent Plugin '{name}' changed while it was being enabled\")\n        marker.write_text(activation, encoding=\"utf-8\")\n        marker.chmod(0o600)\n    else:\n        marker.unlink(missing_ok=True)\n    _invalidate_skill_cache(workspace)\n\n\ndef _string(value: object) -> str:\n    return value.strip() if isinstance(value, str) else \"\"\n\n\ndef _string_tuple(value: object) -> tuple[str, ...]:","sourceCodeStart":235,"sourceCodeEnd":271,"githubUrl":"https://github.com/HKUDS/nanobot/blob/42f37dc4c0e409eac7818a82d165c5f2757bc075/nanobot/agent/plugins.py#L235-L271","documentation":"Error \"unknown Agent Plugin '{name}'\" thrown in HKUDS/nanobot.","triggerScenarios":"Thrown at nanobot/agent/plugins.py:253 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"42f37dc4c0e409eac7818a82d165c5f2757bc075","analyzedAt":"2026-08-26T00:18:52.276Z","schemaVersion":2},"datasetVersion":"2026-08-26T04:18:47.238Z"}