Context
context gives agents and humans one command for the repository facts they usually gather with many shell calls.
It has two producers:
context gitfor branch, PR, working-tree, diff, and recent-commit context.context stackfor deterministic language, ecosystem, tooling, and framework detection.
The same producers are exposed through context mcp, so agent harnesses can call git_context, stack_context, command_help, and opencode_debug as MCP tools.
Install
Section titled “Install”On Arch, install the context-git AUR package:
yay -S context-gitBuild the binary locally with Bun:
bun installbun run buildThe compiled binary is written to dist/context.
Quick Start
Section titled “Quick Start”context gitcontext git --jsoncontext stackcontext stack --jsoncontext mcpDocumentation Split
Section titled “Documentation Split”Generic CLI and MCP behaviour lives here. OpenCode plugins that inject this context into sessions live in timmo001/opencode-config, with dotfiles-specific integration notes in the dotfiles docs.