agents-cli icon indicating copy to clipboard operation
agents-cli copied to clipboard

repo init with cicd, for a2a ,adk , tool, and sub agent init.

Open nurrochmanmuhammad opened this issue 5 months ago • 3 comments

What is your feature suggestion?

imagine you are a customer in food stall you want to pick the dishes topping and drink. thats what I cannot do for this agent cli ,

I want to init cicd repo, and init a2a or adk agent. and I can compile a2a agents for an adk agent. or adding well proven tools or sub agent to existing agent in repo.

dont wait ultil I build it for you and named into different cli. ;)

What will this enable you to do?

thats the hurdle to enable our team using adk and agent engine.

Additional context

No response

nurrochmanmuhammad avatar Jun 20 '26 13:06 nurrochmanmuhammad

I think this is asking for a composable scaffold contract.

Instead of one monolithic scaffold mode, the CLI could treat project init as a set of selectable modules:

base project
  + ADK agent
  + A2A interface
  + tool examples
  + subagent examples
  + CI/CD
  + eval config
  + deploy target

A standard AISP V1.0.0 companion contract could define this modular initialization workflow:

[
  {
    "role": "system",
    "content": {
      "protocol": "AISP V1.0.0",
      "axiom_0": "Human_Sovereignty_and_Wellbeing",
      "id": "google_agents_cli_modular_repo_init_aisp",
      "name": "Google Agents CLI Modular Repo Init Contract",
      "version": "1.0.0",
      "license": "Apache-2.0",
      "summary": "A machine-checkable AISP package for modular repo initialization with ADK, A2A, tools, subagents, eval, CI/CD, and deploy options.",
      "flow_format": "mermaid",
      "loading_mode": "node",
      "tools": ["filesystem"],
      "params": {
        "project_root": "string",
        "modules": "array",
        "dry_run": "boolean"
      },
      "system_prompt": ""
    }
  },
  {
    "role": "user",
    "content": {
      "instruction": "STRICTLY OBEY aisp_contract; its non_negotiable rules are inviolable; then RUN aisop.main",
      "user_input": "{user_input}",
      "aisp_contract": {
        "profile": "aisp.skill.v1",
        "invocation": {
          "mode": "modular_scaffold",
          "when_to_use": [
            "when initializing a repo with selectable agent modules",
            "when adding A2A, ADK, tool, subagent, eval, deploy, or CI/CD support",
            "when enhancing an existing project with selected modules"
          ],
          "when_not_to_use": [
            "single-purpose scaffold with no optional modules",
            "manual file editing unrelated to project initialization"
          ]
        },
        "non_negotiable": [
          {
            "rule": "Module selection must be explicit and visible before files are written.",
            "enforced_by": "plan_modules.step2:sys.assert"
          },
          {
            "rule": "Modules must declare dependencies and conflicts before generation.",
            "enforced_by": "resolve_modules.step2:sys.assert"
          },
          {
            "rule": "Dry-run must show generated files without writing them.",
            "enforced_by": "dry_run.step2:sys.assert"
          },
          {
            "rule": "Existing files must not be overwritten without explicit approval or --force.",
            "enforced_by": "write.step2:sys.assert"
          }
        ],
        "discovery": {
          "category": "scaffold",
          "tags": ["agents-cli", "repo-init", "cicd", "a2a", "adk", "tools", "subagents", "aisp"]
        },
        "risk_level": "medium",
        "resources": [
          {
            "id": "project_root",
            "path": "{project_root}",
            "kind": "repository",
            "mode": "read_only",
            "when": "Read before modular init.",
            "scope": "skill"
          }
        ]
      },
      "aisop": {
        "main": "graph TD\n    inspect[Inspect repo] --> plan_modules[Plan selected modules]\n    plan_modules --> resolve_modules[Resolve dependencies and conflicts]\n    resolve_modules --> preview[Generate preview]\n    preview --> dry_run{Dry run?}\n    dry_run -->|yes| report[Report planned changes]\n    dry_run -->|no| write[Write files]\n    write --> trace[Record init trace]\n    report --> end_node((End))\n    trace --> end_node"
      },
      "functions": {
        "inspect": {
          "step1": "Inspect existing project_root for ADK, A2A, tools, subagents, eval, CI/CD, manifest, and deploy config.",
          "output_mapping": "repo_state"
        },
        "plan_modules": {
          "step1": "Create a module plan from requested modules.",
          "step2": "sys.assert('selected modules visible before write', 'Module selection must be explicit')",
          "output_mapping": "module_plan"
        },
        "resolve_modules": {
          "step1": "Resolve dependencies and conflicts among selected modules.",
          "step2": "sys.assert('module dependencies and conflicts resolved', 'Module dependencies/conflicts must be resolved before generation')",
          "output_mapping": "module_resolution"
        },
        "preview": {
          "step1": "Generate file plan without writing.",
          "output_mapping": "file_plan"
        },
        "dry_run": {
          "step1": "If dry_run is true, return file_plan only.",
          "step2": "sys.assert('dry run writes no files', 'Dry-run must not write files')",
          "output_mapping": "dry_run_status"
        },
        "write": {
          "step1": "Write planned files only after checking overwrite policy.",
          "step2": "sys.assert('no existing files overwritten without approval', 'Existing files require approval or --force')",
          "output_mapping": "write_status"
        },
        "trace": {
          "step1": "Record modules, dependencies, generated files, skipped files, overwritten files, and warnings.",
          "output_mapping": "init_trace"
        },
        "report": {
          "step1": "Return file_plan and module_resolution.",
          "output_mapping": "init_preview"
        },
        "end_node": {
          "step1": "Return init_preview or init_trace."
        }
      }
    }
  }
]

This could become something like:

agents-cli init \
  --module adk \
  --module a2a \
  --module tool \
  --module subagent \
  --module eval \
  --module cicd \
  --dry-run

The key is to make modules explicit, composable, and conflict-aware.

optimization2026 avatar Jun 30 '26 17:06 optimization2026

Hi @nurrochmanmuhammad ! Can you be a bit more specific about what is not working for you or that would make agents-cli easier for you to use? I can't tell if this a bug report of something not working as intended, or a feature request to further expand capabilities.

Thanks in advance!

sushicw avatar Jul 14 '26 18:07 sushicw

I'm going to go ahead and close this since we haven't heard back, please feel free to reopen if there are additional details!

sushicw avatar Jul 21 '26 18:07 sushicw