v0.5.0 — sens init, an answering hook, and a skill
Added
sens init— one command to set sens up in a project: builds the index, installs the skill into.claude/skills/sens/, and wires thePreToolUsehook into.claude/settings.json(merging, never clobbering existing settings). This is the recommended setup path; the MCP server stays available for hosts that only speak MCP.- Skill — sens now ships as a Claude Code skill (
sens skillprints it, or--writeinstalls it). Unlike the always-loaded MCP tool schemas, a skill's guidance only enters context when relevant, so it costs no tokens on turns that don't touch code. It is composed from the same working rules assens rules.
Improved
- The hook now answers, not just nudges. When the model is about to grep for a symbol sens knows, the hook substitutes the grep and returns the full
who_usesresult; a Read of an indexed file gets that file's outline injected; anything sens can't answer falls back to a one-line reminder. - One shared query path (
runQuery) now backs the CLI, the MCP server and the hook, so usage logging and output formatting are identical across all three — andsens usagerecords CLI- and hook-driven calls too, not only MCP.
Fixed
sens --versionreported a hard-coded0.0.1regardless of the real version; it now derives frompackage.jsonat build time and tracksnpm version.
npm: npm i -g sens-mcp@0.5.0 · Full changelog in CHANGELOG.md