Where does the bug appear (feature/product)?
Grok Bot
Describe the Bug
Hi all, and Cursor team,
I run six Grok Bots that work together (a futures/trading assistant, a news bot, a reviewer, a builder, a bot designer and a personal assistant). They share one bot computer, and a Mac mini registered as a computer runs long-lived scripts under launchd. Those scripts wake the bots through webhook routines.
The problem: cost grows with chat length
Staff have explained that every reply re-reads the whole conversation (topics 171221 and 171540). Our busy bots have long chats, and we hit about 82% of our weekly usage by Saturday. We’d like to start each busy bot fresh about once a week.
What we’ve been doing, and why it’s risky
Our current method is Duplicate the bot, delete the old one, then check that the new one is working. From the forum and our own setup, that’s full of traps:
- A duplicate is a new bot with a new ID. Anything that refers to a bot by ID (our alert-routing config, other bots’ teammate references) goes stale.
- Memory doesn’t carry over. Staff confirm the copy starts with empty memory (topic 171540).
- Webhook routines appear to get new URLs and keys, or arrive disabled (topic 170702). Every script on the Mac that wakes a bot must then be repointed, or it keeps waking the old bot and then fails after the delete.
- Routines are copied, so schedules can fire on both bots until one side is paused.
- One user reports that duplicating breaks routines and teammate links (topic 174982). It’s unclear what happens to group-room membership.
- It’s unclear whether connector sign-ins (Gmail, Drive, X, an IBKR remote MCP) carry over to the copy.
- Delete is permanent and removes the transcript and memory. Hide may exist in the sidebar menu, but a hidden bot’s routines seem to keep running.
- Typing “stop” to one bot can also stop the bots it handed work to (topic 176686), which makes a clean handoff harder.
Costs and benefits as we see them
- Benefit: much cheaper turns after the reset, and less risk of old rules dropping out of view, since only the newest few thousand characters of memory load each turn (topic 175615).
- Cost: about 1-2 hours of manual work per bot, plus risk to live alerts (missed wake-ups, misrouted alerts, double runs) during the swap. Rebuilding context in the new bot also costs tokens.
- Multiply that by six bots every week, and it isn’t sustainable.
What we’ve considered
-
A weekly runbook per bot:
- Before: export a handoff note, a memory export and an inventory of routines, webhooks, connectors and rooms.
- Swap: duplicate, pause the copy’s routines, re-save memory, repoint the webhook keys on the Mac, fix rooms.
- Cutover: pause the old bot’s routines and resume the copy’s.
- After: test each webhook and alert, hold the old bot for a week, then delete it.
It works on paper, but it’s too complicated to repeat weekly.
-
Moving all bot IDs and webhook URLs and keys into one file so a swap is a single edit. That helps with trap 3 but not the rest.
-
Starting a new chat with the same bot (the + at the top of the sidebar). Staff say this keeps profile, memory, routines, skills and connectors (topics 168333 and 172705). But users report it opens a separate group-style chat without the bot’s screen or its own settings pane. It also isn’t clear whether routine runs and bot-to-bot messages then land in the new chat or the old one.
Questions for the team
- What’s the recommended way to give a long-running bot a fresh, cheap context without changing its identity, routines, webhooks, memory or connectors?
- Does the + new chat fully replace the old chat for that bot? Specifically: where do routine results and messages from other bots appear, and does the old long chat still get re-read or billed in any way?
- If Duplicate is the way, exactly what carries over? That means routines (enabled or disabled), webhook URLs and keys, connector sign-ins, channels, group-room membership, shared memory, and other bots’ teammate links.
- Is a “Reset chat” or “compact” for a single bot planned, one that keeps everything except the transcript? That alone would solve this for us.
- Is there a way to see per-turn cost, so we can tell which bots and routines are driving usage?
Any guidance, or a pointer to an official guide, would be much appreciated. Happy to share more details.
Steps to Reproduce
See the description above; this is a request for guidance, not a single bug.
Operating System
Other
Version Information
N/A - guidance request, not tied to a specific version (Grok Bot)
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
