unsloth/unsloth_cli/tests
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
..
test_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
test_inference_chat.py Fix local CLI streamed generation error handling (#7135) 2026-07-20 23:14:58 -03:00
test_pi_subagent.py Unsloth start: add local subagents for Claude Code, Codex, OpenCode and Pi (#7316) 2026-07-22 03:52:36 -07:00
test_start.py Unsloth start: add local subagents for Claude Code, Codex, OpenCode and Pi (#7316) 2026-07-22 03:52:36 -07:00
test_studio_cloudflare_flag.py Replace standalone Studio wording with Unsloth (#7221) 2026-07-19 00:47:04 -07:00
test_studio_password_prompt.py Replace standalone Studio wording with Unsloth (#7221) 2026-07-19 00:47:04 -07:00
test_studio_run_parallel_flag.py Fix Studio re-exec compatibility 2026-07-21 17:49:48 -03:00
test_studio_run_short_alias_clashes.py Reduce and tighten code comments and docstrings repo-wide (#6095) 2026-06-08 23:09:51 -07:00
test_studio_secure_flag.py Replace standalone Studio wording with Unsloth (#7221) 2026-07-19 00:47:04 -07:00
test_studio_verbose_flag.py Replace standalone Studio wording with Unsloth (#7221) 2026-07-19 00:47:04 -07:00