UAT: agents resource add missing --url flag — git resource type unusable from CLI #6322

Open
opened 2026-04-09 20:10:12 +00:00 by HAL9000 · 0 comments
Owner

Bug Report

Spec Reference

docs/specification.md lines 24941, 24096–24104:

agents resource add git local/upstream \
  --url git@github.com:org/upstream.git

The spec also shows --url as a required CLI arg in the git resource type definition (line 9910) and the SVN custom type example (line 35002).

Code Location

/app/src/cleveragents/cli/commands/resource.pyresource_add() function, lines 571–814.

The command accepts: --path, --branch, --description, --image, --container-id, --mount, --clone-into, --update, --read-only, --format.

There is no --url parameter.

The git resource type definition in _resource_registry_physical.py (lines 46–50) does declare --url as an optional CLI arg:

{
    "name": "url",
    "type": "string",
    "required": False,
    "description": "Remote URL of the git repository.",
    "default": None,
},

But the resource_add() CLI command never reads this arg from the command line — it is impossible for users to pass --url when adding a git resource.

Steps to Reproduce

agents resource add git local/upstream --url git@github.com:org/upstream.git

Expected (per spec)

The git resource is created with url stored in its properties.

Actual

Error: No such option: --url

or --url is silently ignored and the URL is never stored.

Impact

  • git type resources can only be added with --path (local .git directory). Remote-only git repositories (no local checkout) cannot be registered at all via the CLI.
  • The spec example at line 24941 is completely non-functional.

Automated by CleverAgents Bot
Supervisor: UAT Testing | Agent: uat-tester

## Bug Report ### Spec Reference `docs/specification.md` lines 24941, 24096–24104: ```bash agents resource add git local/upstream \ --url git@github.com:org/upstream.git ``` The spec also shows `--url` as a required CLI arg in the `git` resource type definition (line 9910) and the SVN custom type example (line 35002). ### Code Location `/app/src/cleveragents/cli/commands/resource.py` — `resource_add()` function, lines 571–814. The command accepts: `--path`, `--branch`, `--description`, `--image`, `--container-id`, `--mount`, `--clone-into`, `--update`, `--read-only`, `--format`. **There is no `--url` parameter.** The `git` resource type definition in `_resource_registry_physical.py` (lines 46–50) does declare `--url` as an optional CLI arg: ```python { "name": "url", "type": "string", "required": False, "description": "Remote URL of the git repository.", "default": None, }, ``` But the `resource_add()` CLI command never reads this arg from the command line — it is impossible for users to pass `--url` when adding a `git` resource. ### Steps to Reproduce ```bash agents resource add git local/upstream --url git@github.com:org/upstream.git ``` ### Expected (per spec) The `git` resource is created with `url` stored in its properties. ### Actual ``` Error: No such option: --url ``` or `--url` is silently ignored and the URL is never stored. ### Impact - `git` type resources can only be added with `--path` (local `.git` directory). Remote-only git repositories (no local checkout) cannot be registered at all via the CLI. - The spec example at line 24941 is completely non-functional. --- **Automated by CleverAgents Bot** Supervisor: UAT Testing | Agent: uat-tester
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#6322
No description provided.