Skip to content

SLM's agents and skills reach memory from the shell in every harness - #350

Merged
varun369 merged 5 commits into
mainfrom
fix/agents-cli-fallback
Nov 21, 2026
Merged

varun369 merged 5 commits into
mainfrom
fix/agents-cli-fallback

Conversation

@varun369

Copy link
Copy Markdown
Member

Where local MCP is blocked, or never existed, SLM's agents and skills now teach the shell route.

  • All four agents have Bash and a "When SLM's MCP tools are not in your tool list" section (slm status first; slm tool list|describe|<name> --json). /slm-loop names slm tool slm_loop_run.
  • One fragment (plugin-src/fragments/no-mcp-cli.md) sits in all 17 skills and in the shared rules (Copilot instructions, universal AGENTS.md, Codex AGENTS.md), so it reaches Claude Code, Cursor, Copilot, VS Code, Codex, Antigravity, Hermes and Muse. llms.txt names the route too.
  • scripts/sync-skill-fallback.mjs is the first build step; build-all-plugins --check fails on any drift, including the generated slm-cli skill.
  • The two bot skills may now run slm.

Depends on the JSON-everywhere PR: merge and release them together.

🤖 Generated with Claude Code

varun369 and others added 5 commits November 21, 2026 13:21
…cked

Every SLM agent now has Bash and a short "When SLM's MCP tools are not in your
tool list" section: run `slm status` first, never report SLM unavailable because
an MCP tool is missing, and call any tool with `slm tool list`, `slm tool describe
<name>` and `slm tool <name> --json '{...}'` (shortcuts `slm recall` / `slm
remember`). The memory advisor had no Bash at all, so its fallback could not run.
`/slm-loop` and the loop runner name `slm tool slm_loop_run`, and the memory
advisor's stale "no CLI form returns a session_id" line now points at `slm tool
session_init`. Agents a user edited by hand are kept by `slm upgrade-hosts` as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mory

One fragment, plugin-src/fragments/no-mcp-cli.md, now sits in all 17 skills and so
ships to Claude Code, Cursor, Copilot, VS Code, Codex, Antigravity, Hermes and Muse.
It says to run `slm status --json` first, never to report SLM unavailable because an
MCP tool is missing, to call any tool with `slm tool <name> --json`, and how every
command answers in JSON (`--json`, `slm --json <command>`, `SLM_JSON=1`).

scripts/sync-skill-fallback.mjs is the new first build step (with --check), and the
slm-cli generator writes the same fragment, so no skill can drift. The two bot skills
may now run `slm` (Bash(slm:*)), which they could not before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… to SLM

The same no-MCP fragment now sits inside the SuperLocalMemory section of the
shared rules (the Copilot instructions and the universal AGENTS.md) and of Codex's
AGENTS.md, written there by the sync step, so a harness that reads rules rather
than skills learns the route too. llms.txt says how any agent, bot or framework
that can run a command reaches every tool and command in JSON.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…li cannot go stale

The fragment now states the real reply shapes: `slm tool` prints the MCP tool's own
result on success and `success: false` with `error.code`/`error.message` on failure;
other commands answer in the JSON envelope; `slm tool list` lists the tools available
now (pictures and documents once turned on). `sync-skill-fallback --check` (and so
`build-all-plugins --check`) now fails when the generated slm-cli skill lacks the
current fragment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e exit codes and the one streamed export

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@varun369
varun369 merged commit f6f4cd5 into main Nov 21, 2026
8 checks passed
@varun369
varun369 deleted the fix/agents-cli-fallback branch November 21, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant