[PR #40] [MERGED] Introduce a new ask CLI command #42

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

📋 Pull Request Information

Original PR: https://github.com/run-llama/semtools/pull/40
Author: @logan-markewich
Created: 11/24/2025
Status: Merged
Merged: 11/25/2025
Merged by: @logan-markewich

Base: mainHead: logan/ask_api


📝 Commits (7)

📊 Changes

15 files changed (+2586 additions, -821 deletions)

View changed files

📝 Cargo.lock (+241 -0)
📝 Cargo.toml (+21 -7)
📝 README.md (+111 -34)
src/ask/chat_agent.rs (+264 -0)
src/ask/mod.rs (+4 -0)
src/ask/responses_agent.rs (+280 -0)
src/ask/system_prompt.rs (+35 -0)
src/ask/tools.rs (+564 -0)
src/bin/ask.rs (+138 -0)
📝 src/bin/parse.rs (+9 -12)
📝 src/bin/search.rs (+26 -768)
src/config.rs (+91 -0)
📝 src/lib.rs (+9 -0)
src/search/mod.rs (+458 -0)
📝 src/workspace/store.rs (+335 -0)

📄 Description

The PR ended up being much bigger than I expected.

  • Refactor search into a set of library commands
  • Update the search binary to import/use the binary commands
  • Implement an agent loop that uses read and search with an openai client
  • Use agentic loop in an ask cli binary
  • Refactor all config into a unified semtools config file
  • Update docs
  • Give the agent a grep tool
  • Add responses API support, in addition to chat support, to help others integrate easily

🔄 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/40 **Author:** [@logan-markewich](https://github.com/logan-markewich) **Created:** 11/24/2025 **Status:** ✅ Merged **Merged:** 11/25/2025 **Merged by:** [@logan-markewich](https://github.com/logan-markewich) **Base:** `main` ← **Head:** `logan/ask_api` --- ### 📝 Commits (7) - [`1a3da30`](https://github.com/run-llama/semtools/commit/1a3da3096a0e907c00dea88b92c1cd897609c217) refactor search into its own module - [`e840a13`](https://github.com/run-llama/semtools/commit/e840a13f9f37ef0137f181ae9564a7f6bf3a4e2f) add initial ask cli tool - [`d579565`](https://github.com/run-llama/semtools/commit/d579565ac7f7522d4e9932dcd53e07385cd9e7fe) add responses API support - [`4b209ec`](https://github.com/run-llama/semtools/commit/4b209ec4c3660bfc0b539450b1111324b04a4dfb) linting - [`2181d76`](https://github.com/run-llama/semtools/commit/2181d7651e022c3cc201d1d77fa5e3b63e3a1310) lint - [`2b12317`](https://github.com/run-llama/semtools/commit/2b1231797092f3c69ca56e45d892588fb5f7a7dd) lint harder - [`44d04ff`](https://github.com/run-llama/semtools/commit/44d04ff2ad4222e44281ee9d84da599fa3acf4c1) lint even HARDER ### 📊 Changes **15 files changed** (+2586 additions, -821 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+241 -0) 📝 `Cargo.toml` (+21 -7) 📝 `README.md` (+111 -34) ➕ `src/ask/chat_agent.rs` (+264 -0) ➕ `src/ask/mod.rs` (+4 -0) ➕ `src/ask/responses_agent.rs` (+280 -0) ➕ `src/ask/system_prompt.rs` (+35 -0) ➕ `src/ask/tools.rs` (+564 -0) ➕ `src/bin/ask.rs` (+138 -0) 📝 `src/bin/parse.rs` (+9 -12) 📝 `src/bin/search.rs` (+26 -768) ➕ `src/config.rs` (+91 -0) 📝 `src/lib.rs` (+9 -0) ➕ `src/search/mod.rs` (+458 -0) 📝 `src/workspace/store.rs` (+335 -0) </details> ### 📄 Description The PR ended up being much bigger than I expected. - [x] Refactor `search` into a set of library commands - [x] Update the `search` binary to import/use the binary commands - [x] Implement an agent loop that uses `read` and `search` with an openai client - [x] Use agentic loop in an `ask` cli binary - [x] Refactor all config into a unified semtools config file - [x] Update docs - [x] Give the agent a `grep` tool - [x] Add responses API support, in addition to chat support, to help others integrate easily --- <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:19 -05:00
yindo closed this issue 2026-02-16 04:15:19 -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#42