Repository navigation
v0.3.0
[v0.3.0] -- 2026-11-01
Security, install and deletion behaviour
This release is the first in which ms deletes through sync, writes agent
config files, opens a TCP port and runs tools named by a skill. Read this
section before upgrading.
ms syncnow deletes. A skill deleted on one side after a sync is deleted
on the other, on archive, git and JFP cloud remotes. v0.2.3 never deleted in a
sync. Two limits apply. A sync that could not read every skill deletes
nothing, lists what it held back and exits non-zero, even with--force. A
sync that would delete skills because one side is empty is refused, with the
count, unless you pass--force. Deletions sent by a JFP server are applied as
sent.- What
ms syncandms index --from-rutake from a repository is now checked.
With a ru remote,ru.auto_indexis on by default, and each pulled repository's
SKILL.mdis imported during sync. In v0.2.3 that import replaced any skill with
the same id, including one you wrote. Now a file replaces a skill only if that
skill came from that file, or with--force. A file that leaves its repository,
can't be read or has frontmatter that won't parse is left out and reported, and
the rest are still imported. A likely secret is reported, and the file is still
imported, as inms index. After a sync that pulled or cloned on any remote,ms
also reindexes every ru repository, not only the ones that changed, under these
same rules. Setauto_index = falseto stop the import and that reindex. ms setupnow edits agent config files. It adds anmsentry to
mcpServersin the config of each detected agent, for example
~/.claude/config.json,~/.codex/config.json,~/.gemini/config.jsonand
~/.cursor/settings.json. v0.2.3 skipped this step. The other settings in the
file stay, and no backup is written. If a file can't be read, isn't valid JSON
(comments or a trailing comma, say) or isn't an object,ms setupnames the file
and the reason, changes nothing and exits non-zero. Use--dry-runto see what
it would change.ms mcp serve --tcp-port <port>now listens. v0.2.3 accepted the flag and
ignored it. The listener binds 127.0.0.1 and has no authentication, so any local
process can call its tools. The MCPconfigtool is read-only: it offersget
andlist, andsetis refused. Usems config set.- Evaluating a skill can run a program.
::: if :::blocks,requiresand
context.toolsare now evaluated byms load, MCP load andms requirements,
and a version check runs<tool> --version. A tool name must be plain: it
starts with a letter or digit and holds only letters, digits and._+-. It is
looked up only in absolutePATHentries, and--versionruns only if the
safety gate allows it. Without dcg nothing runs: a version condition reads as
unmet, so its block stays out, and a requirement is reported as found with no
version. ms loadapplies overlays from<ms_root>/overlays. An overlay can replace,
remove or append blocks in one skill or, withskill_id: "*", in all of them.
Overlays are not scanned, and a malformed one is skipped with no message.
ms_rootis the nearest.msdirectory, so a repository you work in can ship
overlays.- A repository's
.ms/config.tomlcan no longer choose what runs or what guards
it. This closes a hole that was also in v0.2.3, where a repository you worked in
could name the safety binary, turn approval off or pointmsat its ownru,
cassorcm. Inside a project's config,msnow ignoressafety,security
andupdate,ru.ru_path,cass.cass_path,cm.cm_path,cm.default_flags,
agent_mail.endpoint,search.api_endpointandsearch.api_key_env, and warns
once. Set them in your own config, or throughMS_CONFIG,--configor the
environment.ms config setandms config addrefuse them in a project's
config, andms initno longer writes them there. - Signed bundles are verified instead of refused.
ms bundle installchecks
signatures against the Ed25519 keys in<ms_root>/trusted_keys;--no-verify
installs an unsigned or untrusted bundle.ms bundle verifyis new. It reports
valid: truefor an unsigned bundle, withsigned: falsebeside it, so read
both.ms bundle create --signadds its own key totrusted_keys. Building a
bundle refuses a symlink that leaves its root and warns about likely secrets. ms indexrefuses a skill file that is a symlink out of its directory, and
warns about likely secrets. It does not stop for a secret.ms security scantakes a skill id, file or text as its argument. With no
input it scans every indexed skill, and it fails if any of them can't be read.
With nothing to scan it fails, as v0.2.3 did. Bare text must be two or more
words; a single word that names no skill or file is refused, so use--inputto
scan it as text. A persisted scan with no--session-idnow gets ascan-<uuid>
id, where v0.2.3 refused it.- ACIP classification is stricter. It matches more injection phrasing and
detects base64 and HTML-comment smuggling, so content that passed before can be
quarantined now. ms testruns arun:step only if the safety gate allows it. With no dcg
installed the step doesn't run, and the refusal says why.ms testexits non-zero when a test fails or times out, in human and robot
output. v0.2.3 and earlier exited 0 and left the failures in the report. The robot
document doesn't change, andstatusis stillpartial. A script that ignored the
report and relied on exit 0 will now see the failure.ms meta updateis new. It mines CASS sessions and usage into thems
skill. Each mined line is redacted, and refused if a detector still fires, and a
pattern with any taint label is refused whole. The output reportslines_refused
andcass_error, with statuspartialwhen either applies.
ms buildwrites a synthesizedSKILL.mdwith an anti-pattern section taken
from session text. That text can't close its code block or start a heading, and
redaction stays on unless you pass--no-redact. Messages the injection scan
flags are left out of that section, as they are from patterns, and out of
ms antipatterns mine. In v0.2.3 that command mined them.--no-injection-filter
brings back sensitive text, never injection. A session is now redacted before
mining as well as in the finished file, so a cut can't leave part of a token in
SKILL.md,patterns.jsonorevidence.json.ms antipatterns mineredacts
token-shaped secrets, which v0.2.3 printed, and so doesms cross-project, which
printed session text. Redaction catches only the shapesredact_secretsknows.
mine --savestarts writing in this release and refuses a store it can't read.
An excerpt in the guided build is filtered and redacted the same way. Sessions
marked exemplary skip the quality threshold. Review what these commands wrote
before you share a skill.ms config resetrestores defaults, safety keys included.ms safety checknow
logs each check, andms safety packslists packs.ms doctorchecks bundle blob
integrity. Backup id and path checks moved to the shared path policy, as strict as
before, with different error text.
Other changes
- API embeddings are now tied to the model and endpoint that produced them
(#218). Every
API configuration used to store its vectors asapi, so movingapi_modelor
api_endpointto another space of the same width kept the old vectors and
ranked new queries against them with no error. Each configuration now has its
own identity. Rotating a key in the URL re-embeds nothing, because credentials,
query and fragment stay out of the identity. embedding_backend = "local"now works. It hashes character 3-grams and
4-grams plus word unigrams and bigrams, where it used to return
NotImplemented. An.onnxpath still returnsNotImplemented, because the
ONNX runtime is not linked.ms indexreuses an embedding when its content hash, backend and dimensions
are already stored, and records each skill'sscripts/,references/and
tests/files.ms index --forceclears the resolution cache first.- Hybrid search keeps the configured BM25 and semantic weights when
kis
applied. They used to fall back to the defaults. ms suggestnow gives its bandit the real time of day, project size and tech
stack, applies the suggestion budget and leaves skills in cooldown out of the
active list.ms load --autoscores with the git branch, recent commit
subjects, environment signals and past use, and a threshold at or below zero
keeps every skill.ms outcomereports contextual and aggregated rewards.ms buildwritesevidence.jsonbeside each skill, and the commit path records
it inskill_evidence.ms validateruns the 19-rule engine, and--fix
applies auto-fixes and revalidates.--lintmakes lint errors count against a
clean result and can raiseno-secretsandno-prompt-injectionto errors.- Bundle updates name their conflict strategy.
--forcebacks up and replaces;
without it, a conflicting update stops before any write, and a failed write
restores from backups.ms bundle createreadsbundle.yaml. - Commands that were placeholders or ignored their flags now work:
ms requirements <skill>and--all,ms antipatterns show,list,linkandmine --save,
ms dedup merge(it merges content into the primary), andms index --watchin
human output. New:ms coverage,ms mark,ms cm add,ms bundle searchand
thems inbox--registerand--send-toflags. ms loadpacks with a CELF greedy pass and follows mandatoryrequires
transitively, so the same budget can select different blocks.total_tokensis
now a sum.ms searchgains--explain, a query cache and a context boost.ms importhonours format hints, which can change how any file is parsed.
Older specs migrate through the 0.1 to 1.0 path. Frontmatterextends,includes
andreplace_*are compiled. Lint auto-fix writes a description where it used to
write a TODO.ms fmtfails when a skill doesn't survive a roundtrip.ms validatecounts a
roundtrip failure againstclean.ms cm statusexits 0 withavailable: false
when cm is missing.--roboterrors are JSON on stdout for every non-human format, and JSON output
follows the global format.MS_ROBOT,MS_ROBOT_FORMAT,MS_OUTPUT_FORMATand
MS_CONFIGare read from the environment. Some MCP error responses change code
from -32700 to -32603.- Bandit and cooldown state moved from the user data directory to
ms_root, which
is the same place unless you run inside a project with its own.ms. There,
nothing is migrated and that history starts again. Fsqlite warnings are hidden
below-vv. - Deleting a skill now runs in one transaction, so a failure can no longer leave
a skill without its evidence or evidence without its skill. If its tombstone
can't be written, the delete stops and the skill stays. A pack file that can't be
written fails that skill's index with the reason, andms index --forcewrites it
once the path is clear. ms indexcheckpoints the database's write-ahead log when it finishes, so later
commands don't replay that log each time they open the database.ms show
reportsindexed_slices_count, counted from the skill's pack file.ms bundle install --layerrefuses a layer it doesn't know, before anything is
written. It used to install to the project layer.- Embeddings are computed with SIMD, so float rounding can shift a search score
slightly. ms listfilters before it paginates, so--limitand--offsetapply to the
filtered list, and it reads at most 10,000 skills.ms --robot syncprints one JSON document. After a sync that changed anything,
it used to print the reindex result first, so a script reading stdout saw two. That
result is now atauto_reindex.index, andauto_reindex.successis false if the
reindex refused a file.ms sync --forcealso applies to that reindex.ms synchuman output gains a Summary line, and says the reindex finished where it
said the reindex succeeded.ms prunewith no tracker now says "beads (br/bd) not
available (install beads_rust or configure PATH)".ms updateretries when the kernel reports the new binary as busy, and treats a
bad zip entry name as a validation error. A credential counts as authenticated
only while it is unexpired.- The installer removes its temp directory, which used to keep a copy of the
release archive after every install, and reads the latest tag from minified
GitHub API JSON. - Dependencies: tantivy 0.27, lru 0.19, rusqlite 0.41, zip 9, parking_lot 0.13,
vergen-gix 10, and a compatible refresh of the lock.cargo auditreports no
vulnerabilities and six unmaintained-crate notices. The FrankenSQLite engine
stays at 0.4.7, because no newer published version has been cleared for this
release; itsfsqlite-typesandfsqlite-errorcrates, which ms also uses
directly, move to 0.4.9 and 0.4.12. - Upgrade note: run
ms indexonce if you use the API backend. Rows written
before this release say onlyapi, which can't be proved current, so the next
index recomputes them. Until then, semantic search for that configuration has
no vectors to rank rather than the wrong ones.
Known limitations
- The injection scan reads message text and tool results, not tool call arguments.
- Redaction can rewrite ordinary text: "bearer token" becomes
bearer [REDACTED], and
a long path can be replaced whole.ms buildalready did this to finished files;
ms antipatterns mineandms cross-projecttext now get it too. ms index --watchin a non-human format polls once and exits 0.- A
load_skilltest step passes on a stand-in skill when the real one is missing
or can't be read. - A bundle built with
--from-dirreports installed but doesn't reach the database
or search.ms bundle removecan list a skill as removed after its delete failed. ms doctorprints OK with 0 verified if it can't read the blob directories.
ms safety packsprints "(default packs enabled)" with no dcg installed.- A JFP pull with an invalid
specrebuilds the skill from its markdown, with no
message. - An error saving the dependency graph during
ms indexis dropped. BeadsClient::sync(), part of the library API, fails with br 0.2.18 and later.
It runs a barebr sync, which br now rejects without a mode. ThemsCLI
doesn't call it.- Built the same way as 0.2.3 (opt-level "z"),
ms indextakes about 12% longer
(302 s → 338 s on a 2,000-skill corpus). The release binaries, built at opt-level
3, index about 10% faster than 0.2.3's (see Performance). The index is about 18%
larger on disk (244 → 288 MB). - Qualification: the full test suite ran on this release's source before the
search fix (thems indexcheckpoint and the pack-file slice count): 3,652
passed (3,598 ran, 54 returned early because a tool they need,br,bvor a
live cass index, wasn't installed), 3 failed, 35 ignored. The same 3 fail the
same way on v0.2.3, and none fails only on this release. Two assume
/nonexistentdoesn't exist and one assumes a mode-000 directory can't be
read, and neither held where the suite ran. Run again with a pinnedbr, 37 of
the 39brtests ran and passed, and 2 passed only after their sync call
failed (see thesync()limitation above). The 9 tests that need a live cass
index and the 6 that needbvwere not run. After the search fix, the CLI,
end-to-end, integration and snapshot test targets ran again with the same
counts as the full run (621 passed, 31 of them returning early at a tool
check; the mode-000 test failed again), and so did the unit tests of the
changed modules (165 passed (165 ran, 0 returned early at a tool check), 0
failed, 0 ignored; expected = 1 for the 2PC test). One end-to-end test was
corrected after the full run, with no source change, and its file passes in
full. - ms's cass invocation and its
bvcode are unchanged since 0.2.3. The new
filtering and mining code is covered by fixture and unit tests, but the
cass-backed paths ofms cross-projectran in no test. A manual smoke of
ms cross-projectagainst a stand-in cass ran 16 commands, all exiting 0 with
no panic. The 9 command shapes of the end-to-end tests return empty results,
because the stand-in's session has no project; with--include-unknownthe
session is exported, mined and aggregated. The one graph change, a separator
line inms graphtable output, prints only on a rich terminal or with
MS_FORCE_RICH, so no gate test reaches it.
Performance
Measured against v0.2.3 on one Linux host, both built with the repo's release profile (opt-level "z"; medians; the
CLI rows use a 2,000-skill test corpus).
- Skill similarity is 83% faster, and vector search 59% to 66% faster.
ms searchtakes about as long as in 0.2.3: 204 ms per call against 197 ms (+4%), and 198 ms on an index that
0.2.3 built.ms indextakes 12% longer (302 s → 338 s for the corpus), and the index is 18% larger on disk (244 → 288 MB).- A skill block gated on a
tool:condition costs about 55 ms perms load. Without one,ms loadis as fast as in
0.2.3. - Built that way, the
msbinary is 5.8% larger. - A few micro-benchmarks on unchanged code moved −8% to +10%; probably code layout, not verified.
The release binaries below are built at opt-level 3 instead; v0.2.3's were built with the profile's "z". That makes
the binaries 63% to 101% larger than v0.2.3's, and the archives 59% to 74% larger. Measured release binary against
release binary (Linux x86_64), this release is faster:
| v0.2.3 | v0.3.0 | change | |
|---|---|---|---|
ms search, per call (60 queries) |
200 ms | 170 ms | −15% |
ms load --full, per call |
170 ms | 155 ms | −9% |
ms index, 2,000-skill corpus |
362–368 s | 327–328 s | −10% |
Medians of 5 interleaved rounds for search and load, and 2 interleaved runs per binary for ms index; the two
binaries' ranges don't overlap. One otherwise idle x86_64 host with 8 hardware threads and no AVX2 (Xeon E3-1245 V2),
load average about 1, files on disk (not tmpfs), both binaries at the same scheduling priority (nice −4, set by the host's
ananicy-cpp).
Assets and verification
Binaries and archives for Linux (x86_64, aarch64), macOS (Apple silicon, Intel) and Windows (x86_64). Each binary
and archive has a .sha256 file and a minisign signature (.minisig). SHA256SUMS (also published as
SHA256SUMS.txt) lists all of them and is signed too.
Each archive now holds README.md, LICENSE and CHANGELOG.md next to the ms binary (ms.exe on Windows). install.sh
and ms self-update pick the binary by name, so nothing changes for them.
Build provenance: built with dsr 0bb4d53 (pre-attestation build path; the attesting dsr refuses this repo's tracked
.cargo/config.toml: [env] CARGO_INCREMENTAL and an x86_64 -C linker rustflag, both present since v0.2.3). The
linux/amd64 binary is linked by zig cc at the glibc 2.28 floor, with -Z threads=4 as its only rustflag; the repo's
-C linker=cc and -C link-arg=-B/usr/bin are overridden for this build. Every other target builds with the same
-Z threads=4.
What was run before release:
- Linux x86_64 and aarch64:
ms --versionprintsms 0.3.0; aarch64 ran under qemu. Both need at most GLIBC 2.28. - Linux x86_64 runs on pre-AVX2 x86_64 CPUs (tested: Xeon E3-1245 V2, which ran the timings in Performance).
- macOS Apple silicon: run natively. macOS Intel: checked statically only, not executed.
- Windows x86_64: the PE header was checked only; the binary was not executed.
To check a download and the installed binary's version and help output, see
Published release consumer checks.