Repository navigation
feat(run): Rewrite sequant run to use Claude Agent SDK - #24
Merged
admarble merged 2 commits intoJan 8, 2026
Merged
Conversation
Adds comprehensive test coverage for the structured logging system: - run-log-schema.test.ts: 58 tests covering Zod schema validation and helper functions - log-writer.test.ts: 41 tests covering LogWriter class and createPhaseLogFromTiming Co-Authored-By: Claude Opus 4.5 <[email protected]>
Replace spawn-based CLI invocation with the Claude Agent SDK's query() function for proper skill invocation in headless mode. ## Changes ### Core Rewrite - Use @anthropic-ai/claude-agent-sdk query() instead of spawn() - Configure settingSources: ['project'] to load project skills - Use Claude Code's system prompt and tools presets - Implement streaming output in verbose mode - Handle errors, timeouts, and session resumption ### New Features - Add --quality-loop / -q flag for auto-retry with fix iterations - Add --max-iterations option (default: 3) - Add --batch option for grouped sequential execution - Add --smart-tests / --no-smart-tests flags - Add --testgen flag to run testgen after spec - Auto-detect UI issues by label and add test phase - Support SEQUANT_* environment variables for CI ## CLI Interface ```bash sequant run 12 --quality-loop --max-iterations 3 sequant run --batch "12 13" --batch "14" sequant run 12 --testgen --no-smart-tests ``` Fixes #19 Co-Authored-By: Claude Opus 4.5 <[email protected]>
14 tasks
admarble
deleted the
feature/19-fix-sequant-run-to-use-claude-agent-sdk
branch
January 8, 2026 19:16
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.
Summary
sequant runcommand to use the Claude Agent SDK'squery()function instead of spawning the CLI with slash commandsKey Changes
Core Rewrite (Claude Agent SDK)
@anthropic-ai/claude-agent-sdkdependencyexecutePhase()to usequery()instead ofspawn()settingSources: ['project']to load project skillsNew Features
--quality-loop/-qflag with auto-retry logic--max-iterationsoption (default: 3)--batchoption for grouped sequential execution--smart-tests/--no-smart-testsflags--testgenflag to run testgen after specSEQUANT_QUALITY_LOOP,SEQUANT_MAX_ITERATIONS, etc.)Test plan
npm run build)npm test)sequant run --help)Usage Examples
Fixes #19
Generated with Claude Code