app-agent
Routes AppAgent setup, exploration, and deployment workflows for Android-device task automation.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- app-agent
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Routes AppAgent setup, exploration, and deployment workflows for Android-device task automation.
- disable-model-invocation
- true
02 资源文件 8
- 参考文档references/api-reference.md4.0 KB
- 参考文档references/configuration.md2.2 KB
- 参考文档references/repo-provenance.md994 B
- 参考文档references/repo-routing-metadata.json414 B
- 参考文档references/setup.md2.0 KB
- 参考文档references/troubleshooting.md3.4 KB
- 参考文档references/workflows.md1.8 KB
- 脚本scripts/check_setup.py4.6 KB
03 SKILL.md 正文
AppAgent
AppAgent operates Android apps through ADB, screenshot/XML capture, multimodal model calls, and generated UI documentation.
Use this skill when the task is about:
- installing or validating the AppAgent runtime prerequisites,
- generating UI documentation through autonomous exploration or human demonstration,
- running AppAgent against a documented app in deployment mode,
- debugging model/config/device issues in a local checkout.
First read
references/setup.mdfor Python,adb, device/emulator, and config prerequisites.references/configuration.mdfor theconfig.yamlkeys and backend selection rules.references/workflows.mdfor the high-level exploration/deployment output layout.references/troubleshooting.mdfor the most common failures and recovery steps.references/api-reference.mdwhen you need exact helper signatures or parser behavior.
Quick preflight
Use the bundled checker before launching a real device session:
scripts/check_setup.py --repo-root <AppAgent checkout>scripts/check_setup.py --repo-root <AppAgent checkout> --skip-adbwhen you only want Python/config validation.
The checker is read-only. It confirms imports, config keys, and whether adb is on PATH.
Route map
Setup and readiness
Use the setup references and scripts/check_setup.py when the request is about:
- installing dependencies,
- editing
config.yaml, - choosing OpenAI versus Qwen,
- connecting a phone or emulator,
- deciding where generated
apps/andtasks/folders should live.
Exploration
Use sub-skills/exploration/SKILL.md when the request is about:
- autonomous exploration,
- human demonstration capture,
- generating or refining UI docs,
- understanding the output under
apps/<app>/auto_docs/orapps/<app>/demo_docs/.
The exploration launcher lives at:
sub-skills/exploration/scripts/start_exploration.py
Deployment
Use sub-skills/deployment/SKILL.md when the request is about:
- running a task against an app that already has docs,
- selecting between auto and demo docs,
- interpreting task logs and deployment outcomes,
- handling no-doc fallback decisions.
The deployment launcher lives at:
sub-skills/deployment/scripts/start_deployment.py
Common operating assumptions
- AppAgent expects a live Android device or emulator plus
adb. - The repo stores generated outputs under
apps/andtasks/relative to the chosenroot_dir. - The repository is script-driven; the helpers and references in this skill are the public runtime contract.
- YAML config values are the effective source of truth for runtime settings.
If something fails
- Check
references/troubleshooting.mdfirst. - If the device is unavailable, fix the host/device layer before retrying the Python checks.
- If the multimodal backend or parser fails, inspect the raw logs in the generated
tasks/orapps/<app>/demos/tree. - If grid swipes behave oddly, remember the current precise-swipe bug and prefer the safer path until it is patched.
What this skill does not do
- It does not train a new model.
- It does not replace the user's Android device or emulator.
- It does not assume the repo checkout is packaged as an installable Python distribution.
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).