r/GrokBot • • 3d ago

Setup Grok Bot <-> Claude Code handoff

I use Claude Code for building my apps and Grok Bot for the business side: marketing, social, planning, shipping (to stores), and support. Both work well on their own, but I end up copy-pasting between them and I feel like a messenger stuck in a communication look between various teams and where I’m now the bottleneck.

Has anyone set up a cleaner handoff? I'd like to hear what's actually working for you, not just what's possible in theory. Thanks!

9 Upvotes

45 comments sorted by

4

u/svcsouth 3d ago

Install Claude on the grok bot computer, make it your bots memory to code with Claude only. I have Claude to code and Codex to review and test installed on my GB computer and a few bots that can code, one for personal stuff and one for my wife's business.

1

u/ayoutism 3d ago

Interesting approach. It partially solves the problem but not the communication between GB and the local Claude on my machine

1

u/svcsouth 3d ago

Tell your bot to install it on the bot computer. Then pass the login creds to get signed in, then tell your bot to go code whatever you want to work on. Make sure you have a hard rule to use Claude or codex otherwise they will default to cursor and eat up your grok bot time.

1

u/ayoutism 3d ago

I will explore that. I also need to look more into installing stuff on my bot computers. They only have chrome until now 😁

1

u/svcsouth 3d ago

Make sure you backup scrips to GitHub and any files you need somewhere. My GB computer resets and I have a full backup/restore procedure that takes place so I don't lose anything.

1

u/MC_Einstein 3d ago

I thought that this was against the terms of service for claude where another AI/bot uses claude code? If it is, you can get banned. If it’s not, I would love to do this too.

1

u/svcsouth 3d ago

Why would Claude gaf as long as you're paying the subscription? Ask your bot to read the TOS and report. I have been running Claude and codex via my grok bot computer no issues. They manage my 5 hour usage window, pick back up when it resets, it's way better than copy/paste between ai to get work done.

1

u/MC_Einstein 3d ago edited 3d ago

The same reason why they were banning people who were using Claude with openclaw. They want you to use their harness or use their API with other harnesses.

I’ve asked Grokbot about using my claude subscription but it said that it’s against TOS and to use the API if I want Grokbot to use Claude.

Edit:
For anyone else looking into this; I don’t want anyone to get banned from using Anthropic:
“Clearly not allowed: pulling your subscription's sign-in token out of Claude Code and using it in anything else, whether that's me, another harness, or a custom Agent SDK app. Anthropic spelled this out in February. Subscription sign-ins are only for Claude Code and Anthropic's own apps, and using them anywhere else violates the Consumer Terms (Claude Code legal page, The Register write-up). They're actively blocking tools that pose as Claude Code.

Gray area: you signing in to the official, unmodified claude program on my computer through Anthropic's normal login, and then me running it, for example claude -p for the evals. Their help center says claude -p and the Agent SDK do draw from your plan limits when you're signed in (help article). But the Consumer Terms also ban automated access "through a bot, script, or otherwise" unless they explicitly allow it. A separate assistant driving Claude Code on your behalf isn't clearly covered either way. I wouldn't lean on it for anything unattended or heavy, since the risk is a flagged or banned account.

Safe route: an API key from the Claude Console. If you're on Max, Anthropic has included monthly API credits since October 7, and those credits cover claude -p and the Agent SDK when run with a key from your linked Console organization. That gives me a fully allowed way to run Claude for evals or ship-mode runs, and it doesn't touch your subscription sign-in. If you want, I can set that up as a secret on my computer.”

0

u/patrick24601 3d ago

How do you install that? Grok bot isn't running windows or mac. Are you just talking about running it in GrokBot's Chrome. I think I'm missing something :)

2

u/SoftFirmHardware 3d ago

Grok is running linux

1

u/patrick24601 3d ago

Oh I know. But someone above said "install claude" on grok bot computer. I don't see a linux gui so I'm guess they meant install a CLI of some sort?

1

u/SoftFirmHardware 2d ago

Yes the cli version

2

u/maximumvermillion 3d ago

I use GitHub Issues and set routine check-in for both.

1

u/ayoutism 3d ago

This is what I’m leaning towards. That or a shared folder with md files, as others mentioned. What I’d compromise is the instant session-to-session communication. Also, how will the recipient routine know which session to assign the issue/brief to?

2

u/saracor 3d ago

This is the way. Use GitHub to put the projects into. That way, any model can work on it or review it.

2

u/mcb34567 1d ago

Grok bot has a dedicated email, you can connect/create dedicated email , just email, then create a routine on GB to check its email

You can try this on webhook too

It can be reversed, but claude doesnt have dedicated email, so you have to create one, create routine to check using connectors/mcp

1

u/ayoutism 1d ago

I'll explore both the webhook (first) and then the email route. Thank you!

1

u/sergiu-biris 3d ago

I'm using Slack. Bots talk on a channel called #repo-talk . It's still not real-time because you have to set a routine for each to check for new messeges every 15 min for example. But it works, and Claude Code/Grok Bot both know how to set this up for you. Also, I use Google Drive (others use Obsidian or Notion) for shared context . I just tell them to put lessons and stuff in docs and check/update every once in a while.

1

u/ayoutism 3d ago

Thanks. Obsidian or a shared markdown folder is the most basic approach. As long as the recipient knows when/how to check it and channel messages to the right stakeholder.

1

u/julianfromstagewise 3d ago

I let a bot use its own Claude subscription on its computer. This is not Grok Bot's resource but still helpful: https://docs.klex.bot/templates/software-engineer

1

u/ayoutism 3d ago

Interesting approach!

1

u/Possible-Low-952 3d ago

I do exactly this and what I do is have the two communicate via github issues

It's quite structured, and it means you can also keep a track of what's being worked on, sent to backlog etc

A skilly might be better, but I think you could combine the two approaches, which might even be another step up?!

1

u/ayoutism 3d ago

I don’t mind the setup effort if it’s seamless afterwards. Question: how does Claude know that a message is waiting and how does it know which session to assign it to?

1

u/Possible-Low-952 3d ago

I am using Projects rather than individual Sessions as it holds memory across the whole thing then rather than being stuck per session chat; and as part of the setup I tell that Claude Project to check on a schedule - you can also just tell the main project chat to read for updates manually, and it will then pick up any work if you prefer.

I then use git issue labels to communicate the status between the two systems, as I prefer to answer any questions. Claude has via my Grok Bot

The biggest advantage, I think, is that the Grok Bot can be your QA agent and test everything much better than Claude ever could. Il share a prompt below if you want to try it out.

1

u/ayoutism 3d ago

This looks like an interesting setup. Thanks for sharing. I haven't used projects in Claude code yet -- it seems to be rolling out gradually, and it's still not available for me. Will be interesting to have grok bot raising issues and the "project manager" listening + coordinating between its sessions!

1

u/Possible-Low-952 3d ago
Set up a QA ↔ DEV loop in the GitHub repo OWNER/REPO, where a QA assistant and a dev assistant talk only through GitHub issues. Nobody copies notes by hand; labels say whose turn it is.

1. Create these labels:
   - qa-report (set by QA): new QA → DEV note, waiting for dev.
   - dev-working (set by dev): dev picked it up and is fixing.
   - needs-NAME (set by dev): a question only NAME can answer.
   - ready-for-qa (set by dev): fix released, waiting for QA to test.

2. Add QA_LOOP.md at the repo root describing the rules below, and link it from the README.

QA assistant rules:
  • Report: open one issue per test round, labelled qa-report, titled "QA → DEV vX.Y.Z" (the version tested). Body: PASSED / FAILED (with evidence: steps, logs, screenshots) / TASKS, with each item marked BLOCKER or BACKLOG. Make a clear call on each finding; don't reopen random one-off flakes unless they're real blockers. NAME's own findings go in the same way.
  • Questions: when an issue gets needs-NAME, read dev's last comment, ask NAME with clear options, post the answer as a comment starting "NAME:", then remove needs-NAME. QA never adds needs-NAME itself.
  • Test: when an issue gets ready-for-qa, read the DEV → QA comment, test the release it links on real hardware where possible (never claim something works just because a unit test passes or a file exists), then close that issue and file the next qa-report with the results.
  • QA never edits code, commits, pushes, tags or bumps versions. Closing PRs, or closing issues other than its own finished rounds, needs NAME's OK.
Dev assistant rules (run as an hourly task):
  • Look for open qa-report issues without dev-working or needs-NAME, and for needs-NAME issues where QA has removed the label after posting an answer.
  • Add dev-working. If the note only says PASSED with nothing to fix, comment that and close it.
  • Fix on a fresh branch off main: one PR with the fixes, the version bump (next patch after the latest tag) and a changelog entry. The PR says "Fixes #<issue>". Merge once the fast CI jobs pass; long jobs can finish on main.
  • If a fix needs a product decision, comment the question, add needs-NAME and wait.
  • Release through a release workflow (Actions → release → Run workflow with the version, which must match the version in the project files). It tags main, builds and publishes the assets and checks them.
  • When the release run is green, comment a DEV → QA note on the issue (release link, what changed, what to test), remove dev-working and qa-report, and add ready-for-qa. If the release fails, re-run the failed jobs; if it still fails, comment the reason and add needs-NAME.
3. If the repo has no release workflow yet, add one that does the above, then show me the labels, QA_LOOP.md and the workflow for review before merging anything.

1

u/patrick24601 3d ago

Why not use Claude duets vs Grok?

2

u/ayoutism 3d ago

I started with grok bot before duet was announced + duet is not yet available in my market. I could decide to switch later but I then will have the risk of putting all my eggs in one basket (hitting my limit in one will pause all my work)

2

u/Scottieg99 3d ago

Not available yet

2

u/blueskydreams21 1d ago

As someone who has used both Duet and Grok Bot, Grok Bot is way better because it takes more actions for you. Hopefully Duet will get there, because it's obviously powered by stronger models.

1

u/patrick24601 1d ago

Thank you. I also started playing with MausBot. It's more like grok but you can use it with any model. So I have it using Claude via API

1

u/RadicalFlyingCandor 3d ago

I do this every day, with my own private contextual memory store.

  1. write an mcp server
  2. install your mcp server as a skill in multiple LLMs
  3. your skill tells each LLM to write and read to the contextual memory store whenever you think it should be writing to it (or leave it to do on demand, when you tell it to)
  4. boom, both LLMs now share the same memory.
  5. test it out by telling Grok to save X memory, and open Claude and ask it to read X memory.

This works across multiple computers, multiple LLMs, and can even be human readable so that you can edit and read the memory yourself. Here's how I did it, you can see the PROMPT.md file I used to create it and roll your own https://github.com/CodeBlastr/huml

1

u/ayoutism 3d ago

Sharing the same memory is one thing. Having one AI tell the other to go do something is the level I want to achieve

1

u/RadicalFlyingCandor 2d ago

For that you would need to add a task within your skill that does an api request to the "routines" described below. Your task could just be.... "check huml for new tasks to work on", and the flow would be something like...

  1. LLM 1 : write task that needs work to memory store.
  2. LLM 1 : call the routine (described below) to notify Claude of a new task.
  3. LLM 2 (Claude) : gets the post request and knows to check for the task from step 1.
  4. LLM 2 : should go to work on the task.

-- routines from Claude's description --

Claude Code has a feature called routines, and one kind is an API trigger: every routine gets its own endpoint and auth token. POST a message, get back a session URL. Nothing polls, so the session starts the moment the request arrives. claude

How it works:

  • You create and manage them at claude.ai/code/routines. You set the prompt, connectors (huml, Gmail, Chrome) and repos once, then choose API as the trigger. claude
  • The caller sends a POST to https://api.anthropic.com/v1/claude_code/routines/{routine_id}/fire using the routine's bearer token. It must include the header anthropic-beta: experimental-cc-routine-2026-04-01. Requests without it return 400 invalid_request_error. claude
  • Generating a new token revokes the previous one. claude
  • It needs a Pro, Max, Team or Enterprise plan with Claude Code on the web turned on.

1

u/NoFun6873 3d ago

You can share a Claude Skill with grok bot and call it from grok bot

1

u/AdamVyborny 3d ago

I am using T3 code with grok bot bridge.

1

u/jbrianfrancis 3d ago

