Skip to content

bodo-run/askds

Repository files navigation

askds - DeepSeek R1-powered test debugger

askds is a test debugger that helps diagnose test failures using DeepSeek R1. It runs your tests, analyzes failures, and suggests fixes.

screencast.mov

Installation

Make sure you have yek installed:

npm install -g askds

Basic Usage

Run tests with AI analysis:

export DEEPSEEK_API_KEY="your-api-key"
askds npm test

Configuration

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

How It Works

  1. Runs your test command
  2. Analyzes failures + repo content using Deepseek R1
  3. Prints the solution/suggestion

Examples

Basic Test Analysis

askai npm test

Experimental Fixing

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.

About

Ask DeepSeek R1 to debug your tests

Resources

Stars

Watchers

Forks

Packages

No packages published