Prepare self-contained open-source release (#1)

* feat: prepare self-contained open-source release

* fix: canonicalize missing managed paths

---------

Co-authored-by: luckyyzh <luckyyzh@users.noreply.github.com>
This commit is contained in:
Zihao Yang
2026-07-31 03:39:54 +08:00
committed by GitHub
co-authored by luckyyzh
parent 7392ab9dd7
commit 5c9c6631f5
34 changed files with 1310 additions and 137 deletions
+28
View File
@@ -0,0 +1,28 @@
{
"settings": {
"hostConfigDiscovery": "off",
"idleTimeout": 5
},
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"-y",
"@playwright/mcp@0.0.78",
"--headless",
"--isolated",
"--browser",
"msedge",
"--output-dir",
"data/mcp/playwright/output"
],
"cwd": "${PI_AGENT_APP_ROOT}",
"env": {
"npm_config_cache": "${npm_config_cache}"
},
"lifecycle": "lazy",
"idleTimeout": 5,
"requestTimeoutMs": 120000
}
}
}
+46 -1
View File
@@ -1 +1,46 @@
{}
{
"packages": [
"npm:pi-mcp-adapter@2.15.0",
"npm:pi-lens@3.8.73",
"npm:pi-memory@0.4.0",
"npm:pi-subagents@0.37.2",
"npm:pi-smart-fetch@0.3.17",
"npm:@ayulab/pi-rewind@0.4.6",
"npm:@upstash/context7-pi@0.1.2",
"npm:@narumitw/pi-retry@0.31.0"
],
"retry": {
"enabled": true
},
"ayu": {
"rewind": {
"restoreOnTree": "ask"
},
"checkpoint": {
"restoreOnResume": false,
"restoreOnFork": false,
"restoreOnClone": false,
"exclude": [
"data/**",
"**/node_modules/**",
"**/.next/**",
"**/coverage/**"
],
"maxFileMB": 25
}
},
"subagents": {
"disableThinking": true,
"agentOverrides": {
"researcher": {
"tools": [
"read",
"write",
"web_search",
"web_fetch",
"batch_web_fetch"
]
}
}
}
}
@@ -0,0 +1,13 @@
AUTOMATIC DELEGATION POLICY:
- Decide automatically whether delegation materially improves the result. The user should not need to request a subagent or learn subagent commands.
- Do not delegate simple factual questions, translations, short explanations, status checks, command lookups, obvious one-file edits, or tasks the parent can complete confidently with a few tool calls.
- Delegate only when at least one condition applies: broad investigation across multiple modules; independent external research; substantial uncertainty that benefits from a planner or oracle; a significant implementation deserves fresh-context review; or two or more independent investigations can run concurrently.
- Prefer one focused read-only subagent. Use at most two parallel children by default. Use more only when the user explicitly requests broad parallelism and the tasks are genuinely independent.
- Keep the parent agent as the sole writer in a shared working directory. Use worker only for a clearly separable implementation with a concrete handoff, or use isolated worktrees when multiple writers are explicitly justified.
- Do not run a ceremonial scout-planner-worker-reviewer pipeline for every task. Do not delegate the same question to multiple similar roles without a concrete reason.
- Prefer foreground execution so the current request finishes coherently. Use background execution only for long, independent work or when the user explicitly asks for it.
- Account for latency, token use, provider quotas, and context value before delegating. If the expected benefit is marginal, continue in the parent.
- Keep orchestration unobtrusive. Return a consolidated answer and mention subagents only when their findings, disagreement, or status is useful to the user.
{{compactDescription}}
+26
View File
@@ -0,0 +1,26 @@
{
"toolDescriptionMode": "custom",
"artifactDir": "session",
"fleetView": false,
"asyncWidget": false,
"asyncByDefault": false,
"waitTool": {
"enabled": true
},
"parallel": {
"maxTasks": 4,
"concurrency": 2
},
"globalConcurrencyLimit": 2,
"maxSubagentDepth": 1,
"maxSubagentSpawnsPerSession": 12,
"turnBudget": {
"maxTurns": 16,
"graceTurns": 2
},
"toolBudget": {
"soft": 30,
"hard": 60
},
"proactiveSkillSubagents": false
}