Skip to content

next and audit commands #185

@bdarcus

Description

@bdarcus

Context

Currently, I'm wrapping beans in complex bash/jq scripts to derive the "next" task or "audit" data integrity against git history for a project I'm working on. As I had the agent work on optimizing it (it's extremely slow), I asked whether we should recommend any upstream features, and here's what it strongly suggested.

Proposal:

  1. beans next: Implement native task ranking in Go. Use the existing tree-based hierarchy to traverse the task list. It can identify "ready" leaf nodes, prioritize items based on their position in the tree or metadata (like priority), and filter out blocked/completed work instantly.
  2. beans audit: Add a command to validate bean integrity. This would check for broken tree structures (e.g., orphaned children) and optionally use go-git to scan the repository's commit history for bean IDs to flag "stale" open beans that have already landed on the main branch.

Benefit

Native Go implementation provides machine-optimized, zero-dependency endpoints for AI agents to decide their next move and verify their work, staying consistent with the project's "agent-first" philosophy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions