upsonic
Guides Upsonic Python agent-framework workflows, including agents, models, tools, memory, RAG, teams, autonomous agents, CLI projects, interfaces, skills, and safety governance.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- upsonic
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guides Upsonic Python agent-framework workflows, including agents, models, tools, memory, RAG, teams, autonomous agents, CLI projects, interfaces, skills, and safety governance.
- disable-model-invocation
- true
02 资源文件 8
- 参考文档references/optional-extras-snapshot.json5.3 KB
- 参考文档references/optional-extras.md1.9 KB
- 参考文档references/package-overview.md3.9 KB
- 参考文档references/repo-provenance.md1.1 KB
- 参考文档references/repo-routing-metadata.json480 B
- 参考文档references/troubleshooting.md2.2 KB
- 脚本scripts/check_upsonic_install.py3.2 KB
- 脚本scripts/list_optional_extras.py1.9 KB
03 SKILL.md 正文
Upsonic Repo Skill
Use this skill for tasks that involve the Upsonic Python package or repository. It routes by workflow, not by source-folder shape, so future agents can answer common user requests without reopening the repo.
Route map
| If the user asks about... | Read |
|---|---|
Agent, Task, Direct, Graph, execution, streaming, structured output, run control |
sub-skills/agent-runtime/SKILL.md |
| provider/model strings, provider inference, profiles, model selection, credentials | sub-skills/models-and-providers/SKILL.md |
custom tools, @tool, ToolConfig, MCP, tool orchestration, agent-as-tool |
sub-skills/tools-and-mcp/SKILL.md |
Chat, Memory, session history, storage backends, user/session persistence |
sub-skills/chat-memory-storage/SKILL.md |
KnowledgeBase, loaders, splitters, embeddings, vector DBs, OCR, RAG |
sub-skills/knowledge-rag/SKILL.md |
Team, AutonomousAgent, prebuilt agents, RalphLoop, Simulation |
sub-skills/teams-autonomous-prebuilt/SKILL.md |
| safety policies, anonymization, reflection, reliability, eval, tracing | sub-skills/quality-safety-governance/SKILL.md |
Skill / Skills, loaders, validation, dependency resolution, caching |
sub-skills/skills-system/SKILL.md |
upsonic CLI projects, upsonic_configs.json, FastAPI /call, interfaces |
sub-skills/project-cli-interfaces/SKILL.md |
Install and smoke check
python -m pip install upsonic
python scripts/check_upsonic_install.py
If you need a backend-specific workflow, install the smallest matching extra instead of all optional groups.
Shared references
- references/repo-provenance.md for source snapshot freshness.
- references/package-overview.md
- references/optional-extras.md
- references/optional-extras-snapshot.json
- references/troubleshooting.md
- references/repo-routing-metadata.json
Shared scripts
Guardrails
- Do not assume live API keys, databases, vector stores, OCR engines, or MCP servers are available.
- Do not leak local checkout paths, conda prefixes, or private environment details in runtime guidance.
- Prefer import/signature/CLI checks before optional service-backed checks.
- Keep cross-cutting troubleshooting in the root references and workflow-specific troubleshooting near the owning sub-skill.
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).