New Tool Injects Instructions into Claude Code Based on Context Usage

✍️ OpenClaw Radar📅 Published: February 7, 2026🔗 Source
New Tool Injects Instructions into Claude Code Based on Context Usage
Ad

A developer frustrated with Claude Code hitting context limits mid-task has created a tool that monitors context usage and injects custom instructions when thresholds are crossed — allowing Claude to act on warnings before it is too late.

The Problem

Claude Code auto-compaction often happens at the worst times. The standard 20% warning usually comes too late to do anything useful, resulting in lost context and interrupted workflows.

The Solution

The cc-context-awareness tool uses the status line and hooks to set custom warning thresholds. The key innovation: messages get injected mid-task (inside the agentic loop), so Claude can actually act on them.

Ad

Use Cases

  • Deterministic handoffs — At 75% context, Claude writes a session summary to a memory file, then suggests /compact. After compaction, it reads the file and continues.
  • Graduated warnings — Gentle nudge at 60%, serious warning at 80%, full stop at 95%. Good for long sessions with progressive nudges.
  • Autonomous agent loops — Write state and close out at 50-60% usage, staying well below the "dumb zone" where quality degrades.
  • Long-horizon tasks — Multi-file refactors, extended debugging. Checkpoint and wrap up before quality drops.

Installation

One-liner install:

curl -fsSL https://raw.githubusercontent.com/sdi2200262/cc-context-awareness/main/install.sh | bash

The tool installs as a skill, so you can ask Claude to help configure thresholds, change bar styles, and customize behavior.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

Claude Usage Bar Colorizer Browser Extension Built with Claude Code
Tools

Claude Usage Bar Colorizer Browser Extension Built with Claude Code

A developer built a browser extension that recolors Claude's usage bars from green to yellow to red based on percentage thresholds, adds a popup with live usage data, and allows customization of thresholds and colors. The extension only runs on Claude's usage page, stores settings locally, and makes no external network requests.

OpenClawRadar
🦀
Tools

Needle: A 26M Parameter Tool-Calling Model Built Entirely Without FFNs

Needle is a 26M parameter function-calling model with no MLPs, achieving 6000 tok/s prefill and 1200 tok/s decode on consumer devices. It beats FunctionGemma-270M, Qwen-0.6B, Granite-350M, and LFM2.5-350M on single-shot tool calling.

OpenClawRadar
Pair Programmer Plugin Adds Live Screen, Voice, and Audio Context to Claude Code
Tools

Pair Programmer Plugin Adds Live Screen, Voice, and Audio Context to Claude Code

A developer has built a plugin called Pair Programmer that gives Claude Code real-time desktop perception by capturing screen, microphone, and system audio streams. The architecture uses specialized agents running in parallel for different input types, with indexing currently handled by cloud models but designed to be model-agnostic.

OpenClawRadar
🦀
Tools

Forking OpenClaw with a Custom LLM: A Local-Only Setup Guide

A Reddit user forked OpenClaw to run entirely on local models, creating a fully customized 'JARVIS' with zero cloud dependency. The process took minutes, not hours, and runs two versions side-by-side on an M2 Ultra.

OpenClawRadar