Quick Start
- CLI
- TUI
codemachine.
Source Formats
CodeMachine supports multiple import source formats:| Format | Example | Resolution |
|---|---|---|
| Local path (absolute) | /path/to/folder | local-path |
| Local path (relative) | ./my-package or ../other | local-path |
| Local path (home) | ~/projects/my-workflow | local-path |
| Short name | package-name | github-search |
| Owner/repo | user/repo | github-repo |
| Full URL | https://github.com/user/repo | github-repo |
| Git SSH | [email protected]:user/repo.git | git-url |
Resolution Priority
When you run an import, CodeMachine checks sources in this order:- Local path — if it’s absolute, starts with
./,../, or~ - HTTPS URLs — full GitHub or git URLs
- Git SSH URLs —
git@format - Owner/repo format — checks if local path exists first
- Short name — searches GitHub for matching packages
Local Imports
Import workflows from your local filesystem for development and testing.Path Formats
Local imports require a valid manifest file (
codemachine.json or .codemachine.json) in the source directory.Local Path Resolution
For a path to be recognized as local, it must:- Be an absolute path (starts with
/) - Start with
./or../(relative) - Start with
~(home directory) - Contain a valid manifest file
GitHub Imports
Import workflows directly from GitHub repositories.By Owner/Repo
By Full URL
By Short Name
Search GitHub for packages by name:Short name search looks for repositories with the
-codemachine suffix on GitHub.Git SSH
Manifest Files
Every importable package needs a manifest file (codemachine.json or .codemachine.json) at the root with name and version fields.
For details on creating and configuring manifest files, see Publish Workflow.
Validation Requirements
Both local and remote imports must pass validation:Import Location
Imported packages are stored in:codemachine-one creates:
Examples
Import Local Development Package
Import from GitHub
Import Using TUI
Within CodeMachine, use the/import command:
Troubleshooting
Import fails with 'manifest not found'
Import fails with 'manifest not found'
Ensure your package has either
codemachine.json or .codemachine.json at the root level with valid name and version fields.Import fails with 'missing main.agents.js'
Import fails with 'missing main.agents.js'
Create
config/main.agents.js with at least one agent definition:Import fails with 'no workflow files'
Import fails with 'no workflow files'
Create at least one
.workflow.js file in templates/workflows/:Local path not recognized
Local path not recognized
Make sure your path:
- Starts with
/(absolute),./,../(relative), or~(home) - Points to an existing directory
- Contains a valid manifest file
Next Steps
Publish Workflow
Share your workflow with others on GitHub