pilotswarm-perf
Run and analyze PilotSwarm performance workflows, starting with SDK sub-agent spawn perf. Use when collecting fresh perf baselines, comparing runs, generating stable perf reports, or updating perf memory and next steps.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 16
- Forks
- 10
01 前言 Front Matter
- name
- pilotswarm-perf
- description
- Run and analyze PilotSwarm performance workflows, starting with SDK sub-agent spawn perf. Use when collecting fresh perf baselines, comparing runs, generating stable perf reports, or updating perf memory and next steps.
03 SKILL.md 正文
PilotSwarm Perf
Use this skill when the user wants performance numbers or follow-up analysis for this repository.
Keep the workflow deterministic. Fresh numbers should come from repo-owned runners, and conclusions should be written back into repo memory.
Canonical Files
- Perf agent memory:
perf/memory/perf-agent-memory.md - Spawn perf runner:
scripts/perf/run-sdk-spawn-perf.mjs - Spawn perf command:
npm run perf:spawn - Raw spawn perf test:
packages/sdk/test/perf/spawn.perf.test.js - Perf Vitest config:
packages/sdk/vitest.perf.config.js - Latest generated report:
perf/reports/spawn/latest.md - Latest generated metrics:
perf/reports/spawn/latest.json - Historical run index:
perf/reports/spawn/history/index.json
Workflow
- Read
perf/memory/perf-agent-memory.md. - If the user wants fresh numbers, run
npm run perf:spawnfrom repo root. - Treat
npm run perf:spawnas the source of truth: it must generatelatest.*, append history, and updateperf/memory/perf-agent-memory.mdautomatically. - Base the analysis on
perf/reports/spawn/latest.jsonandperf/reports/spawn/latest.md, not on terminal snippets alone. - Compare the latest run against the prior latest run if the generated report includes a comparison section.
- If you add deeper interpretation beyond the generated memory, refine
perf/memory/perf-agent-memory.mdso the next run starts from the updated hypotheses and next steps. - In the user-facing summary, include exact measurements, notable comparisons, and the next recommended experiment or optimization.
Rules
- Prefer repo scripts over ad hoc shell pipelines.
- Do not change perf assertions just to make results look better.
- Treat
latest.*files as generated outputs. - Keep memory concise and cumulative. Replace stale hypotheses with confirmed findings when possible.
- If worktree changes may affect perf validity, call that out explicitly in both the response and the memory file.
Extending Perf Coverage
If you add another perf surface later, give it all of the following:
- a dedicated perf test under
packages/*/test/perf/ - a deterministic runner under
scripts/perf/ - generated outputs under
perf/reports/<surface>/ - a memory update in
perf/memory/perf-agent-memory.md
04 同仓库更多 Skills
pilotswarm-three-tier
Reference for adding a Tier 3 worker AKS cluster to a PilotSwarm deployment. Covers provisioning, identity, Dockerfile changes, entrypoint, manifests, and verification.
pilotswarm-sdk-builder
Use when creating or updating an SDK-first app on top of PilotSwarm. Covers the client/worker split, plugin layering, tool registration, tests, and the DevOps sample structure.
pilotswarm-portal-builder
Use when creating or updating a browser portal on top of PilotSwarm. Covers portal branding, plugin.json.portal, named-agent exposure, auth add-ons, and remote deployment wiring.
pilotswarm-knowledge-harvester
Use when an SDK or CLI app needs to ingest external sources into durable, searchable knowledge and an open knowledge graph. Covers enabling the EnhancedFactStore + GraphStore providers, authoring a crawler:true agent, the crawl→graph→reader flow, ACL/scopeKey evidence, and tests.
pilotswarm-hybrid-datastore
Use when a PilotSwarm app needs stock PostgreSQL for runtime storage plus HorizonDB for enhanced facts, semantic/lexical search, and the knowledge graph. Covers env topology, horizonConfigFromEnv wiring, harvester agents, Azure secret/resource guidance, and the rule that Docker defaults remain stock Postgres.
pilotswarm-duroxide-versioning
Use when changing PilotSwarm durable orchestration behavior, continue-as-new state, or replay-sensitive control flow.