Mastering the T20 Multi-Agent System

Chapter 4: Usage and Advanced Examples

This chapter details how to effectively use the T20 Multi-Agent System, covering basic usage patterns, how to explore the artifacts generated during a run, and diving into advanced scenarios. It also provides guidance on debugging and troubleshooting common issues encountered when working with the system. The aim is to empower users to leverage the full potential of T20 for complex task automation.

4.1 Basic Usage Patterns

The T20 system is primarily operated through its Command-Line Interface (CLI), t20-cli. The fundamental interaction involves providing a high-level goal as a string argument.

Crafting Effective High-Level Goals

The quality and specificity of your goal directly influence the outcome. Aim for clarity and provide enough context for the Orchestrator (Meta-AI) to understand the desired end state.

Interpreting CLI Output

When you run t20-cli <your_goal>, the system provides real-time feedback:

Understanding this output helps you track the progress and identify potential bottlenecks or issues.

4.2 Exploring Session Artifacts

Each run of the T20 system generates a dedicated session directory (e.g., sessions/session_xyz...) containing all the artifacts produced during the execution. These artifacts are invaluable for understanding the system's process and for debugging.

Navigating Session Directories

Each session folder typically contains:

Analyzing Key Artifacts

4.3 Advanced Scenarios

The T20 system's flexibility allows for sophisticated applications beyond simple tasks.

Complex Goal Decomposition

For highly complex goals, the Orchestrator's dynamic planning is crucial. You might see plans with many steps, involving multiple iterations or conditional logic (though explicit conditional logic in the plan structure itself might depend on future enhancements).

Leveraging Lyra for Prompt Optimization

Lyra, the Prompt Engineer agent, can dynamically refine system prompts to improve agent performance. While this is often handled automatically, understanding this capability is key.

Customizing Agent Configurations

Agents are defined in YAML files (e.g., agents/designer.yaml). You can customize these definitions to:

Example: To use a different model for Kodax, you would edit its YAML file, changing the model: field. For instance:


# agents/kodax.yaml (example modification)
name: Kodax
role: Engineer
model: gemini-2.5-flash-alt # Changed from default
goal: Implement designs into clean, modular, and performant code.
        

4.4 Debugging and Troubleshooting

When things don't go as planned, the session artifacts are your best resource.

Common Issues and Solutions

Using Session Logs for Debugging

Session logs provide a chronological record of the system's execution. By tracing the prompts sent to agents and their responses, you can pinpoint where the process deviated or failed. Look for specific error messages, timeouts, or unexpected content in the logs to diagnose the problem.

By mastering these usage patterns and troubleshooting techniques, you can effectively harness the power of the T20 Multi-Agent System for a wide range of complex tasks.