Skip to content

v0.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 02:51
· 7 commits to main since this release

Days 264–279. Named agents arrive, and several things yoyo used to do quietly it now refuses, asks about, or reports as a failure. A yoyo -p "..." run without -y now refuses a bash command the safety check warns about (rm -rf /home, git push --force) instead of running it; yoyo doctor exits 1 when a row fails; --save-session refuses to replace a file that isn't a saved session; a failed or interrupted -p run leaves the --output file as it was; -p exits 1 when stdout can't be written; /spawn --parallel -o is refused instead of dropping the path; and recursive deletes of the working folder, its parent, the root or a home folder ask however they are spelled. Those are why this is a minor bump. The headline addition is named agents: agent files in Claude Code's format (.claude/agents/, .yoyo/agents/) are loaded, listed by yoyo agents and /agents, and the model can delegate to them through a new agent tool, with project files gated by project trust. The rest of the span finishes moving config reading and writing onto the toml / toml_edit crates (the last hand-written TOML walkers are gone), gives /doctor a row that checks the provider really answers, and fixes how -p behaves when it is killed.

Changed (behaviour you will notice)

  • Bare -p refuses warned bash commands. With a prompt on the command line and no -y, a command the REPL would have asked about is refused; yoyo -y -p still runs it, and piped stdin without a prompt flag still runs it. The per-mode table is in the Safety docs page (#1231).
  • yoyo doctor exits 1 when a row fails (warnings still exit 0), so yoyo doctor && yoyo -p ... can stop a script. The REPL /doctor doesn't exit (#1244).
  • A failed or interrupted -p run never replaces or creates the --output file. Like curl -o, an exit-1 run, a Ctrl+C (130) or a timeout (143) leaves the file as it was and says so on stderr. Successful runs still replace it (#1218, #1220). --output-format stream-json now honours --output under the same rule; it used to write nothing and exit 0 (#1219).
  • --save-session <path> refuses to replace a file that isn't a saved session, checked at startup before any request (exit 2, nothing written). Re-running with your own session file still works. --output keeps replacing and now says replaced <path> (#1214).
  • -p reports error writing to stdout: <reason> and exits 1 when stdout can't be written (for example a full disk), instead of exiting 0 with an empty file or panicking (#1234).
  • /spawn --parallel -o <file> is refused before anything runs, naming -o, instead of running every task and writing no file (#1224). /spawn -o "out/a b.md" keeps a quoted path with spaces as one path (#1213).
  • An allow rule auto-approves a bash command only when every simple command in it matches an allow rule and the command is word-only in Codex's sense (no dynamic words such as substitutions, no VAR=value prefixes); anything else asks, saying an allow rule matched but it is asking anyway (#1202, step 2).
  • A folder with project agent files gets the trust prompt when an interactive session starts there, even with no .yoyo.toml (#1259).
  • A trusted project whose .yoyo.toml sets base_url prints which host your API key goes to (scheme, host and port only) on every run, so a git pull that changes it is not silent (#1188).
  • New default models: provider = "minimax" now defaults to MiniMax-M3 (MiniMax-M2.7 was retired) and provider = "cerebras" to gpt-oss-120b (llama-3.3-70b was deprecated). The xAI model list offers only grok-4.7; --model grok-4 still reaches the old id (#1147).
  • GPT-6 ids (GPT-6.2 Sol/Astra and every gpt-6*) go to OpenAI's Responses API, which they need for tool calling, and are listed as known OpenAI models (#1060).
  • The setup wizard, re-run on an existing config, edits it in place through toml_edit: it changes only the keys it manages, so your comments, order and other settings survive (it still writes a .bak first). If the existing file isn't valid TOML, the new file holds only the wizard's settings and yoyo prints the parse error and the .bak path (#1184).
  • A .yoyo.toml that isn't valid TOML is reported only by the TOML parser, as path:line:col: config file is not valid TOML: <reason> with a caret. The old "config file is malformed (N syntax problems)" text is gone. That walker misfired on valid TOML: a nested array spanning lines made yoyo -p refuse to start (#1184).
  • Generated commit messages name whole files deleted or added (delete config_syntax.rs, add a.rs) instead of "remove code" / "add changes" (#1268).

Added

  • Named agents. Agent definition files (Markdown with YAML frontmatter, Claude Code's format) are discovered in project .claude/agents/ and .yoyo/agents/ (walking up to the repo root, subfolders included) and in ~/.yoyo/agents/ / ~/.claude/agents/. yoyo agents lists each one with its resolved tools, model, turn cap and a status: for this run; the model can hand a task to one through the new agent tool. Project agents run only in a trusted project (--trust-project, a remembered trusted directory, or a yes to the trust prompt); user agents (~/.yoyo/agents/, ~/.claude/agents/) are not gated. A gated agent stays visible to the model and a call returns the reason. Honoured keys: tools / disallowedTools (Claude Code names mapped to yoyo's), model (file > sub_agent_model > main model, never sending a Claude alias to another provider), maxTurns, and permissionMode: plan (read-only child). Restricting keys are honoured or refused, never silently dropped. See the new "Named Agents" docs page (#1250, #1252, #1255, #1256, #1258).
  • /agents in the REPL lists what this session's agent tool loaded, and /doctor has an Agents row (loaded, skipped, shadowed, gated). Both describe the session's own tool: after /cd, under --no-tools, --lite or --disallowed-tools agent they say what the model really has (#1261, #1265).
  • /doctor API row: sends one minimal request (16-token cap, no tools, no retries, 20 s timeout) to the provider, model, base URL and key a run would use, and says whether it answered. A bad Google or xAI key is reported as "rejected the API key", the same as during a run (#1242, #1243).
  • claude-fable-5-2 is priced and limited from the vendor's page ($8 / $40, cache hits $0.20) instead of inheriting Fable 5's preset, which billed 25% high on tokens and 5× on cache reads (#1186).
  • A timed-out hook's error includes the stderr it had already printed (#1248).

Fixed

  • web_search says when DuckDuckGo answered with a bot challenge: it reports an error saying the query was never searched and naming EXA_API_KEY, instead of "No results found". A real empty search is still an empty result. The tool's description names the backend that will actually run (#1266).
  • Killed -p runs leave something to parse: --output-format json killed by SIGTERM/SIGHUP/SIGQUIT prints its envelope with "is_error": true and the partial reply; stream-json ends on agentEnd with stopReason: "aborted", carrying the partial reply on that closing event, and says (interrupted) on stderr (#1221, #1228, #1238).
  • A hook that writes more than ~64 KiB to stderr no longer deadlocks until the 5 s timeout and loses its feedback (#1247).
  • Fewer false refusals from the bash hard block: a dangerous command only mentioned in a git commit -m / gh message argument (#1210), a quoted mention in a command that also has $(…) or a backtick (#1223), and a heredoc body fed to cat / tee (#1102) are treated as text, not commands. rm -rf "$PWD/target" no longer warns that $PWD may be empty (#1230).
  • The "project memories not loaded" warning prints once per session per reason, not on every /memories (#1217).
  • The trust prompt, unknown-key warnings and unreadable-value warnings now read keys from the TOML parser's own parse instead of line walkers, so a key is judged where TOML puts it in every spelling. A config the parser rejects gets its own trust-prompt row ("may define shell hooks, MCP servers or other grants") from yoyo agents and /doctor, instead of every row going silent. /config set and "always allow" edit through toml_edit, so comments, order and multi-line arrays survive (#1184).

Security

  • Recursive deletes of dangerous targets ask however they are spelled: a top-level folder or the working folder ($PWD, $(pwd), or its absolute path, or a folder holding it) (#1227, #1229); the parent folder (../, ./.., build/../.., ${PWD:?}/.., ../*) (#1232); the root, a top-level folder or a home folder through .. on an absolute or ~ path (#1235), judged on the path the kernel would delete, so /tmp/link/../* with link -> / is hard-blocked like /* (#1236). A /spawn worker's sub-agent judges these against its own working folder (#1245).

Dependencies

  • New direct dependencies: toml_edit 0.25 (config writers), serde_yaml_ng 0.10 (agent-file frontmatter) and url 2 (the base_url host note). toml_edit is new to the build (it shares toml_parser / toml_writer with toml); the other two were already in Cargo.lock through yoagent and reqwest. Semver-compatible updates of toml and toml_edit.

Price table audit

  • price_drift_audit (DeepSeek rows): passed, comparing 0 rows (deepseek-flash, deepseek-v4-flash, deepseek-v4-flash-vision-exp and deepseek-v4-pro are registered divergences; deepseek-r1/deepseek-v3 are not listed by models.dev, so nothing audits them).
  • General sweep (run 2026-12-04): price audit: SUMMARY compared 106, matched 50, drifted 47, cache_read_only 9, unpriced 52 of 158 catalogue rows (rel_tol 1%). The 47 drifted rows are UNRECONCILED and owned by #1012 (48 at v0.5.0); every row is listed there. By provider: OpenAI 15, Google 14, Z.ai 10, DeepSeek 4, Mistral 3, xAI 1. 12 of the 47 differ only in the cache-write rate. Vendor pricing pages were not read for this release, and models.dev is community-maintained, so /cost figures for those models may be wrong in either direction. The 9 cache_read_only rows are the known unmodelled-cache gap.