| Maintenance Mode | OAK automatically captures the plans, decisions, and trade-offs that usually vanish. Intelligence powered memories, context injection, autonomous agents, and more.
Open Agent Kit (OAK) captures development plans, decisions, and context to provide memory and context injection for AI coding agents, enabling autonom...
140 app.include_router(restart.router)// Network-exposed MCP; requires valid agent token but no additional authorization for destructive actions.
163 try:
164 subprocess.run(["uv", "--version"], capture_output=True, check=True)
165 install_cmd = ["uv", "pip", "install"]
166 except (subprocess.CalledProcessError, FileNotFoundError):
167 install_cmd = [sys.executable, "-m", "pip", "install"]
168
169 try:
170 cmd = install_cmd + packages_to_install
171 console.print(f" Running: {' '.join(cmd)}", style="dim")
172 subprocess.run(cmd, check=True, capture_output=True, text=True)// Exploitable only if MCP is exposed to untrusted prompts or if an attacker can influence the package list via configuration.
141 app.include_router(config.router)// Network-exposed MCP; requires valid agent token but no restrictions on config changes.
156 if (path === "/api/swarm/agent-token" && request.method === "GET") {
157 const authErr = validateSwarmToken(request, env);
158 if (authErr) return withCors(authErr, request);
159 return withCors(
160 Response.json({ agent_token: env.AGENT_TOKEN }),
161 request,
162 );
163 }// Network-exposed; requires swarm token authentication, but swarm token may be shared or compromised.
100 if (path === "/api/swarm/search" && request.method === "POST") {
101 const authErr = validateSwarmToken(request, env);
102 if (authErr) return withCors(authErr, request);
103 const doStub = getDurableObject(env);
104 return withCors(await doStub.fetch(request), request);
105 }// Network-exposed; requires swarm token authentication but no input validation on search queries.
108 if (path === "/api/swarm/fetch" && request.method === "POST") {
109 const authErr = validateSwarmToken(request, env);
110 if (authErr) return withCors(authErr, request);
111 const doStub = getDurableObject(env);
112 return withCors(await doStub.fetch(request), request);
113 }// Network-exposed; requires swarm token authentication but no input validation on item IDs.