Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

setup: background processes get a hidden console on Windows

JustVugg03166d82ed46
diff --git a/c/mcp_server.py b/c/mcp_server.py
index f4e9ff48..e9088346 100644
--- a/c/mcp_server.py
+++ b/c/mcp_server.py
@@ -204,7 +204,7 @@ def tool_install(args, notify):
kwargs = {"stdin": subprocess.DEVNULL, "stdout": handle, "stderr": subprocess.STDOUT,
"env": dict(os.environ, PYTHONUNBUFFERED="1")}
if sys.platform == "win32":
- kwargs["creationflags"] = 0x00000008 | 0x00000200 | 0x08000000
+ kwargs["creationflags"] = 0x00000200 | 0x08000000 # new group, hidden console
else:
kwargs["start_new_session"] = True # survives the assistant closing this server
process = setup_flow.spawn_detached(cmd, **kwargs)
diff --git a/c/setup_flow.py b/c/setup_flow.py
index 60031f3f..c6f84e9a 100644
--- a/c/setup_flow.py
+++ b/c/setup_flow.py
@@ -828,7 +828,10 @@ def start_server(cfg, *, background=False, open_browser=True, out=print, wait=5.
handle.flush()
kwargs = {"stdin": subprocess.DEVNULL, "stdout": handle, "stderr": subprocess.STDOUT, "env": env}
if sys.platform == "win32":
- kwargs["creationflags"] = 0x00000008 | 0x00000200 | 0x08000000 # detached, new group, no window
+ # A hidden console of its own (CREATE_NO_WINDOW), in a new process group:
+ # it outlives this window, and the engine .exe it starts inherits the
+ # hidden console instead of opening one (DETACHED_PROCESS would).
+ kwargs["creationflags"] = 0x00000200 | 0x08000000
else:
kwargs["start_new_session"] = True
process = spawn_detached(cmd, **kwargs)