Repository navigation
Rig 0.47 release !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! #3443
gold-silver-copper
announced in
Announcements
Replies: 1 comment
|
love that! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Rig 0.47 is here! One settings file, compaction rebuilt the way pi does it, a plugin tree you can switch on and off, and a calmer, more honest coding agent. With 280 pull requests it is our largest release so far. The library gets streamed tool progress, rate-limit parsing and the newest models too 🫡
The Coding Agent
~/.rig/settings.tomlnow says which plugins run, which model you use and how each plugin is set up. It replacesplugins.tomlanddefaults.json.[plugins] offturns off a whole branch, such as a crate (rig-tui) or an area (rig-basics/sessions)./plugins. Enter ticks or unticks the highlighted plugin or branch, even while you filter. Changed rows show+ on/- off. With changes, Esc asks whether to reload now, apply them at the next start, keep editing or leave without writing.rig plugin add <type> --path <dir>,--git <url>or--version <req>adds a plugin from another crate./compact <instructions>tells the summary what to focus on./uncompactis gone; to go back, rewind or fork withForksPluginon (see Upgrading).rig_basics::budget::BudgetPlugin, and/budget 2.00or/budget 500000 tokensstops the agent at the limit. Spend now includes everything its subagents and helpers used.thinking… 1m12s).writeonly replaces a file it has read or written since rig started, and that has not changed on disk since. Otherwise it writes nothing and asks the model to read the file first.rig --safestarts rig's default plugins from their own build, ignoring your plugin list;/reloador/pluginstakes you back to yours. A plugin on a different Bevy than the agent now stops the build before anything compiles and names theCargo.tomlline to write, and/reloadand/updateshow that cause instead of cargo's first error.rig -pon a terminal draws Markdown and wraps it to the terminal width. The new optionalrig_fold::FoldPluginfolds finished tool calls (rig plugin enable rig_fold::FoldPlugin).rig updatereinstalls the launcher for you.For Plugin Authors
rig plugin newwrites Bevy as"0.20"instead of an exact pin. A new home also gets awriting-rig-pluginsskill (/skill:writing-rig-plugins) that points at the plugin guide and the plugin corpus.rig_ecs::spawn, andspawn_rootinserts the whole root agent at once, so yourOn<Add<Agent>>observers see all of it.build, notfinish; move save-time systems fromLast(WriteLogs) to the newPersistschedule; addTuiPlugins, not onlyTuiPlugin, to keep the status line, hints and title; readStreamDeltaalone, since it now carries replies that did not stream; and redact what your plugin writes yourself, since rig no longer does it for you.Library and Provider Updates
gpt-6.2-sol.ToolExecutionStartedwhen a tool call starts, andToolResultItemas each tool's result is accepted, without waiting for its siblings.AgentRunner::ordered_by_footprint(true), a call waits for earlier calls that write what it reads or writes; the others still run side by side, up totool_concurrency. A tool call cut off by the output limit is never run.RateLimits::from_headersreads the rate-limit headers of OpenAI, Groq, Anthropic, OpenRouter and the IETF draft. HTTP errors say whether a retry can work.Responses::with_storesendsstoreon every request that does not set its own, sofalsemakes requests stateless. rig-memory's compaction is now a set of plain functions.rigbinary now comes from the newrig-clicrate, behind the root package's defaultclifeature.cargo install rigworks as before. A library user who wants no launcher dependencies setsdefault-features = falseand listsreqwest,agent,deriveandrustlsagain.Upgrading
This is a breaking release, and a 0.46 home does not start as it is. Read the 0.46 → 0.47 migration guide; its section 9 is a step-by-step upgrade. Also read the 0.47 silent behavior changes: what changes without a compile error or a warning.
Turned off by default. These were on in 0.46 and are now optional plugins:
RedactPluginon, a secret shows as‹SECRET_1›..rig/mcp.jsonservers start when rig opens the project, and one can replace a server of yours with the same name.McpApprovalPluginasks first, as 0.46 did./agentsareForksPlugin.Your 0.46 home:
cargo install rig --force --locked. 0.46 has norig update.~/.rig/settings.toml. In[compaction], renamekeep_recenttokeep_recent_tokensandlimits.reservetoreserve_tokens, and delete the other old keys. The error says to deletekeep_recent: rename it instead, or your value quietly becomes the default. Delete[subagents] max_depthand the[checkpoints]table, and move[tui] mark_nonce_envto[title].rig plugincommands and[model]lines that rebuild your oldplugins.tomlanddefaults.jsonsetup. It changes no file itself. Until you run them, it starts with its default plugins and picks a model on its own..rig/settings.tomlis no longer read; move what it set into~/.rig/settings.toml.0.47.0, write the Bevy crates as"0.20", then port the code with the guide's sections 6 to 8./v1fromOLLAMA_API_BASE_URL. The first build after upgrading recompiles every dependency once.movetool, checkpoints and the subagent depth limit are removed.Scripts and editors:
rig -preads piped stdin until it closes, so give a script whose stdin stays open</dev/null. A command that opens a list (rig -p /model) exits 2, and a failed agent build exits 1 instead of answering with the previous build.rig --jsonspeaks protocol version 3, and a line from an older driver is refused with an error reply.tool_callandtool_resultids are now places such asm4/1, andexit's usage is the session total, helpers included.rig acp: options go beforeacp(rig --tools=read acp). A word afteracpused to be ignored and now stops the start.Library users:
providers::authonly.message::Documentismessage::DocumentContent, andChatBotBuilderisChatBot::new. Theaudioandimagefeatures (andwebsocketin rig-core and rig-http) are gone because that code always compiles. Runs saved by rig-agent 0.46 cannot be resumed.PromptError::OutputSchemaMismatchwhen the answer doesn't fit, provider keys no longer follow a redirect to another host, a stream that sends no frame for 5 minutes fails asStalledeven while keep-alives arrive, and a tool that panics fails its own call instead of the run.Contributors
This release builds on pull requests, issues and code from people outside the core team. Each is credited as a co-author on the change that carried their work. Thank you 🙏
@0xMochan @abhicris @AllureCurtain @Amronos @apekros @ChristianPerez34 @erayack @gabriel @kjones @limadog9 @liborw @lymanzhao @nazq @siderakis @tgockel @theamodhshetty @ThomasMarches @tmihalicka @tripplen23 @umutarmut38 @WillXing
Huge thank you to everyone contributing, testing, reporting problems and sharing what you're building. Please keep the issues and discussions coming 🫡
We build Rig, Rig builds us!
Full changelog: v0.46.0...v0.47.0
All reactions