What is ctx-relay?
ctx-relay is a Claude Code mod by mangow314 that hands off before the context fills up. Past the handoff line it counts down 60 s, writes a handoff file with a fork, runs /clear and resumes in the new conversation; a new conversation. It is listed under Context & memory and has 1 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | mangow314 |
| Repository | mangow314/mango-mods |
| Popularity | 1 GitHub stars |
| Category | Context & memory |
| Security | High risk (56/100) |
| Rank | #3,890 of 9,397 Claude Code mods; #357 in Context & memory |
| License | MIT |
| Last commit | 2026-11-11 |
| Hooks | 10 events |
| Sees | classic hooks, compaction, every prompt, the handoff skill |
| Draws on | AbovePrompt |
Is ctx-relay safe to install?
ctx-relay scores 56/100 on the MCPMods security check: High risk. Things to review: starts processes outside the sandbox; writes files or config; 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 |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| 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 |
$.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 | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.ui.resolve | 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 2 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)