The Human‑Centric Orchestration Cockpit for VS Code.
Leion Roots is a low‑level orchestration layer designed to manage workflows between humans and AI agents with absolute transparency. It prioritizes Human Sovereignty over AI autonomy.
“No Magic. No Opaque Autonomy. Strict Human Validation.”
Leion Roots is designed to support a clear “Review & Merge” workflow where AI agents (like Codex or Jules) are producers/reviewers, but never decision‑makers.
- Orchestration + Traceability: Every action is visible, logged, and reproducible.
- Terminal as Bedrock: The primary interface is the
Terminalprovider. It is deterministic and visible. - Agents are Tools: Intentions are proposed; destructive actions require explicit human confirmation.
If Leion Roots becomes magical, opaque, or autonomous, the project has failed.
Construct workflows visually using a drag‑and‑drop interface.
- Drag & Drop: Pull providers (Terminal, Git, System) from the sidebar.
- Inline Configuration: Edit commands and arguments directly in the graph.
- Live Status: Watch steps execute in real time with Running/Success/Failure indicators.
- Launch: Open via the Leion Roots view in the Activity Bar.
Leion Roots comes with strict, low‑level providers:
- Terminal: The neutral base. Reuses a single “Intent Router” terminal instance to keep history visible.
- Capability:
terminal.run
- Capability:
- System: Control flow and safety.
- Capability:
system.pause(Triggers a modal dialog for mandatory human review).
- Capability:
- Git: Wrapper around VS Code’s built‑in Git extension.
- Capabilities:
git.checkout,git.commit,git.push,git.pull.
- Capabilities:
- Docker: Wrapper around VS Code’s Docker extension.
- Capabilities:
docker.build,docker.run.
- Capabilities:
- Variables (
${input:Prompt}): Ask the human for input at runtime (e.g., “Which branch?”). Values are cached per session. - Pause (
system.pause): Stop execution and wait for user confirmation. - Linear Execution: Steps run sequentially. If one fails, the pipeline stops.
- Detection: Select the latest PR branch.
- Checkout:
terminal.runchecks out the branch. - AI Review: An AI agent reads code, tests, and fixes locally.
- Human Validation:
system.pausehalts the pipeline for review. - Merge: You manually merge if satisfied.
- Loop: The pipeline continues to the next PR.
Rules:
- No agent merges code automatically.
- All Git actions are visible in the Terminal.
- Open the Leion Roots view in the Activity Bar.
- Click + (New Pipeline).
- Drag nodes (e.g., Terminal) onto the canvas.
- Configure steps:
- Terminal:
echo "Checking out..." && git checkout -b feature/demo - System: Pause with message “Check the code now!”
- Terminal:
- Click Save Pipeline. It is saved as
pipeline/<name>.intent.json.
- From the Builder: Click Run or use the Command Palette.
- From the Tree View: Right‑click a pipeline in Intent Pipelines and select Run.
- Dry Run: Simulates execution without side effects (where supported).
Pipelines are stored as simple JSON files:
{
"name": "review-flow",
"steps": [
{
"intent": "terminal.run",
"description": "Checkout Branch",
"payload": {
"command": "git checkout ${input:BranchName}"
}
},
{
"intent": "system.pause",
"description": "Human Review",
"payload": {
"message": "Review the code. Continue if safe."
}
}
]
}- Intent: An abstract definition of “what needs to be done.”
- Router: Resolves intents to specific capabilities based on installed extensions.
- Providers: Adapters that map intents to VS Code APIs or external tools.
- Pipeline Runner: Executes a linear sequence of intents, handling state and events.
- Clone the repository.
npm installnpm run compileF5to launch the Extension Development Host.