codespeak run

Build and run the target application.

Synopsis

codespeak run [spec_path] [--skip-tests] [--no-interactive] [--no-diff-check]

Description

Runs codespeak build and then starts the target application. If the build fails, the app is not started. Useful for quick iteration โ€” build and see the result in one step.

Flags

FlagDescription
spec_pathPath to the specification file. If omitted, all registered specs are built
--skip-testsSkip improving test coverage
--no-interactiveRun in non-interactive mode without real-time progress updates
--no-diff-checkSkip the check for uncommitted changes before building

Error messages

ErrorCauseResolution
Can't find spec to buildNo .cs.md files found and no specs registered in codespeak.jsonCreate a spec file or register one in codespeak.json
Spec file is empty: {path}The spec file exists but has no contentAdd content to the spec
Cannot specify both a positional spec path and --specBoth positional path and --spec flag providedUse one or the other
Anthropic API Key not foundNo API key configuredSet the ANTHROPIC_API_KEY environment variable or run through the interactive setup
Circular spec dependency detected: A -> B -> ASpec imports form a cycleRemove the circular import
{path} does not belong to a CodeSpeak projectNo codespeak.json foundRun codespeak init first
Failed to start target app: {reason}The application failed to start after a successful buildCheck the error details and fix the spec or environment

See also