feat: add ClaudeCodeAuthCheck for flexible agent authentication#3
Merged
norrietaylor merged 12 commits intomainfrom Mar 23, 2026
Merged
feat: add ClaudeCodeAuthCheck for flexible agent authentication#3norrietaylor merged 12 commits intomainfrom
norrietaylor merged 12 commits intomainfrom
Conversation
Replace AnthropicAPIKeyCheck with ClaudeCodeAuthCheck in CLI preflight. The new check passes if ANTHROPIC_API_KEY is set OR the claude CLI is on PATH (supporting OAuth, GitHub App, and other managed auth methods). This allows CI environments with the Claude GitHub App installed to run agentry without requiring a separate API key. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update agentry-code-review.yml to use CLAUDE_CODE_OAUTH_TOKEN from the Claude GitHub App instead of ANTHROPIC_API_KEY. Update ClaudeCodeAuthCheck to recognize the OAuth token as a valid auth method. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The agent_availability preflight check requires claude on PATH. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
All standard library workflows use Claude Code which requires host process execution. The default trust level is sandboxed (Docker), which fails in CI where the agentry/sandbox:1.0 image is not available. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The workflow agent block passes max_iterations through to the agent constructor. Map it to claude CLI's --max-turns flag. Also accept **kwargs for forward compatibility with new workflow fields. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Agent run output: /home/runner/work/agentry/agentry/.agentry/runs/20260323T010946/output.json |
When Claude Code returns a string result (prose review) rather than
structured JSON, wrap it in {"raw_response": text} instead of silently
dropping it. This was causing output: null in CI runs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Agent run output: /home/runner/work/agentry/agentry/.agentry/runs/20260323T011350/output.json |
The workflow's output schema was never passed to ClaudeCodeAgent, so claude was invoked without --output-format json and all output parsing was skipped. Thread output_schema through AgentConfig → InProcessRunner → AgentTask so the agent produces structured JSON responses. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Agent run output: /home/runner/work/agentry/agentry/.agentry/runs/20260323T012846/output.json |
When Claude Code returns result: null (e.g. after tool-use turns with no final text), capture stop_reason and subtype in the output instead of returning null. Also include cache_creation and cache_read tokens in the reported input token count for accurate usage reporting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Agent run output: /home/runner/work/agentry/agentry/.agentry/runs/20260323T015738/output.json |
Adds diagnostic raw_stdout field (truncated to 2000 chars) to the CLI JSON output when the agent produces no structured output. This makes empty-result CI runs diagnosable from the logs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Agent run output: /home/runner/work/agentry/agentry/.agentry/runs/20260323T020105/output.json |
The PR comment was posting just the file path because map_outputs was called before the output file was written. Now writes the file first, then calls map_outputs which reads it and formats findings as a structured Markdown comment with severity emojis, code locations, and token usage. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Agentry Code ReviewTokens: 31,415 in / 2,364 out |
Add media queries for narrow viewports: single-column grids, smaller typography, reduced padding, narrower architecture layer indents. Add touch swipe navigation for left/right slide transitions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Agentry Code ReviewTokens: 12,762 in / 2,015 out |
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.
Replace AnthropicAPIKeyCheck with ClaudeCodeAuthCheck in CLI preflight. The new check passes if ANTHROPIC_API_KEY is set OR the claude CLI is on PATH (supporting OAuth, GitHub App, and other managed auth methods).
This allows CI environments with the Claude GitHub App installed to run agentry without requiring a separate API key.