unsloth/unsloth_cli
oobabooga d994800bf3
Unsloth start: add local subagents for Claude Code, Codex, OpenCode and Pi (#7316)
* Add local subagents to Unsloth Start

* Add Claude local agent plugin

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Clarify local subagent descriptions

* Address local subagent review feedback

* Handle Claude MCP shutdown signals

* Address remaining local subagent review feedback

* Converge local subagent review feedback

* Fix child process cleanup, Pi error reporting, and subagent edge cases for PR #7316

- Stop surviving tool processes when the Claude child leader already exited,
  and fall back to terminate when a Windows taskkill reports failure
- Surface Pi message_end error events as tool failures instead of success,
  since Pi exits 0 on model/API errors
- Warn when the loaded GGUF variant cannot be verified so a silent fallback
  to a bare repo id does not go unnoticed
- Reject --as-subagent for openclaw and hermes before connecting instead of
  forwarding the unknown flag to the agent binary

* Pin the OpenCode subagent definition in the inline overlay

A project opencode.json outranks the OPENCODE_CONFIG session file, so a repo
defining its own agent.unsloth would field-merge over the session entry and
silently shadow the local subagent. Carry the definition in
OPENCODE_CONFIG_CONTENT, which outranks project config.

* Tighten comments in local subagent changes

* Fix Claude flag ordering and OpenCode install-time filter inspection

- Put --allowedTools before forwarded arguments so a passthrough -- does not
  turn it positional and drop the tool pre-approval
- Offer the OpenCode install before inspecting provider filters so a global
  or project allowlist is honored on the first launch

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Han <danielhanchen@gmail.com>
2026-07-22 03:52:36 -07:00
..
commands Unsloth start: add local subagents for Claude Code, Codex, OpenCode and Pi (#7316) 2026-07-22 03:52:36 -07:00
tests Unsloth start: add local subagents for Claude Code, Codex, OpenCode and Pi (#7316) 2026-07-22 03:52:36 -07:00
__init__.py Replace standalone Studio wording with Unsloth (#7221) 2026-07-19 00:47:04 -07:00
_inference.py Fix local CLI streamed generation error handling (#7135) 2026-07-20 23:14:58 -03:00
_tool_policy.py Keep server-side tools enabled under --secure (#6403) 2026-06-18 05:52:40 -07:00
claude_subagent_mcp.py Unsloth start: add local subagents for Claude Code, Codex, OpenCode and Pi (#7316) 2026-07-22 03:52:36 -07:00
codex_fallback_prompt.md Fix agent workspace isolation and Hermes one-shot resume (#7103) 2026-07-15 15:06:03 +02:00
config.py Reduce and tighten code comments and docstrings repo-wide (#6095) 2026-06-08 23:09:51 -07:00
options.py CLI: fix --local-dataset being parsed as a string instead of a list (#6357) 2026-06-16 02:32:26 -07:00
pi_subagent.ts Unsloth start: add local subagents for Claude Code, Codex, OpenCode and Pi (#7316) 2026-07-22 03:52:36 -07:00