Conversation
Add KiroAgent that wraps kiro-cli for code reviews. Kiro output is captured, ANSI-stripped, and cleaned of UI chrome (logo, tip box, model line, timing footer) before returning the review text. - Add KiroAgent with chat --no-interactive invocation - Strip ANSI escapes and UI chrome via stripKiroOutput - Constrain start-marker search to first 30 lines to avoid false matches on markdown blockquotes in review content - Support --trust-all-tools in agentic mode - Register "kiro" in fallback order, error messages, CLI help - Add comprehensive tests (output stripping, args, agentic mode, chaining, success/failure/empty output) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add kiro to ghaction.go --agents help text - Add test for bare ">" start marker without trailing space - Add test verifying output writer receives review content Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Reuse stripTerminalControls (handles OSC sequences and control chars) instead of maintaining a weaker duplicate ANSI regex - Fall back to stderr when stdout is empty on successful exit, preventing silent "No review output generated" results - Reject prompts exceeding 512 KB with a clear error before exec, since kiro-cli requires argv (no stdin support) - Add tests for stderr fallback and oversized prompt rejection Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Restrict timing footer detection to last 5 lines to avoid truncating review content that contains "▸ Time:" in a code snippet - Add "--" separator before prompt argument to prevent flag parsing - Use stripKiroOutput (not stripTerminalControls) for stderr fallback so Kiro chrome is fully stripped Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Strip trailing blank lines before applying the 5-line footer scan window so blank postamble from kiro-cli doesn't hide the real footer - Update CommandLine() to include -- separator, matching Review() behavior Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
roborev: Combined Review (
|
The CLI help text advertised kiro/kilo as valid agents but the ghaction validation allowlist rejected them at runtime. - Add both to allowedAgents - kiro: not CI-compatible yet, install step directs to kiro.dev - kilo: install via @kilocode/cli, uses OPENAI_API_KEY (default) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- kiro: map to GITHUB_TOKEN so envEntries skips it (not CI-compatible) - kilo: map to ANTHROPIC_API_KEY with multi-provider comment (like opencode) - Extend workflow template and CLI next-steps to handle kilo as multi-provider Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
roborev: Combined Review (
|
- Verify kilo workflow gets multi-provider comment and ANTHROPIC_API_KEY - Verify kiro workflow has no agent-specific secret env vars - Add notContains support to CLI ghaction test table Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
roborev: Combined Review (
|
Extract stripKiroReview returning (text, hasMarker) so the Review method can detect when stdout contains only non-review noise (no "> " marker) and prefer stderr's marker-detected content. Previously, stdout noise blocked the stderr fallback because stripKiroOutput returned the noise as non-empty text. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When stdout has no review marker, fall back to stderr unconditionally (not only when stderr also has a marker). This handles the case where stderr contains plain review text without Kiro chrome. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
roborev: Combined Review (
|
Refine the fallback precedence so stderr only overrides stdout when stdout is empty or stderr has a review marker. When both streams have content but neither has a marker, stdout (primary stream) is kept. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
roborev: Combined Review (
|
roborev: Combined Review (
|
When stdout contains only a bare marker (e.g., ">") with no review content, check stderr for the actual review instead of returning "No review output generated". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
roborev: Combined Review (
|
Summary
KiroAgentimplementing theAgentinterface, invokingkiro-cli chat --no-interactive--trust-all-tools), stderr fallback, and 512 KB prompt size guardkiroin the agent registry and add it to CLI help text andgh-actionworkflow generationSupersedes #302 — squashed and rebased onto current main with review fixes applied.
Original implementation by @mikeaadd.
🤖 Generated with Claude Code