askds
is a test debugger that helps diagnose test failures using DeepSeek R1. It runs your tests, analyzes failures, and suggests fixes.
screencast.mov
Make sure you have yek
installed:
npm install -g askds
Run tests with AI analysis:
export DEEPSEEK_API_KEY="your-api-key"
askds npm test
Set these environment variables to customize behavior:
Variable | Description | Default |
---|---|---|
DEEPSEEK_API_KEY |
Required API key | - |
Command line options:
Flag | Description | Default |
---|---|---|
--test-file-pattern |
Glob pattern for test files | **/*.test.ts |
--source-file-pattern |
Glob pattern for source files | src/**/*.ts |
--serialize |
Repository serialization cmd | yek |
--debug |
Enable debug mode | false |
--hide-ui |
Hide UI | false |
--system-prompt |
Custom system prompt file | - |
--timeout |
Timeout for AI response | 120 |
--run |
Run this command. when using run [test-command-and-args...] is ignored | false |
- Runs your test command
- Analyzes failures + repo content using Deepseek R1
- Prints the solution/suggestion
askai npm test
askds --fix npm test
--fix
uses DeepSeek R1 to fix the code by calling it again with original code and the fix returned from the first call.