Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
Merge branch 'main' into main
Dontrail Cotlagebd4c2ca60419
diff --cc nanobot/agent/tools/shell.pyindex 5319c57ce,143d18793..805d36cbe--- a/nanobot/agent/tools/shell.py+++ b/nanobot/agent/tools/shell.py@@@ -64,12 -61,10 +83,15 @@@ class ExecTool(Tool)}async def execute(self, command: str, working_dir: str | None = None, **kwargs: Any) -> str:+ # Check for dangerous command patterns+ is_dangerous, warning = validate_command_safety(command)+ if is_dangerous:+ return f"Error: Refusing to execute dangerous command. {warning}"+cwd = working_dir or self.working_dir or os.getcwd()+ guard_error = self._guard_command(command, cwd)+ if guard_error:+ return guard_errortry:process = await asyncio.create_subprocess_shell(