Skip to content

chore: agent-context command#74

Merged
notnmeyer merged 2 commits into
mainfrom
feat/agent-context
May 12, 2026
Merged

chore: agent-context command#74
notnmeyer merged 2 commits into
mainfrom
feat/agent-context

Conversation

@notnmeyer
Copy link
Copy Markdown
Member

@notnmeyer notnmeyer commented May 8, 2026

generates a json doc of all commands, args, and flags. an agent can use this command to get the complete use.

then, in theory, the cli skill can focus on higher-level workflows rather than the specific cli use.

an example filtered with jq so you can get the gist,

➜ loops agent-context | jq '.commands[] | select(.name == "transactional") | .commands[] | select(.name == "list")'
{
  "name": "list",
  "path": [
    "transactional",
    "list"
  ],
  "use": "list",
  "short": "List published transactional emails",
  "long": "",
  "hidden": false,
  "runnable": true,
  "args": [],
  "flags": [
    {
      "name": "cursor",
      "shorthand": "",
      "type": "string",
      "default": "",
      "description": "Pagination cursor for a specific page",
      "required": false,
      "persistent": false
    },
    {
      "name": "per-page",
      "shorthand": "",
      "type": "string",
      "default": "",
      "description": "Results per page (10-50, default 20)",
      "required": false,
      "persistent": false
    },
    {
      "name": "pick",
      "shorthand": "",
      "type": "bool",
      "default": "false",
      "description": "Interactively pick a row with fzf",
      "required": false,
      "persistent": false
    }
  ],
  "flagGroups": {
    "oneRequired": [],
    "mutuallyExclusive": [],
    "requiredTogether": []
  },
  "commands": []
}

@notnmeyer notnmeyer self-assigned this May 8, 2026
@notnmeyer notnmeyer requested review from chrisfrantz and danrowden May 8, 2026 20:09
@notnmeyer notnmeyer force-pushed the feat/agent-context branch from 3ad28ea to e59581b Compare May 12, 2026 14:32
@notnmeyer notnmeyer force-pushed the feat/agent-context branch from 47ec221 to 33e2a8b Compare May 12, 2026 14:38
@notnmeyer notnmeyer merged commit 4b0a13d into main May 12, 2026
2 checks passed
@notnmeyer notnmeyer deleted the feat/agent-context branch May 12, 2026 18:26
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.

2 participants