Skip to content

LLM knowledge cutoff compensator for AI coding agents — corrects outdated versions, deprecated APIs, renamed packages, and removed CLI commands

License

Notifications You must be signed in to change notification settings

Soju06/knowpatch

Repository files navigation

knowpatch

LLM knowledge cutoff compensator for AI coding agents. Corrects outdated versions, deprecated APIs, renamed packages, and removed CLI commands — so your agent stops confidently using last year's code.

Features

Knowledge Corrections
Renamed packages, changed APIs, new config formats, current model IDs
Detect Hook
Scans prompts and injects only relevant corrections automatically
Multi-Platform
Claude Code, Codex CLI, Gemini CLI from a single install
Version Verification
Never caches versions — always verified via package manager
Auto Update
Checks registry for new corrections on each run
Zero Config
One command to install, corrections work immediately

Quick Start

npx knowpatch

interactive

Select platforms, done. Corrections start injecting into your agent automatically.

How It Works

User prompt → Detect hook scans keywords → Matches correction file tags → Injects relevant entries into agent context

The hook reads each prompt and matches against correction file tags. Only relevant entries are injected — not the entire correction set.

What It Corrects

File Covers
frontier-models.md Claude, GPT, Gemini model IDs
open-source-models.md Llama, Mistral, DeepSeek, Qwen, GLM, Kimi
cli-tools.md shadcn, tailwind, eslint, vite
frameworks.md Next.js, Svelte, Nuxt, Django, FastAPI
javascript.md Zod, React, TypeScript
python.md Pydantic, Ruff, uv, pip
platforms.md Supabase, Vercel, Cloudflare
runtimes.md Node.js, Bun, Deno, Python, macOS

CLI

Running knowpatch with no arguments opens an interactive menu. Subcommands are also available:

knowpatch install             # install skill + hook
knowpatch update              # sync installation, check for updates
knowpatch uninstall           # remove skill and hooks
Options
Flag Description
--scope user|project Installation scope (~/ or ./)
--platforms claude,codex,gemini Target specific platforms
--force Overwrite existing (install only)
--reconfigure Re-select platforms (update only)

Development

bun install && bun run dev    # dev mode
bun run build                 # build
bun test                      # test

License

MIT

About

LLM knowledge cutoff compensator for AI coding agents — corrects outdated versions, deprecated APIs, renamed packages, and removed CLI commands

Topics

Resources

License

Stars

Watchers

Forks

Contributors