Automate fast-agent runs from CLI, Docker, and Hugging Face Jobs. Use when users need repeatable non-interactive execution (`fast-agent go --message` / `--prompt-file`), deterministic artifact handling (`--results`), multi-model fan-out, containerization with uv, or scheduled/cloud execution with hf jobs and secrets management.
Build repeatable automation around fast-agent CLI, container, and cloud job execution.
--card, optional --agent)--message--prompt-file--results)--json-schema or --schema-model for one-shot runs)fast-agent check models --for-model ... --json to precompute candidate secret env var names when model(s) are known.Never relay raw secret values in prompts or CLI args.
Only relay environment-variable names (for example OPENAI_API_KEY) through approved secret
channels/stores.
For Hugging Face Jobs specifically, prefer --secrets NAME (for example --secrets OPENAI_API_KEY).
When proposing or generating HF Job commands, include these operational guardrails:
fast-agent check models --for-model "<model>" --json first and forward only discovered secret names.hf ... subcommands (for example hf upload), include --with huggingface-hub.-- bash -c "cmd1 && cmd2".python -c blobs in hf jobs uv run commands; use bash -c or a checked-in script file.hf jobs ps, inspect, logs, cancel, hardware).Default agent/instruction (no card) is usually enough for:
Use an agent card when you need custom system prompts/instructions or runtime config, such as:
skills: [] controlTreat terminal output and --results as different products.
stdout):
--message, usually the final assistant text printed for humans.--results <path>:
message_history..json for machine workflows.For non-trivial automation, always set --results and parse that file (prefer JSON). Do not treat raw terminal capture as source-of-truth output.
When the caller explicitly needs a single validated JSON document on stdout, use:
fast-agent go --no-env --message ... --json-schema schema.jsonfast-agent go --no-env --prompt-file ... --json-schema schema.jsonfast-agent go --no-env --message ... --schema-model package.module:ResultModelfast-agent go --no-env --prompt-file ... --schema-model package.module:ResultModelIn this mode:
--schema-model must point to an importable Pydantic BaseModel subclass--schema-model when the caller already has typed Pydantic contracts; it preserves
fast-agent's normal provider/model-specific structured-output sanitization path--json-schema and --schema-model are mutually exclusiveFast-agent resolves models with precedence where an explicit agent model from a card/decorator
outranks CLI --model.
model: ..., that explicit model is used.--model is best treated as a runtime override only when the selected card agent does not
set an explicit model.model in automation agent cards when you want runtime flexibility.--model in CI/Jobs wrappers so model choice is explicit per run.model in the card and document that changing models
requires card edits.Default agent/instruction (no card):
fast-agent go \
--noenv \
--model sonnet \
--message "Summarize findings" \
--results ./artifacts/run.json
Card-based run:
fast-agent go \
--no-env \
--card ./cards \
--agent researcher \
--model sonnet \
--message "Summarize findings" \
--results ./artifacts/run.json
fast-agent go \
--card ./cards \
--model "haiku,sonnet" \
--message "Give a concise plan" \
--results ./artifacts/compare.json
Expect suffixed exports like compare-haiku.json and compare-sonnet.json.
fast-agent go \
--no-env \
--card ./cards \
--agent researcher \
--model sonnet \
--message "What is the weather in London?" \
--json-schema ./schema.json
Pydantic contract variant:
fast-agent go \
--no-env \
--card ./cards \
--agent researcher \
--model sonnet \
--message "What is the weather in London?" \
--schema-model automation_schemas:WeatherResult
--skills-dir, card skills): references/skills.mdscripts/run_fast_agent.sh: local/CI wrapper enforcing --results (supports both no-card and card-based runs)scripts/submit_hf_job.sh: hf jobs uv run helper with explicit secret confirmation (supports both no-card and card-based runs)scripts/run_and_sync_hf_dataset.sh: reusable v2 wrapper for optional prompt download + fast-agent go --results + dataset upload under runs/<run-name>/<JOB_ID|generated-id>/npx skills add fast-agent-ai/fast-agent-automation下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer