Skip to Content
This workshop is complete. To join the next one or learn more about GlassFlow, get in touch.
Bonus: Watch your context window (cloud)

Bonus: Watch a bloated tool call eat your context window (cloud)

You give Claude Code a tool that answers every question with the whole company handbook. Then you watch the context window fill up, and see in Rius which tool did it.

Time: about 20 minutes.

This is the cloud guide: Rius runs in a workspace we host. Want Rius on your own laptop instead? Follow the local guide.

Before you start

  • Claude Code is installed and signed in (the Everyone part of the setup).
  • git and python3 work. The Rius plugin needs both.
  • A browser on the same laptop.

What you use

  • The Rius plugin sends Rius the shape of each Claude Code session: model calls, tool calls and token counts. It never sends your prompts, replies or files.
  • The Rius MCP server lets Claude Code read your alerts back.
  • bloat is a tiny MCP server with one tool, search_handbook. Every answer comes with the whole 44 KB handbook. Its code  is public.

Steps

Install the Rius plugin

In a terminal (not inside Claude Code):

claude plugin marketplace add glassflow/rius-coding-agents claude plugin install rius@rius-coding-agents

You should see Successfully installed plugin: rius@rius-coding-agents (scope: user).

Already have it? Run claude plugin update rius@rius-coding-agents instead. You need 0.8.2 or later.

Make a folder and add bloat

mkdir -p ~/rius-track && cd ~/rius-track claude mcp add --transport http bloat https://bloat-mcp.vercel.app/mcp claude mcp list

You should see these two lines:

plugin:rius:rius: https://mcp.eu.console.rius-glassflow.com/mcp (HTTP) - ! Needs authentication bloat: https://bloat-mcp.vercel.app/mcp (HTTP) - ✔ Connected

Needs authentication is fine: you sign in to it in a later step. If it says ✔ Connected, you signed in to it during the setup.

Sign up for Rius

Signed up in the setup already? Skip this step.

Open console.rius-glassflow.com/signup  and sign up with GitHub, Google or your email. Click Create my own workspace, name it (for example munich), and click Get started.

Connect Claude Code

Start Claude Code in your folder:

claude
  • Asked whether you trust the folder? Pick Yes, I trust this folder.
  • Asked about auto mode? Pick No, keep manual mode.

Then run this, unless you connected in the setup already:

/rius:login

Claude Code prints a link and a code:

Open: https://console.rius-glassflow.com/portal/pick?link=… Code: ABCD-EFGH

Open the link. Check the code matches, click Choose next to your workspace, then Connect. Back in Claude Code you should see Connected as <your email> → munich.

Trace this folder

/rius:enable-here

You should see Rius tracing enabled for /…/rius-track and everything under it.

Sign in to the Rius MCP server

claude mcp list showed plugin:rius:rius as ✔ Connected? Skip this step.

/mcp

Pick plugin:rius:rius, then Authenticate. In the browser, click Allow access.

Start a fresh session

Type /exit, then start Claude Code again:

claude

You should see Rius: tracing this session to workspace munich. Check how full the context is:

/context

Note the first number, for example 29.8k/1m tokens (3%).

Ask the bloated question

Paste this prompt:

Use the bloat handbook search to answer three questions: how many vacation days do full-time staff get, how soon must expense reports be filed, and how often are laptops replaced? Search once per question. Save the answers to answers.md, then read the file back and tell me what it says.

Claude Code asks twice:

  • Before the first search: pick Yes, and don’t ask again for bloat.
  • Before it creates answers.md: pick Yes.

You should get the answers: 28 days of vacation, expenses within 30 days, laptops every 36 months.

Watch the context window jump

/context

It’s about 60k tokens higher, for example 88.7k/1m tokens (9%). Three one-line answers cost three copies of the handbook, and they stay in the context for the rest of the session.

See it in Rius

Open console.rius-glassflow.com .

  • Traces: open the newest claude-code session. The Context growth bars jump right after the three handbook searches, and stay high.
  • Alerts: within 1 to 3 minutes, Recent firings shows CF-15 on mcp__bloat__search_handbook in claude-code, rule Context rot. CF-15 is Rius’s code for context rot.

Ask Claude Code about it

Use the rius MCP server: list my open alerts and tell me which tool caused the context rot alert.

Pick Yes when it asks to use Rius. It should name mcp__bloat__search_handbook. No alerts yet? Wait a minute and ask again.

See where the tokens went

Type /exit first: this page only counts finished sessions.

In the console, open Agents → claude-code and look at Context. tool calls and results is now about a third of everything Claude Code sent, almost all of it handbook copies.

What just happened

  • bloat returned the whole handbook for every question.
  • Claude Code keeps every tool result, so each copy was sent again with every later model call.
  • Rius sees how much of each call came from each tool. When one tool takes 30% or more of the context and it stays there, Rius raises a Context rot alert.

If something is off

  • Shell command permission check failed: run claude plugin update rius@rius-coding-agents in a terminal, then restart claude.
  • The sign-in link expired: run /rius:login again. Links last 15 minutes.
  • HTTP 429 from /rius:login: many people are signing in at once. Wait a minute and try again.
  • /rius:enable-here refuses your folder: run it inside ~/rius-track, not your home folder.
  • No Rius: tracing this session line: run /rius:enable-here again, then restart claude.
  • Claude Code answers without searching: run /mcp and check bloat is connected.
  • No trace in the console: wait a minute. /rius:status shows how many spans were sent.
  • No alert after 5 minutes: check claude plugin list shows Rius 0.8.2 or later, then ask one more question in the same session.
  • The Agents page looks empty: type /exit in Claude Code and reload the page.
  • The Rius MCP server shows an error: run /mcp and reconnect plugin:rius:rius.
  • Don’t rename the session (/rename): Rius files it under the new name.

Clean up

In ~/rius-track:

claude mcp remove bloat

To stop tracing the folder, run /rius:disable-here in it. To remove the plugin: claude plugin uninstall rius@rius-coding-agents.

What’s next

We show you a workspace that has been busy for a while: alerts with their root-cause analyses, a session that lost history when its context was compacted, and the sessions of a whole team.

Last updated on