php/docs/build/cli/ai/example.md
Snider 28d004ff61
Some checks failed
CI / PHP 8.4 (push) Failing after 1m54s
CI / PHP 8.3 (push) Failing after 1m58s
feat: replace Go CLI with PHP framework
Go CLI commands moved to core/go-php. This repo now contains
the Laravel modular monolith framework (previously php-framework).

- Remove all Go files (now in core/go-php)
- Add PHP framework: event-driven module loading, lifecycle events
- Composer package: core/php
- core/php-framework remains as-is for backward compat

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-06 08:49:51 +00:00

1.8 KiB

AI Examples

Workflow Example

Complete task management workflow:

# 1. List available tasks
core ai tasks --status pending

# 2. Auto-select and claim a task
core ai task --auto --claim

# 3. Work on the task...

# 4. Update progress
core ai task:update abc123 --progress 75

# 5. Commit with task reference
core ai task:commit abc123 -m 'implement feature'

# 6. Create PR
core ai task:pr abc123

# 7. Mark complete
core ai task:complete abc123 --output 'Feature implemented and PR created'

Task Filtering

# By status
core ai tasks --status pending
core ai tasks --status in_progress

# By priority
core ai tasks --priority critical
core ai tasks --priority high

# By labels
core ai tasks --labels bug,urgent

# Combined filters
core ai tasks --status pending --priority high --labels bug

Task Updates

# Change status
core ai task:update abc123 --status in_progress
core ai task:update abc123 --status blocked

# Update progress
core ai task:update abc123 --progress 25
core ai task:update abc123 --progress 50 --notes 'Halfway done'
core ai task:update abc123 --progress 100

Git Integration

# Commit with task reference
core ai task:commit abc123 -m 'add authentication'

# With scope
core ai task:commit abc123 -m 'fix login' --scope auth

# Commit and push
core ai task:commit abc123 -m 'complete feature' --push

# Create PR
core ai task:pr abc123

# Draft PR
core ai task:pr abc123 --draft

# PR with labels
core ai task:pr abc123 --labels 'enhancement,ready-for-review'

# PR to different base
core ai task:pr abc123 --base develop

Configuration

Environment Variables

AGENTIC_TOKEN=your-api-token
AGENTIC_BASE_URL=https://agentic.example.com

~/.core/agentic.yaml

token: your-api-token
base_url: https://agentic.example.com
default_project: my-project