Repository navigation
Releases
v3.0.0
3.0.0 (2026-11-08)
BREAKING CHANGES
-
the validate tool is no longer advertised or callable. Use run_package_scripts_batch with the narrowest allowed script (for example check) instead, and search_code for merge-conflict markers. Update saved prompts and agent instructions that name validate. See docs/MIGRATION.md.
-
fix(validation): check an object's own properties after an anyOf match
validateToolArguments returned as soon as one anyOf branch matched, so the properties declared beside the anyOf (for search_code: paths, globs, context, maxResults, maxBytes) were never checked against the schema. They fell through to ad hoc checks inside the tool, with different messages and a failed request record.
A matching branch now falls through to the schema's own properties. When no branch matches, the error comes from the branch that got past the presence check, so queries sent as a string reports a type error instead of "'query' is required", and two missing alternatives are named once. Type errors now use the right article and name the received type.
- refactor(mcp): move argument validation into src/validation.ts
Moves validateToolArguments, its helpers and types, and the isRecord guard out of mcp.ts. No behaviour change: the code moved verbatim, and the validation tests now import it from the new module.
-
docs(audit): merge the audit notes into docs/audit.md
-
fix(read): add typed errors for read_range failures
-
feat(commands): add batch-wide ok exit codes
-
fix(telemetry): classify expected 405s and capture type details
-
feat(telemetry): summarize MCP requests by method
-
feat(files): suggest paths for missing tool inputs
-
feat(batch): summarize successful script output tails
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
- feat(search): accept single-string filters and queries
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
- feat(search): add per-file counts to truncated results
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com
-
feat(telemetry): compact analytics summaries
-
feat(read): add session-aware repeat hints
-
refactor(mcp): extract telemetry error classification
-
refactor(mcp): extract analytics formatting
-
refactor(mcp): extract per-tool handlers
-
feat(guidance): add search footer experiment
-
feat(tools): trim tool descriptions
-
test: isolate package script tests
-
chore(ci): report Node test coverage
-
docs: clarify ignored-tree search boundaries
-
test: cover optional git grep policy
-
feat(search): identify ignored path scopes
-
fix(telemetry): type command and integration failures
-
refactor(mcp): extract metadata and telemetry modules
-
refactor(mcp): extract protocol helpers
-
docs(audit): reconcile completed refactor notes
-
fix(telemetry): calculate even medians correctly
-
fix(telemetry): count multi-query search results
-
fix: clarify stress-test edge cases
-
docs: uppercase audit and telemetry guide names
-
The validate MCP tool has been removed. Use run_package_scripts_batch to run configured validation scripts.
v2.2.0
v2.1.0
v2.0.0
2.0.0 (2026-10-29)
BREAKING CHANGES
- run_command_batch and run_package_scripts_batch return an object { ok, onError, summary, items, truncated }. Every item has status success, failure or skipped with a reason and a ran flag. Command batches default to onError continue, script batches to stop. Items may set okExitCodes.
- validate the whole batch before running anything; timeouts keep partial output
- add a policy engine: blacklist matching ignores global options before the subcommand; built-in rules for git, package managers, gh, rg and find; per-profile commandPolicy rules
- add protected paths for apply_changes (.git, .env*, .npmrc by default; profile protectedPaths)
- authenticate before reading the request body
- share one process runner between commands and package scripts
- migrate legacy npm.allowedScripts profiles with a warning
- document the trust model: agent-dir is not a security boundary against a hostile agent
- feat: configurable protected paths in CLI and setup, mutating-script warnings, per-call batch timeouts
- add --protect and --unprotect to profiles and launch overrides; ask for extra protected paths in the setup wizard; show them in the startup banner
- warn when allowed scripts look like formatters or fixers that bypass apply_changes
- add timeoutMs (1000-600000 ms) to run_command_batch and run_package_scripts_batch
- refresh the diagnostic telemetry wording in the setup wizard
- close Phase 3 in the audit progress file
-
Phase 3
-
feat!: object search results, git-aware file list, scoped search with ripgrep or built-in backend
-
search_code, find_symbol, find_references and apply_changes return objects ({ items, returned, truncated, truncationReason, backend, ... } and { items, dryRun }) instead of arrays, so truncation is always reported and outputs are valid at protocol 2025-11-25.
- file list: git ls-files in git work trees (honors .gitignore), bounded walk otherwise; no depth cap
- search_code: paths, globs, context, caseSensitive, includeGenerated; docs and config files are searchable; lockfiles and minified files skipped by default
- ripgrep backend when installed with a built-in fallback that returns the same shape and limits; built-in rejects nested-quantifier regexes
- find_files matches bare names at any depth and reports exact truncation
- find_symbol covers more languages and is case-sensitive; find_references handles $ identifiers
- banner and project_context report the active search backend and the blacklist
- tests for both backends (ripgrep parity tests skip when ripgrep is absent)
- feat!: read_range with EOF info, multi-range reads and plain-text output; compact JSON text blocks
- read_range now reads whole files up to 20 MB and returns eof, totalLines and nextStartLine; the text block is plain text with a header instead of JSON, the default budget is 16 KB, binary files are rejected, and ranges[] reads several ranges of one file. Tool result text blocks are compact JSON.
- fix built-in search returning a phantom empty trailing line as context (found by the ripgrep parity test)
- record search progress in docs/AUDIT-PROGRESS.md
-
transfer to other machine
-
feat!: safer apply_changes, rebuilt validate and per-script arguments
-
validate returns { level, ok, diagnostics, scripts, scriptsRequested, truncated, note } with script results in the batch item format; unknown levels are rejected and level scripts/full without scripts runs the default scripts or fails with the allowed names. A patch that matches several places is rejected unless count is set.
- apply_changes: line numbers for ambiguous patches, closest-line hints for missing text, writes via temporary file keeping the file mode, byte-exact rollback including binary files, clean errors for missing files
- diagnostics: ignore Markdown headings, accept JSON with comments in config files, skip binary and oversized files, use the git-aware file list
- run_package_scripts_batch accepts { script, args } for scripts listed in scripts.argumentScripts
- remove dead code; document reading, editing and validation behavior
- close Phase 4 in the audit progress file
- feat!: one payload per tool result, remove Serena and ast-grep
Emit each tool result once, as a compact JSON text block (plain text for
read_range). The duplicate structuredContent copy and the output schemas and
titles are gone, so tools/list drops from 29.2 KB to 11.85 KB with every
optional integration enabled, and a result is 1.01-1.13x its maxBytes instead
of 1.84-2.08x.
Remove the Serena and ast-grep integrations: together 4% and 0% of measured
tool calls, while Serena contributed about 8.6 KB to every tools/list.
Existing profiles are migrated in memory with a warning. fitAnalyticsResult
now budgets the whole response envelope, which previously overshot maxBytes
by up to 2.3x.
Phase 5: one capability model feeds initialize, server/discover, the
capabilities resource and project_context; guidance is a short decision table
without REQUIRED wording; arguments are validated against inputSchema before
dispatch and the message names the argument; unknown tools suggest the closest
names; search_code gains multiline. tools/list telemetry records toolCount and
toolSetHash so size changes are attributable.
-
structuredContent is no longer returned; read content[0].text.
The serena_* and ast_grep_search tools are removed, and disabledSets
serena/ast_grep plus their disabled tool names are stripped from profiles. -
test: cover the protocol matrix and document the 2.0 breaking changes
Phase 6. Close the coverage gaps in the section 7 test plan:
- call every advertised tool at both protocol versions and assert the result
shape (single text payload, no structuredContent, complete resultType) - reject an unknown argument on every advertised tool and name the valid ones,
plus the missing-required case - tolerate malformed and empty JSONL in telemetry reads and prove the read
creates or modifies nothing
Argument validation now reports a misspelled argument before a missing one,
since that is the more actionable signal, and a missing root argument is named
without the "arguments." prefix. 195 tests pass.
Also record the Phase 6 outcome in the audit log and ship docs/MIGRATION.md,
which lists every breaking change in 2.0.
- docs: align table separator rows with the padded columns
Formatting only: the separator rows in the 6.03 table and the MIGRATION tables
now match the column widths already used by their content rows. Rendering is
unchanged.
A formatter had also rewritten a template literal in src/mcp.ts into a style
Biome rejects, which failed npm run check; that file is back to the committed
content.
- feat: instrument guidance variants and close the remaining audit items
Phase 7 plus the leftovers from earlier phases.
7.01 is now measurable instead of speculative: AGENT_DIR_GUIDANCE selects
between the decision table (default) and a terse paragraph, every
initialize/server/discover request records guidanceVariant, mode=summary counts
them under efficiency.guidanceVariants, and every tool call records argShape
(booleans for regex, paths, globs, context, multiline, ranges, dryRun, limit).
2.07 completed: skippedCount for batch tools, integration/integrationStatus for
integration-backed tools, argShape for every call. Fixes a real gap found while
doing it: toolCount and toolSetHash were being dropped by the telemetry privacy
allowlist and never persisted.
2.09 gained a distinct policy_denied category; guardrail and protected-path
rejections were being counted as authorization failures.
1.07 added a conformance suite driven by the official @modelcontextprotocol/sdk
client (dev dependency only): initialize, ping, tools/list, tools/call reading
the single text payload, and an isError result.
1.08 and 4.03 verified done. 7.02 declined (re-adding an AST parser contradicts
this release), 7.03 gated on the 6.03 behavioural window, 7.04 stays deferred by
D-02; 2.05, 2.09, 2.11 and 4.11 keep their reasons in the audit log. 197 tests.
- refactor(telemetry): derive the privacy allowlist from the event types
The anonymous-event sanitizer was a hand-written allowlist, so a field added to an
event interface was silently dropped on the way to disk. That already happened once:
toolCount and toolSetHash were recorded but never persisted. SAFE_ERROR_CATEGORIES
had the same problem as a second hand-maintained set, which is why policy_denied was
missing from it.
- Rule tables per event type, typed with a mapped type over the event interface, so
a field without a rule and a new event type without a table both fail the build. - Error categories, tool outcomes and argument-shape keys are declared once as const
tuples in types.ts and reused by the classifier and the sanitizer. - classifyTelemetryError, reasonCategory, the rejected-tool-call category and the
event errorCategory fields now use TelemetryErrorCategory instead of string. - Two regression tests: one round-trips the fields that were previously dropped, one
covers coercion of values that bypass the types.
- docs: record the shell-search removal decision and its measurements
Measured from the local telemetry store: command-based search costs about 1.4x search_code per call (5,849 vs 4,066 B), the naive rg over ignored trees returns more bytes than the tool (1,644 vs 1,127 B for the same nine matches), and read_range is the expensive tool at 8,103 B per call.
The removal buys enforcement, bounded output and gitignore awareness, not tokens: run_command_batch stays in tools/list, so nothing shrinks. Four gaps recorded: ignored-tree discovery, the git grep bypass, one query per call, and the docs example that still recommen...