What is ctx-relay?
ctx-relay is a Claude Code mod by mangow314 that a band above the prompt with context size, per-turn cost and the prompt-cache countdown. Past the handoff line it counts down 60 s, writes a handoff file with a fork, runs /clear and. It is listed under Cost & usage and has 1 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | mangow314 |
| Repository | mangow314/mango-mods |
| Popularity | 1 GitHub stars |
| Category | Cost & usage |
| Security | High risk (48/100) |
| Rank | #1,958 of 5,272 Claude Code mods; #342 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-17 |
| Hooks | 10 events |
| Sees | classic hooks, compaction, every prompt, the handoff skill |
| Draws on | Pane, AbovePrompt |
Is ctx-relay safe to install?
ctx-relay scores 48/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; reads environment variables; watches every prompt or event. It passed 3 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes files or config | Review |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.agent.list | |
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.clock.sleep | |
$.command.register | |
$.command.run | drives Claude |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.model.fork | drives Claude |
$.process.run | runs processes |
$.prompt.submit | drives Claude |
$.session.cwd | |
$.session.id | |
$.session.messages | reads the transcript |
$.session.usage | |
$.settings.read | reads settings |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.close | draws interface |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.panes | draws interface |
$.ui.resolve | draws interface |
$.ui.scroll | draws interface |
$.ui.toast | draws interface |
How do I install ctx-relay?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/mangow314/mango-mods claude plugin validate ./mango-mods/ctx-relay
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add mangow314/mango-mods && claude plugin install ctx-relay@mango-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs ctx-relay for you:
Install the "ctx-relay" Claude Code mod from https://github.com/mangow314/mango-mods/tree/master/ctx-relay. Run claude plugin validate on it first and show me what it can access before you enable it.
More from mangow314/mango-mods
This repository has 3 Claude Code mods on MCPMods.
- sitrep: Under each long reply, a box built from the reply's own lines (haiku only picks line numbers): status, outcome, what you (Review before installing)
- xv-band: A row above the prompt with live status of xvendor (xv) cross-vendor jobs: one line per running job or job finished in t (Review before installing)