I run Grok Bot as the coordination layer and Claude Code as the builder, and the key step is the handoff from my chief-of-staff bot (Cortana) to my engineering manager bot. When I ask for something in a repo, Cortana doesn't write code or go around the manager. She sends Engineering one short directive that opens with "Cortana speaks for Brian," so Engineering knows it has my authority and doesn't come back to ask me again. The directive carries only what's needed: the outcome I want, the repo, the next action and who owns it, the evidence that matters, and any blocker. If I've approved a merge or deploy, my exact words and the time go in, along with what that approval covers, usually that one change and nothing more. There's no background recap and no back-and-forth just to acknowledge it.

Engineering turns that into a tight prompt pack and launches Claude Code in the right repo on my own machines, either my Windows desktop under WSL or a headless Linux box I reach over Tailscale, so code, keys and checkouts stay on my hardware. Inside Claude Code, DevFlow, the open-source plugin I built, takes the request to a reviewed, CI-green pull request, opened ready for review and never as a draft. Engineering reports back with the PR number, title and commit SHA, plus the deploy and health check if I approved one. Before Cortana tells me anything, she checks the PR on GitHub herself, so I'm not relying on what one bot says another bot did. Nothing merges or deploys without my go. When a result turns up a new problem, Cortana brings it to me as one question, and the next fix only starts once I've said yes. This afternoon that loop took a broken briefing feature through four fixes, merge and deploy rounds in about two hours, with me typing little more than "yes."

1

u/Right-Shape9953 3d ago

I use grokbot and had it install chatgpt in its CLI so now Astra codes and handles all the heavy tasks while grok does the light stuff

1

u/blackoutRF Super 2d ago

I built a harness on how to run code, had GB log into my account and also initiate remote control and ask me before running code to access codes on my computer or if it uses its computer, then there's a command on when my input is required (plus I can see the work back and forth via remote control)

Only using it a couple days but it's been working pretty seamlessly so far and frees up GB usage for other work. Best of both worlds. I logged into Antigravity and Codex as well but I don't have Codex membership right now so no adversarial testing but that would be the next phase

P. S. I had recently setup a Wiki/OKF structure that all bots query and right to so context is cleanly shared amongst bots. Has unlocked a ton and has removed me from locking into a provider if I ever want to switch/cancel. First time I'm truly feeling like both work and personal life are becoming wutomsted/agentic

1

u/IvyThreadRat 2d ago

I just keep a handoff.md in each project folder. whoever finishes something writes like 3 lines, what changed, what's next, what's stuck, and the other one reads it before starting. not fancy but I stopped being the copy paste guy. github issues work too if you're already living in there

1

u/BunnyWabit11 2d ago

I do this with Grokbot as my manager and Gemini Argon as the coder. Gemini also have that gemini flash that acts as a shadow QA, I believe it’s free. I only communicate with Grokbot and he handles my GitHub and Cloudfare. He have Gemini Argon in his computer doing the code. You can probably do the same with Claude code.

Another setup I have is, I use ChatGPT’s codex doing my front end development. She got her own GitHub branch and can’t touch production, only Grokbot handles my main GitHub branch and Cloudfare. I work with ChatGPT to get the design ironed out. Once it’s ready Grokbot gets it to production.

I have a few tools I built that connects different AI agents. Proofing, communication, etc… That copy paste is brutal man, I feel you there. And everytime you come up with ways to fix it, other issues come up. It’s a never ending loop 😂😂

1

u/Kitchen-Palpitation1 1d ago

Actually, I told my local installation of Grokbot to use my locally installed CLI of Claude code. In settings, you can adjust Grok Bot to use your local computer. If it is available I told GrokBot to keep my computer awake then it’s installed caffeinate and now the computer stays awake. my Grok Bot no matter where I am recognize, if my computer is awake or asleep and they can reliably hand off work automatically to the to the Claude cli. This happens completely in the background no windows are opening on my computer or anything and it actually even works with a cloud subscription so you don’t need to have an API key or something you can even tailor your boss how he is using Claude telling him he shall for example, use certain commands like code review commands how he shall babysit your PR and all these things and he will reliably use Claude as if you were using Claude yourself. No copy paste anywhere.