Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add an init command to create agents-cli-manifest.yaml for existing ADK projects

Aperta
#25 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python

Direzione di ricerca

Inizia tracciando i comandi esistenti agents-cli create e scaffold, il comportamento di ricerca del manifest e il punto di ingresso di eval run. Definisci come init deve rilevare il nome del progetto e la directory degli agenti da pyproject.toml, app/, agent.py o root_agent.yaml, rispettando i flag espliciti. Il lavoro è completato quando un progetto ADK esistente può generare un agents-cli-manifest.yaml minimale senza sovrascriverlo per impostazione predefinita e eval run --all può utilizzarlo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs review
What is your feature suggestion?

I would like agents-cli to provide a lightweight initialization command that writes agents-cli-manifest.yaml into an existing ADK project, without scaffolding a new project or adding deployment files.

For example, the command could be:

agents-cli init

or:

agents-cli scaffold init

Ideally this would feel similar to hatch new --init: when run from an existing project root, it detects reasonable defaults and creates the minimal project metadata needed by agents-cli commands.

A possible generated manifest could be:

name: my-agent
agent_directory: app
region: us-east1
create_params:
  deployment_target: none

It would also be helpful to support flags such as:

agents-cli init --agent-directory app --name my-agent
agents-cli init --dry-run
agents-cli init --yes

The command should avoid overwriting an existing agents-cli-manifest.yaml unless an explicit --force flag is provided.

What will this enable you to do?

This would make it much easier to adopt agents-cli in existing ADK projects.

Right now, after adding eval files to an existing project by skill equiped coding agent, running:

agents-cli eval run --all

fails with:

Error: No agents-cli-manifest.yaml found in the current directory or its parents.
  Run this command from your project root, or create a project first:
    agents-cli create my-agent

For an existing ADK project, I do not necessarily want to create a new project or run a broader scaffold/enhance flow. I only need the minimal manifest so commands like agents-cli eval run, agents-cli info, and other project-aware commands can locate the project root and agent directory.

A lightweight init command would provide a clear migration path:

  1. Start with an existing ADK project.
  2. Add evalsets/config.
  3. Run agents-cli init.
  4. Run agents-cli eval run --all.

This would reduce friction for users who already have ADK agents and want to gradually adopt agents-cli workflows.

Additional context

The ideal UX is similar to hatch new --init, where an existing project can be initialized in place.
https://hatch.pypa.io/dev/cli/reference/#hatch-new

Nice-to-have detection behavior:

  • infer name from pyproject.toml or the current directory name
  • infer agent_directory from common ADK layouts such as app/, a package listed in pyproject.toml, or a directory containing agent.py / root_agent.yaml
  • default deployment_target to none so local eval usage works without opting into deployment scaffolding
  • print the generated manifest and explain what was detected
  • provide flags for explicit values when auto-detection is wrong

This would complement agents-cli create for new projects and agents-cli scaffold enhance for adding broader scaffold/deployment support, while covering the smaller "initialize this existing ADK project for agents-cli" use case.

Lingua principale
Python
Stelle
6k
Fork
686
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di google/agents-cli

Tutte le issue di google/agents-cli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.