Skip to content

feat: add one-shot ask command and extract agent runtime (WP06) - #116

Merged
pavelanni merged 4 commits into
mainfrom
feature/ask-command
Nov 7, 2026
Merged

pavelanni merged 4 commits into
mainfrom
feature/ask-command

Conversation

@pavelanni

Copy link
Copy Markdown
Collaborator

Summary

Extracts the serve setup into buildRuntime/agentRuntime and adds the one-shot ask command.

  • docsclaw ask --config-dir DIR "prompt" prints only the answer to stdout; logs and --trace go to stderr; exits non-zero on failure.
  • traceHook prints -> tool args before and <- tool ok|error: output after each tool call.
  • Provider tests prove opaque openshell:resolve:env placeholders are accepted by both OpenAI-compatible and Anthropic providers.
  • deploy/README gains the sandbox env table and an ask example.

Test plan

  • go test ./... (all packages pass)
  • make lint (0 issues)
  • ask with no key exits 1 and writes nothing to stdout
  • --trace covered by TestAsk_TraceWritesToolCalls
  • markdownlint on deploy/README.md

🤖 Generated with Claude Code

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Pavel Anni <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Pavel Anni <[email protected]>
Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Pavel Anni <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

Restore logger.New for serve so LOG_FORMAT is honored, map argument
errors to exit code 2, close runtime resources on build failure, and
cover constructor-path placeholder keys and context cancellation.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Pavel Anni <[email protected]>
@pavelanni
pavelanni marked this pull request as ready for review November 7, 2026 00:13
@pavelanni
pavelanni merged commit 4190226 into main Nov 7, 2026
5 checks passed
@pavelanni
pavelanni deleted the feature/ask-command branch November 7, 2026 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant