feat: one-shot CLI mode with subcommands (agent, websearch, web-fetch, list)#87
Merged
feat: one-shot CLI mode with subcommands (agent, websearch, web-fetch, list)#87
Conversation
11 tasks
…t subcommands Agent-Logs-Url: https://github.com/huberp/agentloop/sessions/843807a2-324a-455d-95e4-a7a90d78ab8e Co-authored-by: huberp <4027454+huberp@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add one-shot CLI mode with subcommands to agentloop
feat: one-shot CLI mode with subcommands (agent, websearch, web-fetch, list)
Mar 28, 2026
huberp
approved these changes
Mar 28, 2026
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.
agentloophad no non-interactive invocation mode — every entry point dropped into a readline REPL, making it unusable in scripts, Makefiles, or CI pipelines.New:
src/start-oneshot.tsScriptable entry point that parses a subcommand, runs one operation, prints to stdout, and exits.
agent-u(required),-ssystem override,-pprofile,--stream,--jsonwebsearch-q(required),-nmax results,--jsonweb-fetch-u(required),--jsonlisttools|agentprofilesUses Node.js built-in
util.parseArgs— no new dependencies. Unknown subcommands print help and exit1.Changes to
src/index.tsensureInitialized()— allows external entry points to load the tool registry before direct tool invocation (no LLM call needed forwebsearch/web-fetch/list).agentProfileRegistry.AgentRunOptionsinterface withsystemPromptOverride?: string; threaded throughexecuteWithToolsandexecuteWithToolsStreamas an optional third parameter (fully backward-compatible). When set, replaces the auto-generated system prompt for that invocation.Other
package.json: added"oneshot": "npx tsx src/start-oneshot.ts"script.README.md: added "One-Shot CLI Mode" section with examples and flag tables.AgentRunOptionspropagation.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
duckduckgo.com/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node /home/REDACTED/work/agentloop/agentloop/node_modules/jest-worker/build/processChild.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.