Add rlm tool and auto correction.#9
Open
Gabenoob wants to merge 4 commits intoOpen-Model-Initiative:mainfrom
Open
Add rlm tool and auto correction.#9Gabenoob wants to merge 4 commits intoOpen-Model-Initiative:mainfrom
Gabenoob wants to merge 4 commits intoOpen-Model-Initiative:mainfrom
Conversation
Contributor
Gabenoob
commented
Mar 30, 2026
- Add rlm as a tool, now the model can call rlm by calling a tool.
- Add json autocorrection. the model will call another model to correct the wrong json format if json parse error.
- add `rlm` tool in registry with grounded long-material reasoning execution - bump Omni_RLM dependency from v0.1.2 to v0.1.3 - remove unused RLM state/imports from planner - rename tool index file to `src/tools/TOOLS.md` - update tool response format from `argument` to `arguments` - sync README and AGENTS with new tools, paths, and examples - add `src/tools/docs/rlm.md` and expand tool documentation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new rlm tool (grounded reasoning over long files) and introduces automatic JSON plan “repair” when the planner receives malformed JSON from the model.
Changes:
- Register new
rlmtool and add its documentation. - Add a JSON auto-repair flow in the planner when JSON parsing fails.
- Update dependency to
Omni_RLM v0.1.3and refresh repo docs to mentionrlm+ new tool-call JSON shape.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/tools/registry.zig | Registers rlm and implements runRlm executor via Omni-RLM runtime. |
| src/agent/planner.zig | Adds JSON repair prompt + retry parsing after model-assisted repair. |
| src/tools/TOOLS.md | Introduces a consolidated tool index including rlm and JSON call format. |
| src/tools/docs/rlm.md | Adds usage docs for the rlm tool. |
| build.zig.zon | Bumps Omni_RLM dependency to v0.1.3. |
| README.md | Documents rlm, updates examples to arguments[] tool-call format. |
| AGENTS.md | Updates agent guide to include rlm and dependency bump. |
| src/tools/tools.md | Removes old tool registry markdown file. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
change the API_referance to API_reference Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.