agentleFS
GoldwaterfungGoldwaterfung/Stratawright/llms-full.txt

Stratawright

llms.txt71 starsChanged 56 days agoMITView on GitHub

Stratawright is an open-source, high-performance C++20 agentic Digital Audio Workstation (DAW) natively controlled by AI agents (Claude Code, Cursor, Codex, Hermes, Gemini) via a deterministic IPC interface (daw-cli). Open your AI agent (Claude Code, Codex, Cursor, Hermes, Gemini CLI, OpenCode, etc.) inside this project directory and tell it: (Your agent will automatically execute ./scripts/install_dependencies.sh and ./scripts/build.sh release --package under the hood). Run the dependency installation script to install build tools and bootstrap vcpkg: Get your session mixed, balanced, and organized…

  • In this repository2 other files it gives its agents.

The file

We split this llms-full.txt into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Verify IPC Connection: Always run daw-cli status first to verify that the DAW application is running before sending session mutation …

    line 6
  2. Distinctive:

    Automate Janitorial Tasks: When asked to record or mix, proactively offer to set up track naming, color coding, bus grouping, and initial …

    line 8
  3. Very specific:

    Preserve Audio Thread Safety: Use daw-cli IPC commands for session control rather than raw OS thread calls or blocking UI events.

    line 9
  4. Distinctive:

    Run the dependency installation script to install build tools and bootstrap vcpkg:

    line 30
  5. Very specific:

    All commands communicate with the running DAW application using a UNIX domain socket (/tmp/daw_session.sock).

    line 123
  6. Very specific:

    NO Dynamic Allocations (malloc, new).

    line 166
  7. Distinctive:

    NO Locking / Mutexes: Use lock-free SPSC ring buffers.

    line 167
  8. Distinctive:

    NO Disk/Network I/O on the audio callback thread.

    line 168

≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llms-full.txt
# Stratawright

> Stratawright is an open-source, high-performance C++20 agentic Digital Audio Workstation (DAW) natively controlled by AI agents (Claude Code, Cursor, Codex, Hermes, Gemini) via a deterministic IPC interface (`daw-cli`).

### Crucial Directives & Constraints for LLM Agents
- **Verify IPC Connection**: Always run `daw-cli status` first to verify that the DAW application is running before sending session mutation commands.
- **Use JSON Output**: Append `--format json` to `daw-cli` query commands when parsing track lists, plugin states, or transport status programmatically.
- **Automate Janitorial Tasks**: When asked to record or mix, proactively offer to set up track naming, color coding, bus grouping, and initial gain staging.
- **Preserve Audio Thread Safety**: Use `daw-cli` IPC commands for session control rather than raw OS thread calls or blocking UI events.

## Core Documentation

<doc title="Getting Started" path="QUICKSTART.md">
# Quick Start Guide

## 1. Agentic One-Prompt Setup (Recommended)

Open your AI agent (**Claude Code**, **Codex**, **Cursor**, **Hermes**, **Gemini CLI**, **OpenCode**, etc.) inside this project directory and tell it:

```text
Build and package Stratawright for me
```

*(Your agent will automatically execute `./scripts/install_dependencies.sh` and `./scripts/build.sh release --package` under the hood).*

## 2. Manual Command-Line Setup

### Install Dependencies

Run the dependency installation script to install build tools and bootstrap **vcpkg**:

```bash
./scripts/install_dependencies.sh
```

### Build the Project
```bash
./scripts/build.sh release
```

### Run the Application
```bash
./build/release/bin/agent_based_daw
```
</doc>

<doc title="Primary README" path="README.md">
# Stratawright: The Open-Source AI DAW for Agentic Music Production

### Stratawright

**Get your session mixed, balanced, and organized in seconds. Stop wasting time on tedious DAW setup—tell your AI assistant what you need and stay in your creative flow.**

## Overview

