[PR #49] [MERGED] Add --json mode to binaries #47

Closed
opened 2026-02-16 04:15:20 -05:00 by yindo · 0 comments
Owner

📋 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: mainHead: logan/add_json_mode


📝 Commits (5)

📊 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 --json mode to all binaries, to facilitate usage with the jq tool in bash. This is a pretty common tool for coding agents, so I can see this helping a lot

This 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.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/semtools/pull/49 **Author:** [@logan-markewich](https://github.com/logan-markewich) **Created:** 2/3/2026 **Status:** ✅ Merged **Merged:** 2/4/2026 **Merged by:** [@logan-markewich](https://github.com/logan-markewich) **Base:** `main` ← **Head:** `logan/add_json_mode` --- ### 📝 Commits (5) - [`42e9f51`](https://github.com/run-llama/semtools/commit/42e9f51ea51cbc26527f2951dc4bb839b3ae4ff9) Add --json mode - [`365caf2`](https://github.com/run-llama/semtools/commit/365caf23fe42edddb47734a1a5cc81affdeb1497) lint - [`0698786`](https://github.com/run-llama/semtools/commit/06987862ab783d3763717df7ea6f9cd8ebefb348) make clippy happy - [`388d789`](https://github.com/run-llama/semtools/commit/388d7891182182e31e66a1604c5dad0d23ac26ac) fix security issues? - [`65a480e`](https://github.com/run-llama/semtools/commit/65a480ed3cecd7b1414d15c7c41f3f2c61f0f085) address offline review comments ### 📊 Changes **12 files changed** (+1202 additions, -1359 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description Adds a `--json` mode to all binaries, to facilitate usage with the `jq` tool in bash. This is a pretty common tool for coding agents, so I can see this helping a lot This 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 04:15:20 -05:00
yindo closed this issue 2026-02-16 04:15:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/semtools#47