agents-workflows
Guides SuperAGI agent creation, workflow selection, prompt parsing, task queues, scheduling, and Celery execution loops.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- agents-workflows
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guides SuperAGI agent creation, workflow selection, prompt parsing, task queues, scheduling, and Celery execution loops.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/execution-loop.md1.8 KB
- 参考文档references/prompt-and-output-parsing.md1.9 KB
- 参考文档references/troubleshooting.md1.4 KB
- 参考文档references/workflows.md2.0 KB
- 脚本scripts/validate_agent_payload.py3.4 KB
03 SKILL.md 正文
SuperAGI Agents and Workflows
Use this sub-skill when the task is about how SuperAGI agents are prompted, selected, queued, scheduled, executed, paused, resumed, or advanced through workflow steps.
Read First
- references/workflows.md for workflow types, seed names, and execution flow.
- references/prompt-and-output-parsing.md for prompt builders, parser signatures, and output-shape expectations.
- references/execution-loop.md for the agent, job, and Celery loop from config to execution step.
- references/troubleshooting.md for parser, tool-selection, queue, permission, and scheduling failures.
- scripts/validate_agent_payload.py for a safe structural check of agent/run payloads.
Core Concepts
- Goal-based workflow: a single-step prompt loop that keeps selecting the next tool until completion.
- Dynamic task workflow: a task-analysis and task-prioritization loop that revisits the task queue.
- Fixed task workflow: a task queue that follows a fixed schedule of initialization and queue steps.
- Tool workflow steps: tool steps, wait steps, task-queue steps, and permission-gated steps are all represented in the workflow models.
- Execution loop:
superagi.workerandsuperagi.jobs.agent_executorcoordinate scheduled agents, waiting workflows, resource summaries, and webhook callbacks.
Typical Questions This Sub-skill Answers
- Which workflow name should I assign to an agent template?
- Why did the agent choose the wrong tool or produce invalid JSON?
- Why is a task queue empty, repeated, or not advancing?
- How do permission checkpoints and wait steps change execution?
- Which Celery task or workflow seed owns a given behavior?
Safe Workflow
- Route by workflow family: agent templates and workflow names belong here, not in API or toolkit sub-skills.
- Read prompt and parser references before changing or validating outputs.
- If the user provides a payload, use the validator script for a structural check before thinking about execution.
- For real execution, remember that workflow code depends on Redis, a database, and in many cases an LLM provider. Only run live execution when authorized.
Boundary Notes
- HTTP route and model schema questions belong to
api-service. - Tool implementation and toolkit registration belong to
toolkits-integrations. - Provider, resource, and vector-store setup that a workflow merely consumes
belongs to
models-resources-vector.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).