mirror of
https://github.com/run-llama/semtools.git
synced 2026-07-21 03:05:31 -04:00
[PR #49] [MERGED] Add --json mode to binaries #47
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/semtools/pull/49
Author: @logan-markewich
Created: 2/3/2026
Status: ✅ Merged
Merged: 2/4/2026
Merged by: @logan-markewich
Base:
main← Head:logan/add_json_mode📝 Commits (5)
42e9f51Add --json mode365caf2lint0698786make clippy happy388d789fix security issues?65a480eaddress offline review comments📊 Changes
12 files changed (+1202 additions, -1359 deletions)
View changed files
📝
Cargo.lock(+655 -1012)📝
Cargo.toml(+3 -2)📝
src/ask/chat_agent.rs(+25 -147)📝
src/ask/mod.rs(+1 -0)📝
src/ask/responses_agent.rs(+37 -152)➕
src/ask/tool_calling.rs(+154 -0)📝
src/ask/tools.rs(+17 -1)📝
src/bin/ask.rs(+33 -7)📝
src/bin/search.rs(+115 -18)📝
src/bin/workspace.rs(+101 -20)➕
src/json_mode.rs(+59 -0)📝
src/lib.rs(+2 -0)📄 Description
Adds a
--jsonmode to all binaries, to facilitate usage with thejqtool in bash. This is a pretty common tool for coding agents, so I can see this helping a lotThis PR is also way bigger than I expected. I should have added structured outputs instead of strings from the beginning 😢
Fixes https://github.com/run-llama/semtools/issues/29
Fixes https://github.com/run-llama/semtools/issues/28
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.