Using Cabbage 3
Using AI Assistants
Cabbage 3 runs inside VS Code, so it fits naturally into a paired workflow with an AI assistant. You can ask for Csound code, widget JSON or a custom interface, paste the result into your project, and compile it without leaving the editor.
The weak link is usually the documentation the assistant has seen. Most models know Cabbage 2 and will confidently mix its identifiers and syntax into Cabbage 3 files. Give the assistant the Cabbage 3 documentation directly and it has a much better chance of producing code that compiles.
Text-only documentation
Section titled “Text-only documentation”The website publishes the documentation in three text-only forms for AI assistants:
- llms.txt — a short index that links to the complete and abridged sets.
- llms-small.txt — the abridged documentation. Use this when the assistant has a small context window.
- llms-full.txt — the complete documentation, including the widget and UI specification, opcode reference, syntax, examples and custom-interface API.
The files are generated from this documentation when the site is built, so they mirror the latest Cabbage 3 changes. The complete set is large, but it is still much cheaper than letting an assistant search the web, guess at property names, and iterate through failed compiles.
Recommended workflow
Section titled “Recommended workflow”- Load the documentation. If the assistant can browse the web, give it the
llms-full.txtURL. If it accepts files, downloadllms-full.txtand attach it to the conversation or add it to the assistant’s project knowledge. Usellms-small.txtwhen context is limited. - State the version. Tell the assistant you are using Cabbage 3 and Csound 7, and that Cabbage 2 identifiers such as
rslider,comboboxand identifier strings are not valid. Start a new conversation when you move to a different instrument so the context stays focused. - Ask for a complete file. For a new instrument or widget, ask for a complete
.csdand name the widget types, channel IDs, ranges and layout you want. The assistant can check the widget reference in the documentation instead of inventing properties. - Compile and iterate. Save the file with Compile On Save enabled, then paste any Csound or Cabbage error output back into the conversation. The error message plus the documentation is usually enough for the assistant to correct its own mistake.
- Refresh local copies. If you saved the documentation to disk, download it again after a Cabbage update. The online files are rebuilt whenever the documentation changes.