oasis
Use OASIS (camel-oasis) for LLM social-media simulations, agent profiles, platform actions, recommendation settings, SQLite traces, and legacy experiment analysis.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- oasis
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use OASIS (camel-oasis) for LLM social-media simulations, agent profiles, platform actions, recommendation settings, SQLite traces, and legacy experiment analysis.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-overview.md4.6 KB
- 参考文档references/repo-provenance.md2.1 KB
- 参考文档references/repo-routing-metadata.json483 B
- 参考文档references/troubleshooting.md5.5 KB
- 脚本scripts/check_oasis_install.py5.4 KB
03 SKILL.md 正文
OASIS Repo Skill
Use this skill for tasks involving OASIS / camel-oasis: agent-based Twitter-like or Reddit-like simulations, profile file preparation, AgentGraph and SocialAgent setup, ManualAction/LLMAction step orchestration, custom Platform and recommendation settings, OASIS SQLite trace databases, and legacy experiment analysis.
Start here
- Confirm the package import and version with scripts/check_oasis_install.py.
- Read references/api-overview.md for the public API surface and object relationships.
- Route the task to the closest sub-skill below.
- Use references/troubleshooting.md for install/import, credentials, optional backends, and DB lifecycle blockers.
- Read references/repo-provenance.md before deciding whether this skill is stale for a different checkout or package version.
Install and import check
Normal package install:
pip install camel-oasis
Local checkout install:
pip install -e .
Minimal import check:
import oasis
print(oasis.__version__)
from oasis import AgentGraph, SocialAgent, UserInfo, ActionType, ManualAction
If import fails with FastMCP / mcp.server, use a compatible MCP version such as pip install 'mcp<2' or update CAMEL to a compatible release.
Sub-skill routes
| Task | Read |
|---|---|
Create or validate Reddit JSON/Twitter CSV profiles; build AgentGraph; customize SocialAgent, UserInfo, prompts, toolkits, or Neo4j graph backend. |
sub-skills/agent-profiles/SKILL.md |
Run or adapt Reddit/Twitter/custom simulations; manage env.reset() / env.step() / env.close(); use ManualAction and LLMAction; configure model backends and budgets. |
sub-skills/simulation-workflows/SKILL.md |
Choose ActionType and ManualAction.action_args; configure Platform, RecsysType, Clock, or Channel; inspect SQLite tables, traces, groups, reports, products, and recommendations. |
sub-skills/platform-actions/SKILL.md |
| Triage legacy OASIS experiment YAMLs, generated-user flows, large-scale VLLM/OpenAI runs, score/counterfactual analysis, and visualization outputs. | sub-skills/experiments-analysis/SKILL.md |
Safe default workflow
For a new task, prefer a tiny no-LLM path before provider-backed simulation:
- Validate or create profiles with
agent-profiles. - Run sub-skills/simulation-workflows/scripts/oasis_manual_smoke.py to prove local imports, SQLite, signup, post/comment/follow, and close behavior.
- Inspect the generated database with sub-skills/platform-actions/scripts/oasis_db_summary.py.
- Only then add real
LLMAction, TwHIN/personalized recommendation, VLLM, OpenAI embeddings, Neo4j, or large experiment settings with explicit credentials and budget.
Important package facts
- Distribution name is
camel-oasis; import name isoasis. - The verified version for this skill is
0.2.5on Python>=3.10,<3.12. ManualActionusesaction_typeandaction_args. Some docs or snippets may show olderaction/argsnames; use the source-backed dataclass fields.actionspassed toenv.step()are keyed bySocialAgentobjects, not integer agent IDs.- Constructing
SocialAgent(model=None)can require a non-emptyOPENAI_API_KEYbecause CAMEL builds a default model backend. No real provider call occurs until an LLM-backed action is performed. - The default Twitter platform uses
twhin-bertrecommendations, which may require optional model downloads or torch/CUDA resources. Use Reddit or random recommendation settings for tiny CPU-only checks.
Do not use this skill when
- The task is generic CAMEL agent framework development without OASIS social-platform objects.
- The task is only VLLM/Neo4j/OpenAI infrastructure setup and does not involve OASIS simulations.
- The user asks to perform downstream research interpretation without needing package operation guidance; then use the appropriate Researcher mode and loaded operating graph.
Router metadata
Structured router metadata lives in references/repo-routing-metadata.json. Do not hand-edit live routers; use the repo-skill verification/import protocol when importing is explicitly requested.
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).