Repository navigation
Claude Code builds the team: connect it, or any app that speaks MCP, to create and manage agents from outside - #64
Merged
Conversation
…to create and manage agents from outside Settings → Claude Code & MCP adds Godmode to Claude Code in one click and gives other apps a key of their own. A key opens the management tools of the MCP gateway (agents, automations, tasks, runs, VMs), with full or look-only access; godmode mcp, tools and call bring the same tools to a terminal.
# Conflicts: # packages/core/src/db/migrations.ts
# Conflicts: # README.md # apps/desktop/src/pages/settings/settings-page.tsx # packages/core/src/db/migrations.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GODM-49 — the AI can create new agents itself.
What was there, and what was missing
Inside Godmode this already worked: the built-in Godmode agent has
agent_create,agent_update,agent_delete(plus automations, tasks, VMs) on the internalgodmodeMCP server. But that server only answered Godmode's own runs — each run gets a token that dies with it. Nothing outside the app could reach it: not your own Claude Code in a terminal, not Cursor, not a script.This PR opens that door, with a key per app.
What's new
Settings → Claude Code & MCP
claude mcp add-json --scope user). In the next session: "Create a Godmode agent that checks our competitors' pricing every Monday" — and the agent, its instructions and its schedule show up in Godmode.claude mcp addline, URL + header, shell lines). Shown once; Godmode keeps the hash.godmodecommand line (the connector CLI)godmode mcpfinds the running Godmode through~/.godmode/core.jsonon every call, so it keeps working when Godmode restarts on another port, and says "Godmode isn't running" in plain words instead of failing the connection.What an app can and can't do
It calls as the built-in agent, through an allowlist (
CONNECTOR_TOOLS): agents, automations, tasks, runs, spend, workspaces, VMs. Nothing that needs a run, a chat or a browser — no vault fills, no questions, no delegation, no API tools. The tools themselves are unchanged, so the existing rules hold: an agent created from outside is fill-only, can't manage agents, has no computer use, working folder or SSH servers./mcp— not/mcp/computer,/mcp/vm,/mcp/ssh, and not the dashboard API.connector.callwith the app as actor.GODMODE_CONNECT_TOKENis stripped from agent runs; Godmode's own runs use--strict-mcp-config, so the Claude Code entry never reaches them.Worth knowing: a look-only key still sees which logins exist (names, usernames — never a password) and snippets of what runs were asked and answered. A full key can create agents and automations that later act with saved logins. Both are in SECURITY.md.
One fix to existing behaviour, found in review and now reachable from outside:
task_updatelet a caller rewrite the description of a task assigned to a reveal-mode agent without the checkroutine_updateandagent_updatealready had. It refuses now, for agents and apps alike.Verified
bun testinpackages/core: 1422 pass, 0 fail (merged with main). 20 new tests intest/connect.test.ts: key auth, the allowlist, look-only vs full, agent limits, REST, phone/cloud refusal, install and uninstall with a fakeclaude, the CLI and the stdio bridge.pnpm -r typecheckclean.claude mcp listreports✔ Connected; a realclaude -psession asked for an "Inbox Triage" agent created it with a weekday 08:00 schedule.Not tested: the packaged desktop app (the one-click path was exercised with the core run from source), and Windows.
Migration 70 (
connectors). Merged with main; the only conflict was the migrations list.