context-kit¶
Context-engineering plugins for GitHub Copilot, APM, and Claude Code — get the right information in front of your agent, and keep the wrong information out.
context-kit is a context-engineering plugin pack for GitHub Copilot CLI,
APM (Agent Package Manager), and Claude Code. Its
spine is a set of complementary retrieval modalities — lexical, structural,
code-intelligence, structured-data, history, semantic (RAG), graph, and durable
memory — plus a routing agent that picks and composes them. Default workflows
keep indexes and reviewed records on your machine; configured model endpoints,
providers, and allowlisted commands can reach external systems. Around that
retrieval spine, eleven shipped plugins add
orchestration, steering, read-only verification and change-impact analysis,
controlled runtime evidence, cross-session handoff, and authoring quality.
Why context-kit¶
-
Retrieval, done right
A routing agent picks the cheapest modality that answers the question — exact-token, code-shape, schema-path, git history, or meaning — and composes them: narrow lexically, rerank by vectors, pin exact lines.
-
Local-first semantic search
local-ragchunks and embeds a corpus with ollama, indexes it with turbovec, and can fuse FTS5/BM25 lexical candidates with vectors using deterministic reciprocal-rank fusion. -
One source, three hosts
The same plugins install directly into GitHub Copilot CLI (
copilot plugin), Microsoft's APM (apm install), and Claude Code (/plugin) — no manual copying of skill folders. -
Spend tokens where they count
plan-executekeeps planning frontier-quality and delegates bulky work to a cheaper executor.context-steeringplaces each rule at the cheapest layer that still fires. -
Verify before you trust
A read-only
verifierchecks repository claims withfile:lineevidence, while/analyze-impactmaps a proposed change's prospective blast radius without implementing or executing it. -
Escalate to runtime evidence
runtime-evidenceruns only exact, pre-reviewed command IDs from a user-owned allowlist when static verification cannot settle a runtime claim, then returns bounded artifacts toverify. -
Carry context across sessions
context-handoffmanually writes and resumes bounded, verified task state, validating repository identity and freshness before saved claims are trusted. -
Recall durable project memory
memorypreserves reviewed evidence, primary memories, cue anchors, freshness, and supersession. An optional MemPalace adapter adds project-isolated provider recall and opt-in lifecycle capture. -
Author more like these
plugin-forgescaffolds portable plugins, keeps manifests in lockstep, and enforces a deterministic catalog discovery-quality budget.
Install in seconds¶
See Getting started for the full plugin list, requirements, and your first search.
Operate with clear boundaries¶
- Cookbook — six task-oriented journeys that compose retrieval, verification, continuity, and orchestration.
- Security and trust — decide what can execute, what leaves the process, and where retained data lives.
- Troubleshooting and lifecycle — verify first run, diagnose refusal modes, update safely, and uninstall.
Pick a modality by what you know¶
| You know… | Modality | Example |
|---|---|---|
| an exact token / regex / filename | lexical | rg -t py 'def login' · fd -e ts |
| the code shape, not the text | structural | sg -p 'logger.debug($$$)' --lang js |
| the symbol — its defs / refs / callers | code-intelligence | global -xr parseConfig · ctags -R |
| a JSON/YAML schema path | structured-data | jq '.scripts' package.json |
| when / why code changed | history | git log -S'retry' -- src/ |
| only the meaning / intent | semantic (RAG) | rag query "how do we handle backoff" --name notes |
| the corpus is an Obsidian vault | graph | obsidian backlinks file="Project X" |
| a prior decision, constraint, procedure, or episode | durable memory | /recall-memory "why did we change retries?" |
The retrieval-strategist agent (or the
retrieval-strategy skill) chooses which one fits — and they compose.