Skip to content

Dev Commands

Commands for local development: run, serve, validate, scaffold, configure, and diagnose.

kdeps run

Run a workflow locally (default execution mode).

bash
kdeps run [workflow.yaml | package.kdeps] [flags]

Arguments:

  • workflow.yaml -- Path to workflow file or directory containing workflow.yaml
  • package.kdeps -- Path to packaged workflow file

Flags:

FlagDescriptionDefault
--devEnable hot reload modefalse
--portAPI server port numberFrom workflow config
--debugEnable debug loggingfalse
--interactiveOpen an interactive LLM REPL alongside the running workflowfalse

Examples:

bash
kdeps run workflow.yaml                    # Run from file
kdeps run myapp.kdeps                      # Run from package
kdeps run workflow.yaml --dev              # Hot reload
kdeps run workflow.yaml --debug            # Debug logging
kdeps run workflow.yaml --port 16395       # Custom port
kdeps run workflow.yaml --interactive      # LLM REPL alongside server

kdeps serve

Start agent mode -- an interactive LLM loop where whole workflows and components are registered as callable tools. Pass a single file to expose one workflow tool plus its components, or a folder to expose every workflow and agency inside as separate tools along with all their components.

bash
kdeps serve <path> [flags]

Flags:

FlagDefaultDescription
--modelKDEPS_AGENT_MODEL or llama3.2LLM model name
--backendKDEPS_AGENT_BACKEND or ollamaLLM backend
--base-urlKDEPS_AGENT_BASE_URLLLM API base URL
--system(none)System prompt injected at conversation start
--debugfalseEnable debug logging

Examples:

bash
kdeps serve ./my-agent/                                       # one tool: metadata.name
kdeps serve ./agents/                                         # all workflows in folder
kdeps serve ./my-agent/ --model mistral
kdeps serve ./agents/ --system "You are a helpful assistant."

See Agent Mode for full details.


kdeps validate

Validate workflow configuration against schema and business rules.

bash
kdeps validate [workflow.yaml | directory] [flags]

What it validates:

  • YAML syntax
  • Schema compliance (JSON Schema)
  • Resource dependencies
  • Expression syntax
  • Circular dependency detection
  • Business rules
  • Static analysis (unreachable resources, bad expression refs, missing component inputs)

Examples:

bash
kdeps validate workflow.yaml
kdeps validate .                            # Validate all in directory
kdeps validate myapp.kdeps                  # Validate package

Output:

Validating: workflow.yaml

✓ YAML syntax valid
✓ Schema validation passed
✓ Resource dependencies resolved
✓ No circular dependencies
✓ Expression syntax valid

Workflow validated successfully

kdeps new

Create a new AI agent with interactive prompts.

bash
kdeps new [agent-name] [flags]

Flags:

FlagDescriptionDefault
--template, -tAgent template to useapi-service
--forceOverwrite existing directoryfalse

Available templates: api-service, sql-agent

Examples:

bash
kdeps new my-agent                           # Uses api-service template
kdeps new my-agent --template sql-agent      # SQL agent template
kdeps new my-agent --force                   # Overwrite existing

Generated structure:

my-agent/
├── workflow.yaml
├── resources/
│   ├── http_client.yaml
│   ├── llm.yaml
│   └── response.yaml
└── README.md

kdeps edit

Open the global kdeps configuration file (~/.kdeps/config.yaml) in your editor. Scaffolded if it doesn't exist.

bash
kdeps edit [flags]

Editor resolution: $KDEPS_EDITOR > $VISUAL > $EDITOR > vi

bash
kdeps edit
KDEPS_EDITOR=code kdeps edit                # Open in VS Code

kdeps doctor

Run system health checks to diagnose common configuration and environment issues.

bash
kdeps doctor [flags]

Checks:

CheckDescription
Config fileExistence of ~/.kdeps/config.yaml
Config validationTypos in API key names, missing keys
OllamaTCP connectivity to the Ollama server
Pythonpython3 availability in PATH
Backend/API keyCloud backend configured without its API key
AgentsInstalled agent count
Env varsCritical environment variables set

Exits with code 1 when any check has FAIL status.


kdeps chat

Interactive AI assistant that generates and runs kdeps workflows from natural language.

bash
kdeps chat [flags]

Flags:

FlagDescriptionDefault
--modelLLM model for workflow generationFrom config
--base-urlLLM backend base URLhttp://localhost:11434
--sessionResume a previous session by IDNew session
--no-executeGenerate workflow but do not allow /runfalse

REPL slash commands:

CommandDescription
/showPrint the generated workflow YAML
/runExecute the workflow
/save [path]Save workflow to directory
/exportShow Kubernetes manifests
/resetClear conversation and start fresh
/quitExit
bash
kdeps chat                                    # Start interactive assistant
kdeps chat --model gpt-4o                     # Use specific model
echo "list files in /tmp" | kdeps chat --no-execute

See Also

Released under the Apache 2.0 License.