CI/CD & GitHub

Dwight integrates with your CI pipeline and GitHub workflow.


CI Auto-Fix

When your CI pipeline fails, Dwight can diagnose and fix the issue:

:DwightCI                    " Auto-fix from latest CI run
:DwightCI <url>              " Fix a specific pipeline run

The agent reads the failure output, identifies the root cause, applies a fix, and verifies it passes locally before committing.


Git Operations

:DwightCommit                " Generate a conventional commit from staged changes
:DwightSquash                " Squash Dwight checkpoint commits into one clean commit
:DwightGit stash             " Stash working changes
:DwightGit unstash           " Pop stashed changes
:DwightDiffReview            " Full diff of the last session's changes in a split buffer

Checkpoint Commits

During :DwightAuto, each sub-task creates a checkpoint commit:

dwight: task 1/8 — HTTP server foundation
dwight: task 2/8 — Template infrastructure
...

Use :DwightSquash to collapse these into a single commit before merging.


GitHub Integration

Requires GitHub CLI (gh) to be installed and authenticated.

Pull Requests

:DwightPR                    " Create a PR from current branch
:DwightPR "Add user auth"    " Create with a specific title
:DwightPRReview              " AI review of a PR (yours or someone else's)
:DwightPRReview 42           " Review PR #42

Issues

:DwightIssue 15              " Read issue #15 and start working on it
:DwightNewIssue              " Create a new issue

When working on an issue, Dwight includes the issue description and comments in the agent's context.


TDD Mode

A test-driven development loop:

:DwightTDD "user validation"   " Start TDD for a feature
:DwightTDDStop                 " Stop the TDD loop

The loop:

  1. Agent writes a failing test based on your description
  2. Runs the test to confirm it fails
  3. Agent implements the minimum code to pass
  4. Runs the test to confirm it passes
  5. Optionally refactors

This continues until the feature is complete or you stop it.