agent-workflows
Work with RAGFlow agent canvas DSL, components, tools, templates, memory, MCP retrieval, sandbox execution, sessions, traces, and workflow debugging.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- agent-workflows
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Work with RAGFlow agent canvas DSL, components, tools, templates, memory, MCP retrieval, sandbox execution, sessions, traces, and workflow debugging.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/canvas-components.md8.2 KB
- 参考文档references/tools-memory-mcp.md7.6 KB
- 参考文档references/troubleshooting.md6.7 KB
- 脚本scripts/inspect_agent_template.py10.0 KB
03 SKILL.md 正文
Agent Workflows
Use this sub-skill when a task involves RAGFlow agents, canvas/workflow DSL, agent templates, component wiring, tool/sub-agent orchestration, memory-aware agents, MCP retrieval, sandbox/code execution, webhooks, sessions, traces, or component-level debugging.
Start Here
- For DSL shape, execution order, variable references, components, loops, sessions, and debug flows, read
references/canvas-components.md. - For agent tools, plugin-style tools, memory read/write, MCP retrieval, sandbox/code execution, and security defaults, read
references/tools-memory-mcp.md. - For common failures such as broken component references, cycles, async/streaming surprises, credentials, sandbox, webhooks, memory, MCP, and template import/export, read
references/troubleshooting.md. - To statically inspect an exported template or DSL JSON without starting RAGFlow, run
python scripts/inspect_agent_template.py --help.
Scope Boundaries
- Treat the canvas DSL as the backend contract:
components,path,globals,history,retrieval,memory, optionalvariables, and optional visualgraphmetadata. - Use component IDs exactly as they appear in the DSL; variable references are usually
{component_id@output},{{component_id@output}},sys.*, orenv.*. - Keep frontend canvas UI concerns out of this sub-skill; only use visual
graphfields to preserve layout or diagnose component IDs. - For public HTTP/SDK request details, cross-link to
sdk-http-integration; this sub-skill only summarizes behavior-level agent, session, memory, and MCP surfaces. - For retrieval ranking, parsing, chunking, and dataset internals, cross-link to
dataset-ingestion-retrieval; this sub-skill focuses on retrieval as an agent tool.
Common Workflows
- Inspect a template: validate JSON shape, ensure
dsl.componentsexists, confirmbeginorFilestart nodes, list component IDs/classes, and check references before import. - Debug a canvas run: map
pathto component IDs, verify every downstream/upstream target exists, check{component@output}references against declared outputs, then inspect trace events when available. - Wire tools into an Agent: put tool definitions under the Agent component parameters, keep tool names/descriptions actionable, provide credentials explicitly, and keep downstream
Messagehandling in mind for streaming output. - Add memory: create/configure memory separately, use Retrieval to read memory IDs, and use Message save-to-memory behavior for durable conversation facts.
- Expose retrieval through MCP: configure MCP server base URL and API key per environment, use
ragflow_retrieval, and keep API key transport separate from dataset/document selection.
Guardrails
- Do not publish real API keys, MCP headers, webhook secrets, database passwords, or sandbox host details in examples or logs.
- Do not assume all component imports are available in a source-only environment; optional dependencies can affect deeper imports.
- Do not run code execution, network tools, webhooks, deletes, or live MCP calls unless the user explicitly asks and provides safe targets.
- Prefer static template checks before live import/export; use the bundled inspector to catch missing keys and obvious graph/reference issues.
- Keep generated runtime guidance self-contained; source files, docs, and tests are evidence only.
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).