Folder Structure
Every workflow package follows this structure:my-workflow-codemachine
codemachine.json
config
main.agents.js
sub.agents.js
modules.js
placeholders.js
agent-characters.json
templates
workflows
example.workflow.js
prompts
A minimum workflow requires only three files:
codemachine.json, main.agents.js, and a .workflow.js file. Everything else is optional.Required Files
Optional Files
Manifest File
Every workflow package must have acodemachine.json manifest at its root:
codemachine.json
Real Examples
Importing Packages
Once your package has a valid manifest, you can import it using the CLI or TUI:Import Workflows
Learn about all import sources: local paths, GitHub repos, and more
Next Steps
Build Agents
Learn how to configure agents in
main.agents.js