Skip to content

core dev

Multi-repo workflow and portable development environment.

Multi-Repo Commands

CommandDescription
workFull workflow: status + commit + push
healthQuick health check across repos
commitClaude-assisted commits
pushPush repos with unpushed commits
pullPull repos that are behind
issuesList open issues
reviewsList PRs needing review
ciCheck CI status
impactShow dependency impact
apiTools for managing service APIs
syncSynchronize public service APIs

Task Management Commands

Note: Task management commands have moved to core ai.

CommandDescription
ai tasksList available tasks from core-agentic
ai taskShow task details or auto-select a task
ai task:updateUpdate task status or progress
ai task:completeMark a task as completed
ai task:commitAuto-commit changes with task reference
ai task:prCreate a pull request for a task

Dev Environment Commands

CommandDescription
installDownload the core-devops image
bootStart the environment
stopStop the environment
statusShow status
shellOpen shell
serveStart dev server
testRun tests
claudeSandboxed Claude
updateUpdate image

Dev Environment Overview

Core DevOps provides a sandboxed, immutable development environment based on LinuxKit with 100+ embedded tools.

Quick Start

bash
# First time setup
core dev install
core dev boot

# Open shell
core dev shell

# Or mount current project and serve
core dev serve

dev install

Download the core-devops image for your platform.

bash
core dev install

Downloads the platform-specific dev environment image including Go, PHP, Node.js, Python, Docker, and Claude CLI. Downloads are cached at ~/.core/images/.

Examples

bash
# Download image (auto-detects platform)
core dev install

dev boot

Start the development environment.

bash
core dev boot [flags]

Flags

FlagDescription
--memoryMemory allocation in MB (default: 4096)
--cpusNumber of CPUs (default: 2)
--freshStop existing and start fresh

Examples

bash
# Start with defaults
core dev boot

# More resources
core dev boot --memory 8192 --cpus 4

# Fresh start
core dev boot --fresh

dev shell

Open a shell in the running environment.

bash
core dev shell [flags] [-- command]

Uses SSH by default, or serial console with --console.

Flags

FlagDescription
--consoleUse serial console instead of SSH

Examples

bash
# SSH into environment
core dev shell

# Serial console (for debugging)
core dev shell --console

# Run a command
core dev shell -- ls -la

dev serve

Mount current directory and start the appropriate dev server.

bash
core dev serve [flags]

Flags

FlagDescription
--portPort to expose (default: 8000)
--pathSubdirectory to serve

Auto-Detection

ProjectServer Command
Laravel (artisan)php artisan octane:start
Node (package.json with dev script)npm run dev
PHP (composer.json)frankenphp php-server
Otherpython -m http.server

Examples

bash
# Auto-detect and serve
core dev serve

# Custom port
core dev serve --port 3000

dev test

Run tests inside the environment.

bash
core dev test [flags] [-- custom command]

Flags

FlagDescription
--nameRun named test command from .core/test.yaml

Test Detection

Core auto-detects the test framework or uses .core/test.yaml:

  1. .core/test.yaml - Custom config
  2. composer.jsoncomposer test
  3. package.jsonnpm test
  4. go.modgo test ./...
  5. pytest.inipytest
  6. Taskfile.yamltask test

Examples

bash
# Auto-detect and run tests
core dev test

# Run named test from config
core dev test --name integration

# Custom command
core dev test -- go test -v ./pkg/...

Test Configuration

Create .core/test.yaml for custom test setup - see Configuration for examples.

dev claude

Start a sandboxed Claude session with your project mounted.

bash
core dev claude [flags]

Flags

FlagDescription
--modelModel to use (opus, sonnet)
--no-authDon't forward any auth credentials
--authSelective auth forwarding (gh, anthropic, ssh, git)

What Gets Forwarded

By default, these are forwarded to the sandbox:

  • ~/.anthropic/ or ANTHROPIC_API_KEY
  • ~/.config/gh/ (GitHub CLI auth)
  • SSH agent
  • Git config (name, email)

Examples

bash
# Full auth forwarding (default)
core dev claude

# Use Opus model
core dev claude --model opus

# Clean sandbox
core dev claude --no-auth

# Only GitHub and Anthropic auth
core dev claude --auth gh,anthropic

Why Use This?

  • Immutable base - Reset anytime with core dev boot --fresh
  • Safe experimentation - Claude can install packages, make mistakes
  • Host system untouched - All changes stay in the sandbox
  • Real credentials - Can still push code, create PRs
  • Full tooling - 100+ tools available in the image

dev status

Show the current state of the development environment.

bash
core dev status

Output includes:

  • Running/stopped state
  • Resource usage (CPU, memory)
  • Exposed ports
  • Mounted directories

dev update

Check for and apply updates.

bash
core dev update [flags]

Flags

FlagDescription
--applyDownload and apply the update

Examples

bash
# Check for updates
core dev update

# Apply available update
core dev update --apply

Embedded Tools

The core-devops image includes 100+ tools:

CategoryTools
AI/LLMclaude, gemini, aider, ollama, llm
VCSgit, gh, glab, lazygit, delta, git-lfs
Runtimesfrankenphp, node, bun, deno, go, python3, rustc
Package Mgrscomposer, npm, pnpm, yarn, pip, uv, cargo
Buildtask, make, just, nx, turbo
Lintingpint, phpstan, prettier, eslint, biome, golangci-lint, ruff
Testingphpunit, pest, vitest, playwright, k6
Infradocker, kubectl, k9s, helm, terraform, ansible
Databasessqlite3, mysql, psql, redis-cli, mongosh, usql
HTTP/Netcurl, httpie, xh, websocat, grpcurl, mkcert, ngrok
Datajq, yq, fx, gron, miller, dasel
Securityage, sops, cosign, trivy, trufflehog, vault
Filesfd, rg, fzf, bat, eza, tree, zoxide, broot
Editorsnvim, helix, micro

Configuration

Global config in ~/.core/config.yaml - see Configuration for examples.

Image Storage

Images are stored in ~/.core/images/:

~/.core/
├── config.yaml
└── images/
    ├── core-devops-darwin-arm64.qcow2
    ├── core-devops-linux-amd64.qcow2
    └── manifest.json

Multi-Repo Commands

See the work page for detailed documentation on multi-repo commands.

dev ci

Check GitHub Actions workflow status across all repos.

bash
core dev ci [flags]

Flags

FlagDescription
--registryPath to repos.yaml (auto-detected if not specified)
--branchFilter by branch (default: main)
--failedShow only failed runs

Requires the gh CLI to be installed and authenticated.

dev api

Tools for managing service APIs.

bash
core dev api sync

Synchronizes the public service APIs with their internal implementations.

dev sync

Alias for core dev api sync. Synchronizes the public service APIs with their internal implementations.

bash
core dev sync

This command scans the pkg directory for services and ensures that the top-level public API for each service is in sync with its internal implementation. It automatically generates the necessary Go files with type aliases.

See Also

  • work - Multi-repo workflow commands (core dev work, core dev health, etc.)
  • ai - Task management commands (core ai tasks, core ai task, etc.)

Released under the EUPL-1.2 License.