mirror of
https://github.com/earendil-works/pi.git
synced 2026-10-02 00:35:27 +08:00
Move the codemode script reference, including the models API, into docs/codemode.md and keep only one line per global in the tool description. Declared tools get a one-line note on how scripts call them, and the codemode system prompt guidance and MCP server section are shorter. With the default tools a GPT-5.6 request drops from about 5,300 to 3,300 tokens. Errors now point the way back: unknown tools and models members name close matches, models.classify() and models.generateImages() validate their arguments, unknown or mistyped models point to getAvailableOfType(), store() overflow explains the store, and unshown generated images get a note.
213 lines
4.8 KiB
JSON
213 lines
4.8 KiB
JSON
{
|
|
"navigation": [
|
|
{
|
|
"title": "Get Started",
|
|
"items": [
|
|
{
|
|
"title": "Overview",
|
|
"path": "index.md"
|
|
},
|
|
{
|
|
"title": "Quickstart",
|
|
"path": "quickstart.md"
|
|
},
|
|
{
|
|
"title": "How Pi Works",
|
|
"path": "how-pi-works.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Guides",
|
|
"items": [
|
|
{
|
|
"title": "Run Pi",
|
|
"items": [
|
|
{
|
|
"title": "Use Pi in the Terminal",
|
|
"path": "usage.md"
|
|
},
|
|
{
|
|
"title": "Choose a Model",
|
|
"path": "models.md"
|
|
},
|
|
{
|
|
"title": "Manage Sessions and Context",
|
|
"path": "sessions.md"
|
|
},
|
|
{
|
|
"title": "Run Pi Safely",
|
|
"path": "security.md"
|
|
},
|
|
{
|
|
"title": "Isolate Pi",
|
|
"path": "containerization.md"
|
|
},
|
|
{
|
|
"title": "Run Local Models",
|
|
"path": "llama-cpp.md"
|
|
},
|
|
{
|
|
"title": "Configure Your Terminal",
|
|
"path": "terminal-setup.md"
|
|
},
|
|
{
|
|
"title": "Configure Shell Commands",
|
|
"path": "shell-aliases.md"
|
|
},
|
|
{
|
|
"title": "Run Pi in tmux",
|
|
"path": "tmux.md"
|
|
},
|
|
{
|
|
"title": "Run Pi on Windows",
|
|
"path": "windows.md"
|
|
},
|
|
{
|
|
"title": "Run Pi on Android",
|
|
"path": "termux.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Customize Pi",
|
|
"items": [
|
|
{
|
|
"title": "Configure Pi",
|
|
"path": "configuration.md"
|
|
},
|
|
{
|
|
"title": "Create Prompt Templates",
|
|
"path": "prompt-templates.md"
|
|
},
|
|
{
|
|
"title": "Add Skills",
|
|
"path": "skills.md"
|
|
},
|
|
{
|
|
"title": "Create Themes",
|
|
"path": "themes.md"
|
|
},
|
|
{
|
|
"title": "Use Pi Packages",
|
|
"path": "packages.md"
|
|
},
|
|
{
|
|
"title": "Connect MCP Servers",
|
|
"path": "mcp.md"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Build on Pi",
|
|
"items": [
|
|
{
|
|
"title": "Build Extensions",
|
|
"path": "extensions.md"
|
|
},
|
|
{
|
|
"title": "Add Custom Providers",
|
|
"path": "custom-provider.md"
|
|
},
|
|
{
|
|
"title": "Route with Virtual Models",
|
|
"path": "virtual-models.md"
|
|
},
|
|
{
|
|
"title": "Build Terminal UI Components",
|
|
"path": "tui.md"
|
|
},
|
|
{
|
|
"title": "Integrate with the CLI",
|
|
"path": "cli-integration.md"
|
|
},
|
|
{
|
|
"title": "Use the SDK",
|
|
"path": "sdk.md"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"title": "Reference",
|
|
"items": [
|
|
{
|
|
"title": "CLI",
|
|
"path": "cli.md"
|
|
},
|
|
{
|
|
"title": "Codemode",
|
|
"path": "codemode.md"
|
|
},
|
|
{
|
|
"title": "Slash Commands",
|
|
"path": "slash-commands.md"
|
|
},
|
|
{
|
|
"title": "Settings",
|
|
"path": "settings.md"
|
|
},
|
|
{
|
|
"title": "Environment Variables",
|
|
"path": "environment-variables.md"
|
|
},
|
|
{
|
|
"title": "Keybindings",
|
|
"path": "keybindings.md"
|
|
},
|
|
{
|
|
"title": "Providers",
|
|
"path": "providers.md"
|
|
},
|
|
{
|
|
"title": "Session File Format",
|
|
"path": "session-format.md"
|
|
},
|
|
{
|
|
"title": "Compaction and Branch Summaries",
|
|
"path": "compaction.md"
|
|
},
|
|
{
|
|
"title": "JSON Event Stream",
|
|
"path": "json.md"
|
|
},
|
|
{
|
|
"title": "RPC Protocol",
|
|
"path": "rpc.md"
|
|
},
|
|
{
|
|
"title": "RPC Commands",
|
|
"path": "rpc-commands.md"
|
|
},
|
|
{
|
|
"title": "RPC Extension UI",
|
|
"path": "rpc-extension-ui.md"
|
|
},
|
|
{
|
|
"title": "Message Types",
|
|
"path": "message-types.md"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"redirects": [
|
|
{
|
|
"from": "development.md",
|
|
"to": "index.md"
|
|
},
|
|
{
|
|
"from": "session.md",
|
|
"to": "session-format.md"
|
|
},
|
|
{
|
|
"from": "tree.md",
|
|
"to": "sessions.md"
|
|
},
|
|
{
|
|
"from": "process-integration.md",
|
|
"to": "cli-integration.md"
|
|
}
|
|
]
|
|
}
|