Skip to main content

Single-Shot Coding Assistant

In this tutorial, you'll learn how to build a simple command-line coding assistant using the Dhenara Agent DSL (DAD) framework. This assistant will be able to generate code based on user requirements, analyze existing codebases, and implement changes with precision.

What We'll Build

We'll create a single-shot command-line coding assistant that progressively evolves through three stages:

  1. Part 1: Bringup - A basic implementation that can handle standalone coding tasks
  2. Part 2: Live Inputs - Enhanced to accept inputs at runtime
  3. Part 3: Component Variables - Using component variables for better organization and reusability

By the end of this tutorial, you'll have a fully functional coding assistant that can take a coding task and implement it using the DAD framework.

Prerequisites

Before starting this tutorial, make sure you have:

  • Installed the DAD framework as described in the installation guide
  • Completed the Quick Start guide to understand the basics
  • Familiarity with basic Python programming concepts
  • Set up your API keys for your preferred AI providers

Tutorial Structure

This tutorial is divided into three parts, each building on the previous one:

The final code of this tutorial can be found in DAD Tutorials

Let's Get Started!

Start with Part 1: Single-Shot Implementation Flow to build the foundation of your coding assistant.