Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
agent
Package agent describes every coding agent magpie can drive: where its config lives, which fields matter (model, effort, …) and which values to offer.
|
Package agent describes every coding agent magpie can drive: where its config lives, which fields matter (model, effort, …) and which values to offer. |
|
autostart
Package autostart opens magpie when the user logs in, in the tray with no window, so the gateway every agent is pointed at is there from the start.
|
Package autostart opens magpie when the user logs in, in the tray with no window, so the gateway every agent is pointed at is there from the start. |
|
backup
Package backup packs what the user set up in magpie into one file, sealed with a passphrase, to carry to another machine: the providers (their keys too, unless left out), the pictures picked for them, the settings, the profiles, every agent's model and the library (the instructions, MCP servers and skills magpie gives the agents).
|
Package backup packs what the user set up in magpie into one file, sealed with a passphrase, to carry to another machine: the providers (their keys too, unless left out), the pictures picked for them, the settings, the profiles, every agent's model and the library (the instructions, MCP servers and skills magpie gives the agents). |
|
catalog
Package catalog knows which models exist.
|
Package catalog knows which models exist. |
|
claudebridge
Package claudebridge contains the small stdio MCP helper used by magpie's Claude Subscription bridge.
|
Package claudebridge contains the small stdio MCP helper used by magpie's Claude Subscription bridge. |
|
codexcat
Package codexcat renders models the way Codex describes them: the entries of its models.json, for `model_catalog_json` and for the model list magpie hands Codex in place of the ChatGPT backend's.
|
Package codexcat renders models the way Codex describes them: the entries of its models.json, for `model_catalog_json` and for the model list magpie hands Codex in place of the ChatGPT backend's. |
|
davsync
Package davsync keeps magpie's setup the same on every computer through a WebDAV folder.
|
Package davsync keeps magpie's setup the same on every computer through a WebDAV folder. |
|
dimagent
Package dimagent speaks DimAgent's (dimagent.cn) API: an OAuth 2.0 authorization-code + PKCE sign-in (a fixed public client and a fixed localhost:54321 callback), a model listing at /v1/models?type=dim, an account-usage endpoint, and OpenAI chat completions at /v1/chat/completions.
|
Package dimagent speaks DimAgent's (dimagent.cn) API: an OAuth 2.0 authorization-code + PKCE sign-in (a fixed public client and a fixed localhost:54321 callback), a model listing at /v1/models?type=dim, an account-usage endpoint, and OpenAI chat completions at /v1/chat/completions. |
|
edit
Package edit provides format-preserving editors for the config files that coding agents keep: JSON/JSONC, TOML and YAML.
|
Package edit provides format-preserving editors for the config files that coding agents keep: JSON/JSONC, TOML and YAML. |
|
filememo
Package filememo keeps what was parsed from a file until the file changes, so a page that asks many times over reads it once.
|
Package filememo keeps what was parsed from a file until the file changes, so a page that asks many times over reads it once. |
|
fx
Package fx keeps the dollar-to-yuan rate the CNY currency preference (see internal/settings) converts list-price costs with.
|
Package fx keeps the dollar-to-yuan rate the CNY currency preference (see internal/settings) converts list-price costs with. |
|
gateway
Package gateway is the local LLM endpoint agents talk to.
|
Package gateway is the local LLM endpoint agents talk to. |
|
gui
Package gui hosts the desktop app: a tray panel and a regular window that share one small web UI.
|
Package gui hosts the desktop app: a tray panel and a regular window that share one small web UI. |
|
imagemcp
Package imagemcp is `magpie mcp image`: a stdio MCP server an agent is given, when it is picked for it in the Library, to make images with the model the Settings' Image generation names.
|
Package imagemcp is `magpie mcp image`: a stdio MCP server an agent is given, when it is picked for it in the Library, to make images with the model the Settings' Image generation names. |
|
library
Package library keeps what every agent should know, once: the instructions each reads before a conversation, the MCP servers it can call and the skills it can load.
|
Package library keeps what every agent should know, once: the instructions each reads before a conversation, the MCP servers it can call and the skills it can load. |
|
netproxy
Package netproxy decides which proxy magpie's own requests to vendors go through.
|
Package netproxy decides which proxy magpie's own requests to vendors go through. |
|
proc
Package proc makes the commands magpie runs: agents' CLIs, the probes that ask them what they have, the system's own tools.
|
Package proc makes the commands magpie runs: agents' CLIs, the probes that ask them what they have, the system's own tools. |
|
profile
Package profile stores named snapshots of every agent's settings, and of who gets what from the library, so a whole setup can be switched in one move.
|
Package profile stores named snapshots of every agent's settings, and of who gets what from the library, so a whole setup can be switched in one move. |
|
provider
Package provider holds the model vendors magpie can reach: where each one lives, which protocols it speaks, the API key the user typed in, and which of its models should show up in the agents' pickers.
|
Package provider holds the model vendors magpie can reach: where each one lives, which protocols it speaks, the API key the user typed in, and which of its models should show up in the agents' pickers. |
|
qoder
Package qoder speaks Qoder's inference API (api3.qoder.sh agent_chat_generation SSE) the way the Qoder desktop client does, so a Qoder subscription can serve every agent through magpie's gateway.
|
Package qoder speaks Qoder's inference API (api3.qoder.sh agent_chat_generation SSE) the way the Qoder desktop client does, so a Qoder subscription can serve every agent through magpie's gateway. |
|
redact
Package redact keeps secrets on the machine.
|
Package redact keeps secrets on the machine. |
|
sessions
Package sessions lists the agents' recent sessions from their own session files — Claude Code's projects/*/<id>.jsonl (and Qoder's, the same kind), Codex's rollout files, OpenCode's database (or its older JSON files) and ZCode's, Pi's session files, DeepSeek Harness's, Cline's, Grok Build's and WorkBuddy's — with the tokens each spent, what that cost at list price, and the command that resumes it.
|
Package sessions lists the agents' recent sessions from their own session files — Claude Code's projects/*/<id>.jsonl (and Qoder's, the same kind), Codex's rollout files, OpenCode's database (or its older JSON files) and ZCode's, Pi's session files, DeepSeek Harness's, Cline's, Grok Build's and WorkBuddy's — with the tokens each spent, what that cost at list price, and the command that resumes it. |
|
settings
Package settings keeps the few preferences the desktop app has: which palette to paint with, which language to speak, how the agents are arranged.
|
Package settings keeps the few preferences the desktop app has: which palette to paint with, which language to speak, how the agents are arranged. |
|
shortcut
Package shortcut puts magpie in the Start menu on Windows.
|
Package shortcut puts magpie in the Start menu on Windows. |
|
stats
Package stats counts magpie's users: once a day a running magpie tells PostHog it is in use, under an id made up on this computer, with its version and system.
|
Package stats counts magpie's users: once a day a running magpie tells PostHog it is in use, under an id made up on this computer, with its version and system. |
|
tui
Package tui is magpie in the terminal: one row per agent, arrow keys to pick a field, enter to change it; and pages for providers and usage beside it (pages.go), routing groups (routing.go), sessions (sessions.go) and the library (library.go), 1–6 to go between them.
|
Package tui is magpie in the terminal: one row per agent, arrow keys to pick a field, enter to change it; and pages for providers and usage beside it (pages.go), routing groups (routing.go), sessions (sessions.go) and the library (library.go), 1–6 to go between them. |
|
update
Package update keeps magpie current.
|
Package update keeps magpie current. |
|
usage
Package usage keeps the token count of every call the gateway serves, so magpie can show what each agent and model consumed and roughly what it cost.
|
Package usage keeps the token count of every call the gateway serves, so magpie can show what each agent and model consumed and roughly what it cost. |
|
zed
Package zed speaks to Zed's hosted models, the way the Zed editor does for a Zed Pro (or trial, student, business) account.
|
Package zed speaks to Zed's hosted models, the way the Zed editor does for a Zed Pro (or trial, student, business) account. |
Click to show internal directories.
Click to hide internal directories.