协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
agent-runtime【开发与工程】Implement/debug Yuxi agent runtime, APIs, tools, skills, MCP, subagents, queue, streaming, and middleware behavior.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task touches Yuxi's LangGraph/FastAPI agent execution path: agent configuration and context, run submission, request queue and steer behavior, worker/SSE streaming, middleware, attachments, built-in tools, Skills, MCP, subagents, sandbox file boundaries, API-key access, or Langfuse/evaluation runtime hooks.
Do not use it as the primary guide for deployment topology, knowledge-base ingestion internals, OCR engine selection, CLI usage, or general repo development; route those to the sibling sub-skills and use this one only for the agent-facing boundary.
references/agent-runtime-map.md to decide whether the change belongs in context/config, request intake and queueing, run execution, stream serialization, middleware, sandbox/files, tools/Skills/MCP, or subagents.config_json.context normalization.POST /api/agent/runs, RunSubmissionCommand, and the request queue service for enqueue, reject, and steer semantics.stream_agent_chat/resume, Redis stream events, and /api/agent/runs/{run_id}/events SSE serialization.references/tools-skills-mcp-subagents.md for activation, gating, storage, async subagent lifecycle, and sandbox boundaries.references/troubleshooting.md before making broad changes.Run commands from the repository root. Docker Compose is the canonical development runtime.
# Non-mutating service/log probes
docker compose ps
docker logs api-dev --tail 100
docker logs worker-dev --tail 100
docker logs sandbox-provisioner --tail 100
curl -s http://localhost:5050/api/system/health
curl -s http://localhost:8002/health
# CPU-safe unit coverage for this sub-skill
docker compose exec api uv run --group test pytest \
test/unit/routers/test_skill_router.py \
test/unit/services/test_skill_service.py \
test/unit/backends/test_sandbox_backends.py \
test/unit/services/test_agent_request_queue_service.py \
test/unit/middlewares/test_steer_middleware.py \
test/unit/middlewares/test_subagent_task_middleware.py \
test/unit/services/test_subagent_run_service.py \
test/unit/routers/test_mcp_router.py \
test/unit/services/test_mcp_service.py \
test/unit/toolkits/test_install_skill.py
Only run the E2E candidates when the stack is intentionally running and test credentials are available:
docker compose exec api uv run --group test pytest -m e2e \
test/e2e/test_subagent_stream_e2e.py \
test/e2e/test_personal_skill_agent_e2e.py
install_skill unit tests.references/agent-runtime-map.md — execution architecture, layer ownership, APIs, middleware, streaming, tests, and backend gates.references/tools-skills-mcp-subagents.md — tool registry, built-in/KB tools, Skill install/activation/storage, MCP integration, subagent lifecycle, and sandbox file semantics.references/troubleshooting.md — targeted symptoms, probes, fixes, safety boundaries, and test selection.