ποΈ Project Structure Guide
This guide shows you how to create and explore a real SuperOptiX Agentic System project using the CLI, and explains the meaning of each directory and file.
π Step 1: Initialize Your Agentic System
To start, create a new Agentic System project using the super init
command. For example, to create a software engineering system called swe
:
Youβll see a message confirming your project is ready.
π Step 2: Explore the Project Structure
Change into your new project directory:
Youβll see output like:
total 48
drwxr-xr-x@ 10 user staff 320 ... ./
drwxr-xr-x ... ../
-rw-r--r--@ 1 user staff ... .env
-rw-r--r--@ 1 user staff ... .gitignore
-rw-r--r--@ 1 user staff ... .pre-commit-config.yaml
-rw-r--r--@ 1 user staff ... .super
-rw-r--r--@ 1 user staff ... README.md
-rw-r--r--@ 1 user staff ... pyproject.toml
drwxr-xr-x@ 12 user staff ... swe/
drwxr-xr-x@ 5 user staff ... tests/
Key files and folders:
-
π
.super
β This file marks the root of your Agentic System. Always runsuper
commands from this directory. -
βοΈ
pyproject.toml
β Python package configuration for your agentic system. -
π
README.md
β Project overview and documentation. -
π¦
swe/
β Main Python package for your agentic modules and logic. -
π§ͺ
tests/
β Place your tests here.
π§© Step 3: Explore the Agentic Modules
List the contents of the main package directory:
Youβll see subdirectories for each agentic module:
agents/ guardrails/ memory/ protocols/ teams/
evals/ knowledge/ optimizers/ servers/ tools/
Directory meanings:
-
π€
agents/
β Each agent lives in its own subdirectory here. Agent playbooks, pipelines, and optimized pipelines are stored here. -
π‘οΈ
guardrails/
β Guardrails for safety, validation, and compliance. -
π§
memory/
β Memory modules for your agents. -
π‘
protocols/
β Communication and orchestration protocols. -
π₯
teams/
β Multi-agent team configurations. -
β
evals/
β Evaluation scenarios and test cases. -
π
knowledge/
β Knowledge bases and data sources. -
β‘
optimizers/
β Optimization strategies and modules. -
π
servers/
β Server and API integration code. -
π§
tools/
β Custom tools and utilities for your agents.
π·οΈ Step 4: Pull and Compile an Agent
Letβs add a pre-built agent and see what files are created.
This creates a new agent directory structure:
π swe/agents/developer/
- π playbook/
β Contains the agent's configuration files
- π developer_playbook.yaml
β Agent definition and configuration
Now compile the agent:
This generates a pipeline structure:
π swe/agents/developer/
- π playbook/
β Agent configuration files
- π developer_playbook.yaml
β Agent definition
- βοΈ pipelines/
β Generated pipeline files
- π developer_pipeline.py
β Executable agent pipeline
π Step 5: Explore Agent Files
Agent Playbook:
swe/agents/developer/playbook/developer_playbook.yaml
This YAML file defines the agentβs persona, tasks, evaluation scenarios, and optimization strategy.
Agent Pipeline:
swe/agents/developer/pipelines/developer_pipeline.py
This Python file is an auto-generated, executable pipeline for the agent, ready for further customization.
π Example: Playbook and Pipeline
Playbook (YAML):
apiVersion: agent/v1
kind: AgentSpec
metadata:
name: Developer Assistant
id: developer
...
spec:
language_model:
provider: ollama
model: llama3.2:1b
api_base: http://localhost:11434
persona:
name: DevBot
role: Software Developer
goal: Write clean, efficient, and maintainable code
...
Pipeline (Python):
class DeveloperPipeline(
TracingMixin,
ModelSetupMixin,
ToolsMixin,
BDDTestMixin,
UsageTrackingMixin,
EvaluationMixin
):
...
def __init__(self):
...
self.module = DeveloperModule()
...
π‘ Tips
- All
super
CLI commands (e.g.,super agent
,super orchestra
,super spec
) must be run from the root directory containing the.super
file. - Each agentβs logic, playbooks, and pipelines are isolated in their own subdirectories under
agents/
. - The project is a standard Python package β you can ship and reuse it in other Agentic Systems.