Skip to content

Add repo/project loop discovery#8

Open
andrei-hasna wants to merge 1 commit into
codewith/compact-cli-gradual-disclosure-20260624from
codewith/repo-project-loop-discovery-20260624
Open

Add repo/project loop discovery#8
andrei-hasna wants to merge 1 commit into
codewith/compact-cli-gradual-disclosure-20260624from
codewith/repo-project-loop-discovery-20260624

Conversation

@andrei-hasna

Copy link
Copy Markdown
Contributor

Summary

  • Add repo/project discovery filters for loops list and loops runs: --repo/--project, --cwd, --name, and --text.
  • Add --with-latest-run for loop list health summaries and a new loops project show <path-or-name> summary view.
  • Match cwd, command strings, agent prompts, descriptions/goals, workflow inputs/steps, and future OpenRepos-style metadata while keeping human output compact and JSON scriptable.
  • Bound latest-run JSON output and scan filtered loop results in chunks instead of silently capping at a fixed limit.

Before / After

Before, checking open-codewith loops required something like:

loops -j list | jq ... # match cwd/command/name/description/goal by hand
for id in $(...); do loops -j show "$id"; loops -j runs "$id" --limit 1; done

Now operators can use:

loops list --repo open-codewith
loops list --repo open-codewith --with-latest-run --json
loops runs --repo open-codewith --status failed
loops project show open-codewith

Validation

  • bun run typecheck
  • bun test src/cli/index.test.ts
  • bun test
  • bun run build
  • git diff --check

Adversarial Review

Reviewer found sibling path false positives, filtered pagination hint issues, unbounded latest-run JSON errors, fixed scan cap risk, and empty filter handling. Reconciled with exact basename path matching, repeat-command cursor hints, compact bounded latest-run JSON, chunked scans with store offsets, and empty filter validation.

Notes

This PR is stacked on the compact-output CLI PR because it builds on those output defaults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant