Skip to content

Conversation

@burmudar
Copy link
Contributor

  • tool will serve as an entry point for agents to use src as a skill or tool
  • use urfave/cli/v3 cli framework
  • add tool subcommand that will serve as testbed for agents using src tool as skills/tools

Note

tool is not the final name, open to other suggestions it's just a placeholder for now

Test plan

  • go run ./cmd/src --help
The commands are:

        api             interacts with the Sourcegraph GraphQL API
        batch           manages batch changes
        code-intel      manages code intelligence data
        config          manages global, org, and user settings
        extensions,ext  manages extensions (experimental)
        extsvc          manages external services
        gateway         interacts with Cody Gateway
        login           authenticate to a Sourcegraph instance with your user credentials
        orgs,org        manages organizations
        teams,team      manages teams
        repos,repo      manages repositories
        sbom            manages SBOM (Software Bill of Materials) data
        search          search for results on Sourcegraph
        search-jobs     manages search jobs
        serve-git       serves your local git repositories over HTTP for Sourcegraph to pull
        tool            exposes tools for AI agents to interact with Sourcegraph
        users,user      manages users
        codeowners      manages code ownership information
        version         display and compare the src-cli version against the recommended version for your instance

Use "src [command] -h" for more information about a command.
  • go run ./cmd/src tool --help
go run ./cmd/src tool --help
NAME:
   src tool - Exposes tools for AI agents to interact with Sourcegraph

USAGE:
   src tool [global options]

DESCRIPTION:
   The tool subcommand exposes tools that can be used by AI agents to perform tasks against Sourcegraph instances.

GLOBAL OPTIONS:
   --help, -h  show help

- only used when SRC_INTERNAL_CLIFLAGS_V2 is 1
- add 'old' command, which runs the usual src cli commands until all
  commands are migrated
@burmudar burmudar self-assigned this Nov 25, 2025
@burmudar burmudar requested review from a team and removed request for a team November 25, 2025 08:46
@burmudar burmudar merged commit b3f6fd4 into main Nov 25, 2025
8 checks passed
@burmudar burmudar deleted the wb/urfave-cli branch November 25, 2025 12:34
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.

3 participants