Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

Agent Workflows

Available in the old interface only

Agent Workflows ship in the old interface, and the steps below describe the old one.

To hire a code-review agent from the Agents tab in DioS in the new interface, see Agents in DioS.

Overview​

Agent Workflows are multi-step, human-in-the-loop runs that analyze code and pause for review before moving to the next step. Each step runs asynchronously, shows progress, and exposes results in the UI. You can approve or reject a step, optionally re-running with feedback, before continuing.

Supported Agent Workflows​

  • Code Analysis: Runs Code Structure Analysis and Complexity Analysis to surface dependencies, issues, and complexity metrics.
  • For a full list of available workflows, see Supported Types.

Searching your sources​

Code analysis agents search the sources that have search turned on, both your own and the ones shared with you, to find extra context. There is nothing to attach to the workflow. To make a source searchable, turn on its Search index tab (see Search index).


Prerequisites​

  • Access to the Agents module.
  • A configured LLM Datasource (for example, OpenAI or Ollama).
  • A configured Input Datasource for GitHub or AWS S3.

Workflow Inputs (Quick Reference)​

  • Workflow Name: Auto-generated; rename as needed.
  • LLM Datasource: The model used for analysis.
  • Input Type: GitHub or AWS S3.
  • Datasource: The GitHub or S3 datasource to scan.
  • Branch: Git branch to analyze (GitHub only).
  • Select Object(s): Repository, folder, or file to analyze.
  • Codebase Description: Optional context to improve results.

Workflow Statuses​

Workflow status badges appear in the list view and at the top of each workflow.

  • PENDING: Workflow created, waiting to start.
  • RUNNING: A step is currently executing.
  • AWAITING_APPROVAL: A step finished and needs review.
  • COMPLETED: All steps approved and finished.
  • FAILED: A step failed or the workflow stopped.

Step-by-Step: Create a Code Analysis Workflow​

Step 1: Open Agents → Workflows​

Navigate to Agents and select Workflows.

Agents workflows page


Step 2: Start a new workflow​

Click CREATE WORKFLOW.


Step 3: Choose Code Analysis​

Select Code Analysis and click NEXT.

Code Analysis selected


Step 4: Review the Workflow Inputs form​

The Create Workflow form opens with required inputs.

Workflow inputs form


Step 5: Configure required inputs​

  1. Set LLM Datasource (example: QuickStartOpenAI).
  2. Set Input Type to GitHub or AWS S3.
  3. Select Datasource (example: QuickStartGit).
  4. Choose the target repo or object in Select Object(s).
  5. Keep or update Branch if using GitHub.

Inputs configured


Step 6: Create the workflow​

Click NEXT to create the workflow and open the first step.


Step 7: Open Code Structure Analysis​

Review the prompt settings, then click RUN CODE STRUCTURE ANALYSIS.

Code Structure Analysis step


Step 8: Wait for completion and review results​

Wait for progress to reach 100% and review the results as they load.

Code Structure Analysis completed


Step 9: Approve or reject the step​

Use APPROVE to continue or REJECT with feedback to re-run the step.


Step 10: Review Complexity Analysis​

Open the Complexity Analysis step to review charts, function-level scores, and recommendations.

Complexity Analysis results


Step 11: Final approval​

Approve or reject the Complexity Analysis step to complete the workflow.


Results​

After completion, you can review:

  • Files analyzed, functions, and lines of code
  • Dependencies, objects, issues, and insights
  • Complexity distribution and function-level scores
  • Recommendations for high-complexity areas

Best Practices​

  1. Start with a focused repo or folder to keep runtime manageable.
  2. Use the Branch field to target a specific release or commit line.
  3. Add a Codebase Description to improve analysis accuracy.
  4. Turn on the Search index for sources with documentation or metadata that should inform analysis.