Skip to content

Latest commit

 

History

History
367 lines (218 loc) · 8.77 KB

File metadata and controls

367 lines (218 loc) · 8.77 KB

Getting Started with CueLoop

Status: Active Owner: Maintainers Source of truth: this document for guided human onboarding Parent: CueLoop Documentation

This guide is for humans who want enough context to run CueLoop safely for the first time. If you only need the shortest command path, use the Quick Start. If you are an already-running coding agent using CueLoop as a ledger, use the Agent Usage Guide instead.

What CueLoop does

CueLoop keeps AI-agent work in repo-local files instead of hidden chat state:

  • active work: .cueloop/queue.jsonc
  • completed/rejected work: .cueloop/done.jsonc
  • project settings: .cueloop/config.jsonc
  • optional prompt overrides: .cueloop/prompts/*.md

A typical loop is:

write task → inspect queue → run supervised phases → validate locally → archive result

1. Install

From crates.io:

cargo install cueloop

From this repository:

git clone https://github.com/fitchmultz/cueloop cueloop
cd cueloop
make install

On macOS, install GNU Make with brew install make and use gmake if Apple make is first on PATH.

Check the binary:

cueloop version
cueloop --help

2. Initialize a project

Run this from the repository where you want CueLoop state:

cd your-project
cueloop init

Interactive init helps choose a runner, workflow mode, queue tracking policy, and optional first task. For scripts or CI fixtures:

cueloop init --non-interactive

After init, run:

cueloop queue validate
cueloop queue list

3. Add one task

cueloop task "Add regression tests for webhook delivery failures"
cueloop queue list
cueloop queue show <TASK_ID>

Use the task ID printed by cueloop task or cueloop queue list.

Good first tasks are small, specific, and easy to verify. Avoid asking the first run to redesign the whole repo.

4. Inspect before running

Before starting an agent, check what CueLoop will select and whether your runner setup is ready:

cueloop queue next --with-title
cueloop run one --dry-run
cueloop runner list
cueloop doctor

If no runner is configured yet, stop at the dry run and use the Local Smoke Test to verify the CLI and queue model without invoking an external model.

5. Run supervised work

Run one task:

cueloop run one

Or cap a loop explicitly:

cueloop run loop --max-tasks 1

Useful variants:

# Single-pass mode for simple work
cueloop run one --quick

# Full plan → implement → review flow
cueloop run one --phases 3

# Select and explain without executing
cueloop run one --dry-run

Do not start with an unlimited loop. Learn queue state, runner behavior, and local validation first.

6. Review and validate

After a run, inspect both Git and CueLoop state:

git status --short
cueloop queue validate
cueloop queue list

In this repository, the normal branch gate is:

make agent-ci

For another project, use that project’s local CI/test command.

7. Choose deeper docs by question

Question Read
What are all the commands? CLI Reference
How do queue files work? Queue
What fields can a task have? Task Schema and Field Reference
How do statuses and priorities work? Task Lifecycle and Priority
How do dependencies work? Task Relationships and Dependencies
What happens in each execution phase? Phases
How do I configure runners and models? Runners and Configuration
How do CI gates and review safeguards work? Supervision
How do I recover interrupted work? Session Management
How do I use the macOS app? App (macOS)
How do I debug setup problems? Troubleshooting

Daily operator checklist

  1. cueloop queue validate
  2. cueloop queue list
  3. cueloop queue next --with-title
  4. cueloop run one --dry-run when unsure
  5. cueloop run one or a capped cueloop run loop --max-tasks <N>
  6. Review Git diff and queue state
  7. Run the project’s local validation gate

Next step

If you are evaluating CueLoop, run the Evaluator Path. If you are adopting it in a project, complete the Local Smoke Test before wiring up a real runner.

Legacy deep links

The previous version of this page was a long combined tutorial. These headings remain as lightweight redirects so old links and search results still land on useful current guidance.

What is CueLoop?

See What CueLoop does and the README.

Table of Contents

Use Pick Your Path in the documentation index.

1. Installation

See Install.

From crates.io (Recommended)

See Install.

From Source

See Install.

Verify Installation

See Install.

Add to PATH

See Install and Troubleshooting.

2. Quick Initialization

See Initialize a project.

Interactive Wizard

See Initialize a project and Quick Start.

Example Walkthrough

See Quick Start.

Non-Interactive Mode

See Initialize a project and Quick Start.

Force Reinitialization

See CLI Reference.

3. Your First Task

See Add one task.

macOS: Open the App (SwiftUI)

See App (macOS).

Run Your First Task

See Run supervised work.

View the Queue

See Inspect before running and Queue.

Creating Tasks

See Add one task and Task Operations.

Example Decomposition Session

See Task Operations and CLI Reference.

Example Task Session

See Daily operator checklist.

4. Understanding the Workflow

See Workflow in one page, Architecture Overview, and Phases.

The 3 Phases

See Phases.

Phase Mode Comparison

See Phases.

Choosing the Right Mode

See Phases.

Changing Modes

See Configuration and Phases.

5. Runner Selection

See Runners.

Runner Comparison

See Runners.

Recommended Models by Runner

See Runners and Agent and Runner Configuration.

Switching Runners

See Configuration and Runners.

Checking Runner Availability

See Inspect before running and Runners.

Installing Runners

See Runners.

6. Configuration Basics

See Configuration.

Configuration Locations

See Configuration.

Essential Configuration

See Configuration.

Key Configuration Options

See Configuration.

Viewing Current Configuration

See CLI Reference.

Configuration Profiles

See Profiles.

7. Daily Workflow

See Daily operator checklist.

Typical Daily Session

See Daily operator checklist.

CLI Quick Reference

See CLI Reference.

Managing Tasks

See Task Operations.

Git Workflow Integration

See Supervision.

8. Next Steps

See Next step.

Learn More

See Choose deeper docs by question.

Advanced Features

See Advanced Usage Guide.

Best Practices

See Daily operator checklist and Project Operating Constitution.

Getting Help

See Troubleshooting.

Community

See Support Policy.

Quick Reference Card

See Daily operator checklist and CLI Reference.