Grok Bot: safe way to "reset" long-running bots weekly without breaking routines, webhooks and memory?

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:

  1. 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.
  2. Memory doesn’t carry over. Staff confirm the copy starts with empty memory (topic 171540).
  3. 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.
  4. Routines are copied, so schedules can fire on both bots until one side is paused.
  5. One user reports that duplicating breaks routines and teammate links (topic 174982). It’s unclear what happens to group-room membership.
  6. It’s unclear whether connector sign-ins (Gmail, Drive, X, an IBKR remote MCP) carry over to the copy.
  7. 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.
  8. 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

  1. What’s the recommended way to give a long-running bot a fresh, cheap context without changing its identity, routines, webhooks, memory or connectors?
  2. 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?
  3. 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.
  4. 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.
  5. 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

beginner but same tradeoff here…
few Grok Bots + daily routines, long chats get expensive, but Duplicate/delete feels too risky for webhooks & teammate links :sweat_smile:
a “Reset chat / compact transcript only” that keeps identity, memory, routines, connectors would be :fire:
curious what staff recommend as the safe weekly path rn — that’d help a lot, no?

Problem is grok bot’s support acknowledge the long chat problem but won’t provide a safe way to clear it.

Decided to try Grok Bot for the first time yesterday, today I’m at 85% of my “Super” weekly plan and I already canceled my sub, if this is the allowance we have I’m not interested anymore, hope they fix this as I really enjoy working with my fleet of bots but is not worth the money if I can only use them 1 day per week.

Yeah it’s pretty ridiculous.

I started out at the $30 plan. Ran out of usage in 2 days. Upgraded to $100, ran out in 2 days, upgraded to $200, ran out on 3 days.

The thing is my usage per day is about the same during all 7 days.

Hey @Vu_Le1,

There’s no way today to reset a Bot’s chat on demand while keeping its routines, webhooks and memory. Duplicate is no longer in current versions of the app, and the + now creates a new Bot. A group chat with the same Bot doesn’t help either, because it still runs on the Bot’s main conversation. A built-in reset is something we’re tracking; you can follow it in Grok Bot: prune/compact an agent’s context without creating a new Bot.

A weekly swap wouldn’t save as much as it looks anyway. Long chats are summarized automatically once they get large, so a busy Bot’s cost per reply levels off instead of climbing all week. What lowers usage most is waking your Bots less often:

  • Have alert routines message you only when something needs attention. A routine run doesn’t re-read the Bot’s chat unless it has to message you or hand off to another Bot.
  • Have your Mac scripts batch or filter events, and put the details in the webhook body.
  • Ask each Bot to remember: “Only message another Bot when it needs to act. No acknowledgments or progress pings.”

To see what’s driving usage, ask any of your Bots: “Which of my Bots and routines used the most this week?” There’s no per-turn view yet.

@suho79kr @Songbirdl, the same tips apply to your setups.

Actually my bot’s usage is absolutely ridiculous. I turned off all routines, all scripts, etc…

I send a hello to the bot, the bot reply hello. 59k -115k tokens used. -usage tracked in the dashboard.

if you want to see chat screenshots and usage screenshots let me know

Please explain to me how is this feasible and what am I paying for with $200 a month to Xai.

Hiya Mohit,

Question on some mechanics, regarding the bots having to re-read & re-process the entire context window…

…have you guys considered doing something a little more “clever” …under the hood, like oMLX has recently done, with the new batch KV caching feature?

Remember, prior turns & tools have not changed, only the new message(s) coming thru - the model server can hold the cache for the previously calculated data/vectors in hot-swappable RAM, or even offload some of this to SSD (cheap-vs-RAM) and therefore, recycle lots of work, without re-doing the work… so to speak…
methinks you would only wanna invalidate the cache if you user went back in time to branch off the convo (which is not a feature in this app), or edit-resend a prior msg (also not a feature) then re-calc from that point forwards thru current msg…

Much less resource intensive, in my experience, on my local served LLMs… just sayin’