Skip to content

Implement Phase 9: CLI and developer experience - #11

Merged
lonestarx1 merged 3 commits into
mainfrom
phase9
Feb 16, 2026
Merged

Implement Phase 9: CLI and developer experience#11
lonestarx1 merged 3 commits into
mainfrom
phase9

Conversation

@lonestarx1

Copy link
Copy Markdown
Owner

Summary

  • Replace the single-line CLI stub with a full subcommand-based CLI (version, init, list, run, trace, cost) using stdlib flag — no external CLI framework
  • Add YAML-based project configuration (internal/config/) with env var substitution (${VAR}, ${VAR:-default}) via gopkg.in/yaml.v3 (only new dependency)
  • Add run record persistence (internal/runrecord/) saving results to .gogrid/runs/<run-id>.json for trace and cost inspection
  • Add project scaffolding templates (single agent, team, pipeline) for gogrid init
  • Add version injection via -ldflags -X in the Makefile build target

Test plan

  • make build && bin/gogrid version prints version info
  • bin/gogrid init --template single /tmp/test-project scaffolds a valid project
  • bin/gogrid list prints agents from a gogrid.yaml
  • bin/gogrid run <agent> -input "hello" executes and saves run record (requires API key)
  • bin/gogrid trace <run-id> renders span tree
  • bin/gogrid cost <run-id> renders cost breakdown
  • go test -race ./... — all tests pass (30 new + all existing Phase 0-7 tests)
  • golangci-lint run ./... — clean

Add a proper CLI with subcommand dispatch (version, init, list, run,
trace, cost) replacing the single-line stub. YAML-based project
configuration via gopkg.in/yaml.v3 with env var substitution
(${VAR}, ${VAR:-default}). Project scaffolding templates for single
agent, team, and pipeline patterns. Run record persistence under
.gogrid/runs/ for trace and cost inspection. Version injection via
-ldflags at build time.

New packages: internal/config, internal/runrecord, internal/cli,
internal/cli/templates. Only new external dependency: yaml.v3.
@vercel

vercel Bot commented Feb 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gogrid Ready Ready Preview, Comment Feb 16, 2026 0:49am

Add docs/cli.md with full CLI reference covering all commands, config
schema, environment variables, run records, and supported models.
Add examples/cli-quickstart/ with a multi-agent gogrid.yaml
demonstrating three agents across two providers with env var overrides.
Update README.md with Quick Start section, CLI overview with config
and trace/cost examples, and links to new docs and examples.
- Add 4 new docs sections: CLI, Configuration (YAML), CLI Commands, Run Records
- Add 3 new examples: CLI Multi-Agent Project, Trace & Cost Inspection, Project Scaffolding
- Update project structure in Getting Started to include internal/cli/ and internal/config/
@lonestarx1
lonestarx1 merged commit 3118462 into main Feb 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant