Skip to content

dokugent agent

Scaffold a new agent identity and its associated metadata.

The agent command initializes an agent using an interactive CLI wizard. It captures key identity fields and produces metadata artifacts used across Dokugent workflows.


How to Use

Interactive Wizard

dokugent agent

Launches the full guided agent setup wizard.

Instant Scaffold ( --t )

dokugent agent --t summarybot
dokugent agent --t summarybot --e nvidia

Skips the wizard and creates a basic identity.json, with optional ecosystem preset.


Agent Identity Fields

During interactive mode, you’ll be asked to provide:

Field Description
agentName Name of the agent
description What the agent is expected to do
roles Functional roles (e.g., summarizer, formatter)
customRole Optional custom role, if "other" is selected
processableTypes Accepted input types (e.g., "english, markdown structure")
owner Name of the person or org who owns the agent
ownerId ID or domain of the owner
mainTask The agent's core instruction or behavior summary

Flags and Parameters

Flag Description
--agent Specify an agent slug to show, edit, or check.
--edit Open the agent’s identity.json in your default editor.
--show Print current identity metadata to console.
--check Validate the identity.json (step 1 of 6).
--t Generate a scaffolded agent identity (skips wizard). Use with --e to include ecosystem presets.
--e <name> Specify ecosystem to pull default planning files.
--ls List all agents, showing which is current and latest.
--use <slug> Set an agent as the current one (via symlink).

Agent Commands

Create a new agent (wizard)

dokugent agent

Create agent using ecosystem preset

dokugent agent --t summarybot --e openai

List agents

dokugent agent --ls

Shows agent folders and highlights 🟢 current and 🕓 latest.


Set active agent

dokugent agent --use summarybot@2025-05-22_20-08-19-376

Updates the current symlink used by all other commands.


View agent metadata

dokugent agent --show --agent summarybot@...

Edit agent metadata

dokugent agent --edit --agent summarybot@...

Validate identity.json

dokugent agent --check --agent summarybot@...

Ecosystem Templates

Presets scaffold agents based on AI company planning styles. Used with --e.

Each template sets up default plan.md, tools.md, criteria.md, and mcp-schema.md to match the selected ecosystem.


Agent Folder Structure

A new agent is created at:

.dokugent/data/agents/{agentName}@YYYY-MM-DD_HH-mm-ss-ms/

Contents:

  • identity.json — agent profile
  • additional template files from ecosystem (if any)

⚠️ If you rename agentName, rename the folder too.


Workflow Guide

  1. Create an agent: dokugent agent or --t
  2. Validate it: --check
  3. Begin planning: dokugent plan
  4. Link tools and criteria
  5. Certify the agent

Best Practices

  • Use descriptive, lowercase agentName values
  • Align each agent with one main task
  • Use --e only when needed — don’t over-scaffold
  • Validate (--check) before publishing or certifying