unsloth/.github/scripts
Daniel Han 264f1a04f8
Add Local Agent Guides CI (#6547)
Boot `unsloth run --disable-tools` against a small GGUF and drive each
supported coding agent (claude, codex, hermes, openclaw, opencode, pi)
through its documented `unsloth connect <agent> --no-launch` recipe, so
the connect flow in unsloth_cli/commands/connect.py stays exercised end
to end and regressions surface as a failing check.

Per-agent matrix, three jobs:
- connection: assert a non-empty, error-free reply to a trivial prompt
- file-edit: a two-turn create-and-run hello.py test (dispatch/schedule
  only, skipped on pull_request)
- prompt-cache: verify llama.cpp prefix-cache reuse across requests

The GitHub-hosted runners are CPU-only, so each request is trimmed to
the smallest prompt that still drives the recipe: claude with --tools to
drop unused tool schemas (--allowedTools only gates permission, it does
not shrink the prompt), hermes with an empty platform_toolsets.cli, and
openclaw with a minimal agent definition. hermes and openclaw run a
multi-turn tool loop in file-edit that a CPU runner cannot finish in
time, so those two cells are best-effort; their endpoint wiring is still
hard-gated by the connection job.

A preflight step HTTP-checks each agent's API dialect before install so a
server-side contract regression is reported separately from agent or
guide drift.
2026-06-22 04:21:48 -07:00
..
agent-guides-drive.sh Add Local Agent Guides CI (#6547) 2026-06-22 04:21:48 -07:00
agent-guides-install.sh Add Local Agent Guides CI (#6547) 2026-06-22 04:21:48 -07:00
assert-llama-loads.sh studio: pick a macOS llama.cpp prebuilt that loads on the host OS (#5883) 2026-05-31 00:59:25 -07:00
assert-prompt-cache.sh Add Local Agent Guides CI (#6547) 2026-06-22 04:21:48 -07:00
ci-connect-prompt.txt Add Local Agent Guides CI (#6547) 2026-06-22 04:21:48 -07:00
ci-min-system-prompt.txt Add Local Agent Guides CI (#6547) 2026-06-22 04:21:48 -07:00
hf-download-with-retry.sh Windows installer: fix DiskPart UAC mid-install, drive-root cache, and spurious unsloth.exe rename warning (#6296) 2026-06-22 03:09:08 -07:00
serve-unsloth-run.sh Add Local Agent Guides CI (#6547) 2026-06-22 04:21:48 -07:00