From 08dc0f318b3a8e7e2eb8d0832bcf71a2eac81de7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 21 Mar 2026 05:36:01 +0000 Subject: [PATCH 1/2] Initial plan From d5e94b6fceff4ced74fc15f0bd2e45eeaa3defc0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 21 Mar 2026 05:38:17 +0000 Subject: [PATCH 2/2] fix: use api.config?.pythonPath in grok_agent_plugin.ts instead of hardcoded python3 Co-authored-by: KHAEntertainment <43256680+KHAEntertainment@users.noreply.github.com> Agent-Logs-Url: https://github.com/KHAEntertainment/grok-multiagent-plugin/sessions/aa43e519-f955-4eac-ab29-27a12839c43c --- src/plugin/grok_agent_plugin.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugin/grok_agent_plugin.ts b/src/plugin/grok_agent_plugin.ts index a3ec699..9be6cf4 100644 --- a/src/plugin/grok_agent_plugin.ts +++ b/src/plugin/grok_agent_plugin.ts @@ -18,6 +18,7 @@ import { Type } from "@sinclair/typebox"; const PLUGIN_ROOT = join(dirname(fileURLToPath(import.meta.url)), "..", "..", ".."); const DEFAULT_AGENT = join(PLUGIN_ROOT, "src", "agent", "grok_agent.py"); +const DEFAULT_PYTHON = join(PLUGIN_ROOT, "skills", "grok-refactor", ".venv", "bin", "python3"); const GrokAgentSchema = Type.Object({ task: Type.String({ description: "Natural language task instruction" }), @@ -57,6 +58,7 @@ export default function (api: any) { try { const agentScript = api.config?.agentScript || DEFAULT_AGENT; + const pythonPath = api.config?.pythonPath || DEFAULT_PYTHON; // Validate agent script exists if (!existsSync(agentScript)) { @@ -88,7 +90,7 @@ export default function (api: any) { // Spawn agent with timeout enforcement return new Promise((resolve) => { - const child = spawn("python3", args, { + const child = spawn(pythonPath, args, { stdio: ["ignore", "pipe", "pipe"], env: { ...process.env }, });