Skip to content

Instantly share code, notes, and snippets.

View AojdevStudio's full-sized avatar

Ossie Irondi AojdevStudio

View GitHub Profile
@AojdevStudio
AojdevStudio / ContextMonitor.hook.ts
Created February 25, 2026 13:02
Claude Code Context Monitor Hook — makes your AI agent aware of its own context window limits
#!/usr/bin/env bun
/**
* ContextMonitor.hook.ts — Agent Context Awareness (PostToolUse)
*
* Makes the agent aware of context window limits by injecting warnings
* via additionalContext when usage approaches the compaction threshold.
*
* Architecture:
* 1. statusline-command.sh writes /tmp/pai-ctx-{session_id}.json on every tick
* 2. This hook reads that bridge file on every PostToolUse
@AojdevStudio
AojdevStudio / README.md
Created February 21, 2026 00:14
compile-claude — Semantic CLAUDE.md compiler. Compress LLM instruction files by 36%+ while preserving 100% meaning.

compile-claude

Semantic CLAUDE.md compiler. Compresses your human-readable CLAUDE.md into a dense, LLM-optimized version using Claude as the compression engine.

You edit the readable source. Your AI gets the dense version. 36%+ token savings, 100% meaning preserved.

Works for any LLM instruction file: CLAUDE.md, Cursor rules, Copilot instructions, system prompts, agent configs.

Requirements

Hybrid Script + AI TDD Workflow - AOJDEVSTUDIO

A revolutionary approach to Claude Code workflows that separates automation from AI reasoning

🎯 The Problem We Solved

Current Claude Code workflows (including awesome-claude-code examples) suffer from:

  • Context bloat: 200+ line instruction files
  • Mixed concerns: Automation + reasoning in single commands
  • Inconsistent execution: Claude parsing mechanical operations