Stratawright is an agentic DAW that your AI agent can natively control so you can focus purely on making music. Instead of spending 30 minutes manually levelling tracks for streaming, removing background noise from recordings, or routing effect plugins across every track, just tell your AI assistant (**Claude Code**, **Cursor**, **Codex**, **Hermes**, or **Gemini**) what you want in plain English. Your session gets prepped, balanced, and ready for production in seconds.

## Key Features

- **Natural Language DAW Control**: Perform complex session edits, track routing, and VST3/AU plugin hosting using simple text commands via `daw-cli`.
- **Automatic Gain Staging**: Instantly normalize clip gains to analog-modeled sweet spots (-18 dBFS nominal RMS) across 100+ track sessions.
- **Semantic Track Bus Grouping**: AI agents understand track naming conventions (`GTR_L` → Guitar Bus) and group stems automatically.
- **8-Layer Decoupled C++20 Engine**: High-level agent mutations never block or compromise real-time audio callback safety.
- **Lock-Free DSP Architecture**: Real-time DSP path utilizing pre-allocated zero-allocation processing nodes and lock-free SPSC ring buffers.
</doc>

<doc title="Frequently Asked Questions" path="FAQ.md">
# Stratawright FAQ: Open-Source AI DAW & Agentic Music Production

> **Frequently Asked Questions about Stratawright** — The open-source, C++20 agentic Digital Audio Workstation (DAW) natively controlled by AI agents (Claude Code, Cursor, Codex, Hermes, Gemini).

## 1. Core Concepts & Definitions

### What is Stratawright?
**Stratawright** is an open-source, high-performance C++20 Digital Audio Workstation (DAW) designed specifically for **agentic music production**. It features a dedicated IPC server daemon and command-line interface (`daw-cli`) that allows AI agents—such as Claude Code, Cursor, Codex, Hermes, or Gemini—to natively control recording, track creation, mixing, gain staging, routing, and VST3/AU plugin parameters using natural language prompts.

### What is an Agentic DAW?
An **Agentic DAW** is a Digital Audio Workstation engineered from the ground up to let autonomous AI agents interact directly with the DAW's session model and audio processing graph. Unlike traditional DAWs that rely exclusively on manual mouse clicks, key commands, and complex graphic user interfaces (GUIs), an agentic DAW exposes deterministic IPC (Inter-Process Communication) and structured JSON APIs so AI agents can execute multi-step session edits, stem grouping, automated gain staging, and effect routing in parallel.

## 2. Recording, MIDI & Session Setup

### How does Stratawright help capture song ideas faster without technical DAW setup?
In **Stratawright**, you tell your AI assistant what you want to record (e.g., *"Set up an acoustic guitar track and a lead vocal track with reverb"*). The AI agent creates, configures, and arms the tracks in under 3 seconds so you stay 100% in your creative zone without clicking through software menus or remembering shortcuts.

### Do I need to learn complex keyboard shortcuts or software menus?
No. Stratawright eliminates the "shortcut tax." Every DAW operation—from transport controls and track creation to plugin hosting—can be triggered using plain natural language prompts through connected AI assistants (Claude Code, Cursor, Gemini, etc.) or standard CLI commands (`daw-cli`).

### Can I edit MIDI events and pattern clips using natural language prompts?
Yes. Through `daw-cli`, AI agents can programmatically insert, quantize, transpose, and adjust velocity values for MIDI notes and sequence clip regions on instrument tracks.

## 3. Mixing, Gain Staging & Plugins

### How does Stratawright eliminate tedious session prep and housekeeping before a mix?
Mix engineers spend 30–60 minutes per session renaming tracks, color-coding stems, normalizing levels, and creating sub-mix buses. Stratawright automates this entire janitorial phase via a single prompt (e.g., *"Prep this session for mixing"*).

### How does automatic gain staging work, and why does it target -18 dBFS nominal RMS?
The AI agent inspects multi-track peak and RMS signal levels using non-destructive audio intelligence. It calculates exact gain offsets to bring average track levels to **-18 dBFS nominal RMS** (with a -6 dBFS peak ceiling), optimal for analog-modeled VST3/AU plugins.

### How are plugin delay compensation (PDC) and latency managed?
Stratawright automatically calculates plugin latencies across the DSP processing graph and applies sample-accurate delay offsets to faster signal paths, keeping all multi-track audio and MIDI signals in strict phase alignment.

## 4. Architecture, Offline Safety & IPC Integration

### How do I connect my AI agent or LLM CLI to Stratawright?
Stratawright runs an IPC server daemon listening on a local UNIX domain socket (`/tmp/daw_session.sock`). AI agents interact with the DAW via `daw-cli` or custom socket clients. Programmatic queries support `--format json` output.

### How does Stratawright guarantee real-time audio safety and zero dropouts during AI agent mutations?
Stratawright uses a strict **8-Layer Decoupled C++20 Architecture**. Communication between the Middle Bridge controller layer and core DSP engine uses **lock-free SPSC ring buffers** and atomic state arrays, guaranteeing zero buffer underruns (glitches/clicks).

### Does Stratawright require an internet connection to function?
No. Stratawright runs 100% locally. The C++ core engine and `daw-cli` IPC daemon operate on your local machine (`/tmp/daw_session.sock`), allowing complete offline usage. You can pair it with local open-weights LLMs (such as Ollama, Llama.cpp, or Hermes) for a private, offline AI DAW environment.
</doc>

## Advanced Usage

<doc title="CLI Operational Manual" path="skills/daw-cli/SKILL.md">
# Stratawright DAW CLI Control

## Overview

`daw-cli` is the command-line IPC client for **Stratawright DAW**, allowing AI agents and automation tools to query and mutate session state, manage tracks, perform gain-staging, host VST3/AU/CLAP plugins, and execute clip and MIDI timeline edits in real time.

All commands communicate with the running DAW application using a UNIX domain socket (`/tmp/daw_session.sock`).

## Essential Agent Commands

### Session & Transport
- `daw-cli status [--format json]`
- `daw-cli transport play`
- `daw-cli transport stop`
- `daw-cli transport set-tempo --bpm <float>`

### Track Operations & Gain Staging
- `daw-cli track create --name "<name>" --type <audio|midi|aux|folder> --color <color>`
- `daw-cli track list [--format json]`
- `daw-cli track set-gain --track <range> --db <float>`
- `daw-cli track group-bus --tracks <range> --bus-name "<name>"`

### Plugin Hosting
- `daw-cli plugin scan`
- `daw-cli plugin insert --track <id> --name "<plugin_name>" --slot <index>`
</doc>

<doc title="Architecture Specification" path="ARCHITECTURE.md">
# Architecture

**Stratawright** — a modular, layer-based digital audio workstation written in C++20.

The project follows a **strict layered architecture** with 8 layers plus a **Middle Bridge** that decouples Presentation and Agentic interfaces from the domain:

- **L8 (Agentic Layer)**: IPC daemon endpoint, command parsing, and LLM structured interface.
- **L7 (Presentation)**: GUI and UX controllers.
- **L6-L4 (Logic)**: Media Management, Musical Composition, and DSP Node graph.
- **L3 (Engine)**: The Core Audio Engine, strictly non-blocking.
- **L2-L1 (Platform)**: Abstraction for OS, Hardware, and Audio/MIDI Drivers (ALSA/JACK/ASIO).
</doc>

## Optional

<doc title="Contributing Guidelines" path="CONTRIBUTING.md">
# Contributing to Stratawright

## Architectural Rules
1. **Directional Dependency**: Layer $N$ may only depend on layers below it.
2. **Real-Time (RT) Thread Safety**:
   - NO Dynamic Allocations (`malloc`, `new`).
   - NO Locking / Mutexes: Use lock-free SPSC ring buffers.
   - NO Disk/Network I/O on the audio callback thread.
3. **C++20 Standard**: Modern C++20 only.
</doc>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.