internal/

directory
v0.1.4398 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT

Directories

Path Synopsis
Package access keeps the named API keys issued by the gateway.
Package access keeps the named API keys issued by the gateway.
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.
Package agentenv names the environment variables through which an agent really installed on this machine reaches magpie: the one list a test sandbox clears, so that a test meets only the agents it put there itself.
Package agentenv names the environment variables through which an agent really installed on this machine reaches magpie: the one list a test sandbox clears, so that a test meets only the agents it put there itself.
Package agentplug runs the agents plugins add: a module, named by a plugin's package.json magpie.agent, that says where an agent magpie has no wiring of its own keeps its model, and what else to write there for it to use magpie's gateway.
Package agentplug runs the agents plugins add: a module, named by a plugin's package.json magpie.agent, that says where an agent magpie has no wiring of its own keeps its model, and what else to write there for it to use magpie's gateway.
Package appdir decides where magpie keeps its own files: the one place every other package asks (#508).
Package appdir decides where magpie keeps its own files: the one place every other package asks (#508).
Package applog writes the desktop app's log to a file, as well as to stderr.
Package applog writes the desktop app's log to a file, as well as to stderr.
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.
Package awake keeps the computer from going to sleep by itself while agents work through magpie's gateway (xiao_wang24004 on X: the computer went to sleep in the middle of an agent's task).
Package awake keeps the computer from going to sleep by itself while agents work through magpie's gateway (xiao_wang24004 on X: the computer went to sleep in the middle of an agent's task).
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).
Package bark pushes a message to the iOS Bark app (bark.day.app): one POST of JSON to the server's /push, with the device key in the body, so a key never sits in an address that a log, a proxy or an error names.
Package bark pushes a message to the iOS Bark app (bark.day.app): one POST of JSON to the server's /push, with the device key in the body, so a key never sits in an address that a log, a proxy or an error names.
Package beat wakes the loops that look at something every so often at one time: each waits for the next multiple of its interval on the clock, so a 5s loop, a 15s one and a 30s one wake together.
Package beat wakes the loops that look at something every so often at one time: each waits for the next multiple of its interval on the clock, so a 5s loop, a 15s one and a 30s one wake together.
Package bridgesid names the Claude Code sessions the Claude subscription bridge runs, so the local-session readers can tell them from the user's own.
Package bridgesid names the Claude Code sessions the Claude subscription bridge runs, so the local-session readers can tell them from the user's own.
Package browserext is Magpie Browser, the browser extension through which the agents magpie serves use the user's own browser: their tabs, signed in to the sites they use (gateway/browser.go relays the calls).
Package browserext is Magpie Browser, the browser extension through which the agents magpie serves use the user's own browser: their tabs, signed in to the sites they use (gateway/browser.go relays the calls).
Package browsermcp is `magpie mcp browser`: the browser MCP server (gateway.BrowserMCPPath) over stdio, for an agent that starts its MCP servers as commands.
Package browsermcp is `magpie mcp browser`: the browser MCP server (gateway.BrowserMCPPath) over stdio, for an agent that starts its MCP servers as commands.
Package budget holds each gateway key to its own limit (#585): what a key has used in its window is summed from usage.jsonl, the records the Usage page shows, so it survives a restart; a request is let in only while the key has something left after what its requests in flight are expected to use, and those are settled with what the call recorded.
Package budget holds each gateway key to its own limit (#585): what a key has used in its window is summed from usage.jsonl, the records the Usage page shows, so it survives a restart; a request is let in only while the key has something left after what its requests in flight are expected to use, and those are settled with what the call recorded.
Package capre is a regular expression held to a length.
Package capre is a regular expression held to a length.
Package catalog knows which models exist.
Package catalog knows which models exist.
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.
Package claudecode finds the Claude Code magpie's Claude subscription runs, and downloads Anthropic's own build of it when the user asks, for a machine with none: a server or a container (Jorben on Discord).
Package claudecode finds the Claude Code magpie's Claude subscription runs, and downloads Anthropic's own build of it when the user asks, for a machine with none: a server or a container (Jorben on Discord).
Package claudelock takes the mkdir locks Claude Code holds while it saves its files, taken as Claude Code takes them (2.1.316, its bundled proper-lockfile): a lock is a directory made with mkdir, held while it stands and let go by removing it.
Package claudelock takes the mkdir locks Claude Code holds while it saves its files, taken as Claude Code takes them (2.1.316, its bundled proper-lockfile): a lock is a directory made with mkdir, held while it stands and let go by removing it.
Package claudeseal carries Claude's signed reasoning through a Responses client (mysterious_dove_96933 on Discord).
Package claudeseal carries Claude's signed reasoning through a Responses client (mysterious_dove_96933 on Discord).
Package claudetui runs Claude Code's interactive mode for magpie's Claude subscription bridge, as `magpie claude-tui-helper`: the bridge talks to it as it talks to `claude -p --input-format stream-json --output-format stream-json`, and it runs the real interactive Claude Code in a pseudo-terminal of its own.
Package claudetui runs Claude Code's interactive mode for magpie's Claude subscription bridge, as `magpie claude-tui-helper`: the bridge talks to it as it talks to `claude -p --input-format stream-json --output-format stream-json`, and it runs the real interactive Claude Code in a pseudo-terminal of its own.
Package cli is magpie's command line: every command, and the app, tray and TUI it opens (the root's main.go only calls Main).
Package cli is magpie's command line: every command, and the app, tray and TUI it opens (the root's main.go only calls Main).
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.
Package codexrelay keeps the Codex threads open when magpie quits working until magpie is opened again or they end.
Package codexrelay keeps the Codex threads open when magpie quits working until magpie is opened again or they end.
Package codexsummary is the compaction magpie answers Codex with when it compacts a conversation itself (a model of magpie's, or Codex's own models through magpie's accounts), and the message it stands for.
Package codexsummary is the compaction magpie answers Codex with when it compacts a conversation itself (a model of magpie's, or Codex's own models through magpie's accounts), and the message it stands for.
Package conptypair is the ConPTY a Windows release carries for Windows 10, whose own drops a paste's bracketed-paste marks and loses 1024-byte blocks of a long write (yetone/magpie#5205): Microsoft's Microsoft.Windows.Console.ConPTY package from nuget.org (MIT), its conpty.dll and the OpenConsole.exe it runs, both signed by Microsoft.
Package conptypair is the ConPTY a Windows release carries for Windows 10, whose own drops a paste's bracketed-paste marks and loses 1024-byte blocks of a long write (yetone/magpie#5205): Microsoft's Microsoft.Windows.Console.ConPTY package from nuget.org (MIT), its conpty.dll and the OpenConsole.exe it runs, both signed by Microsoft.
Package daemon runs `magpie serve` as a service of the user's own: a systemd user unit on Linux, a launch agent on the Mac.
Package daemon runs `magpie serve` as a service of the user's own: a systemd user unit on Linux, a launch agent on the Mac.
Package davsync keeps magpie's setup the same on every computer through a WebDAV folder, an S3-compatible bucket or a GitHub repository.
Package davsync keeps magpie's setup the same on every computer through a WebDAV folder, an S3-compatible bucket or a GitHub repository.
Package dayzone makes a time zone whose midnight falls at a chosen hour of the real day, so that every place that cuts days by the zone's midnight (the Usage page, a daily cap) cuts them there without knowing: with a day that starts at 4, a call at 01:30 belongs to the day before (ssharpcc on X: coding past 1am should count toward the day before).
Package dayzone makes a time zone whose midnight falls at a chosen hour of the real day, so that every place that cuts days by the zone's midnight (the Usage page, a daily cap) cuts them there without knowing: with a day that starts at 4, a call at 01:30 belongs to the day before (ssharpcc on X: coding past 1am should count toward the day before).
Package desktopdir finds Claude Desktop's folders: the one place the agent, the library and the session readers ask.
Package desktopdir finds Claude Desktop's folders: the one place the agent, the library and the session readers ask.
Package desktopiso makes the app that starts Claude Desktop in a folder of its own (#5671): ~/Applications/Claude Magpie.app, whose executable is a script that runs the user's Claude.app with --user-data-dir set to desktopdir.Isolated.
Package desktopiso makes the app that starts Claude Desktop in a folder of its own (#5671): ~/Applications/Claude Magpie.app, whose executable is a script that runs the user's Claude.app with --user-data-dir set to desktopdir.Isolated.
Package dirent decides whether an entry a reader lists is a folder to go into, links included.
Package dirent decides whether an entry a reader lists is a folder to go into, links included.
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.
Package filelock keeps a change to a file one at a time across the magpies on a computer: the gateway that runs all day, and each magpie run from a terminal or a script meanwhile.
Package filelock keeps a change to a file one at a time across the magpies on a computer: the gateway that runs all day, and each magpie run from a terminal or a script meanwhile.
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.
Package fonts describes the installed faces a desktop page can choose.
Package fonts describes the installed faces a desktop page can choose.
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.
Package gateway is the local LLM endpoint agents talk to.
Package gateway is the local LLM endpoint agents talk to.
Package ghtoken has magpie's requests to GitHub's REST API carry the user's GitHub token, and says plainly when GitHub turns them away.
Package ghtoken has magpie's requests to GitHub's REST API carry the user's GitHub token, and says plainly when GitHub turns them away.
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.
genpurposes command
genpurposes generates the browser's request-kind catalog from usage's catalog.
genpurposes generates the browser's request-kind catalog from usage's catalog.
windowshape
Package windowshape measures a Mac window for the GUI's tests: the radius of its corners, where its traffic lights are, whether it has a toolbar, where a sheet on it begins and whether a first press on it begins a window drag.
Package windowshape measures a Mac window for the GUI's tests: the radius of its corners, where its traffic lights are, whether it has a toolbar, where a sheet on it begins and whether a first press on it begins a window drag.
Package gwbudget is the gateway's budget point (P3 of docs/subsystems/plugin-runtime.md): what holds a gateway key to the limits its owner set (#585).
Package gwbudget is the gateway's budget point (P3 of docs/subsystems/plugin-runtime.md): what holds a gateway key to the limits its owner set (#585).
Package gwmw is the gateway's middleware point (P3 of docs/subsystems/plugin-runtime.md): what changes a request on its way through the gateway and its reply on the way back.
Package gwmw is the gateway's middleware point (P3 of docs/subsystems/plugin-runtime.md): what changes a request on its way through the gateway and its reply on the way back.
Package gwtool is the gateway's tool point (P3 of docs/subsystems/plugin-runtime.md): the tools magpie answers itself for an agent, in place of the vendor.
Package gwtool is the gateway's tool point (P3 of docs/subsystems/plugin-runtime.md): the tools magpie answers itself for an agent, in place of the vendor.
Package h264 makes small H.264 videos of screen pictures, in pure Go: Constrained Baseline, every changed macroblock coded Intra 16x16 with CAVLC, every unchanged one skipped.
Package h264 makes small H.264 videos of screen pictures, in pure Go: Constrained Baseline, every changed macroblock coded Intra 16x16 with CAVLC, every unchanged one skipped.
Package handoff hands the gateway's listening socket from the magpie restarting to update to the version it started, so the port is never closed between them: the new one serves on the same socket, and the old one stops accepting and finishes what it has.
Package handoff hands the gateway's listening socket from the magpie restarting to update to the version it started, so the port is never closed between them: the new one serves on the same socket, and the old one stops accepting and finishes what it has.
Package iconproxy names where magpie downloads a remote picture from.
Package iconproxy names where magpie downloads a remote picture from.
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, and videos with the first video model the gateway has (gateway.AutoVideomaker), or with the model a call names, among those the gateway lists for it.
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, and videos with the first video model the gateway has (gateway.AutoVideomaker), or with the model a call names, among those the gateway lists for it.
Package jsmod compiles a plugin's JavaScript module for moejs, the JavaScript engine written in Go that magpie runs plugin code in its own process with: gateway middleware (internal/middleware) and agents (internal/agentplug).
Package jsmod compiles a plugin's JavaScript module for moejs, the JavaScript engine written in Go that magpie runs plugin code in its own process with: gateway middleware (internal/middleware) and agents (internal/agentplug).
Package lastgood keeps the last good generation of magpie's own state files (accounts, sign-ins, providers, settings) and reads it back when the file itself can't be read.
Package lastgood keeps the last good generation of magpie's own state files (accounts, sign-ins, providers, settings) and reads it back when the file itself can't be read.
Package lazyre holds a regular expression that is compiled the first time it is used, not when its package starts.
Package lazyre holds a regular expression that is compiled the first time it is used, not when its package starts.
Package libc tells which C library this Linux runs on, for the downloads that come in a glibc build and a musl one: Claude Code's and Bun's.
Package libc tells which C library this Linux runs on, for the downloads that come in a glibc build and a musl one: Claude Code's and Bun's.
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.
Package masking is Settings → Privacy's masking as the gateway's masker (gwmw.Masker): secrets, personal data and the user's own words go to a vendor as placeholders (internal/redact), and come back as they were.
Package masking is Settings → Privacy's masking as the gateway's masker (gwmw.Masker): secrets, personal data and the user's own words go to a vendor as placeholders (internal/redact), and come back as they were.
Package maskrec keeps the record of what masking swapped for placeholders before a request went to a vendor, for Settings → Privacy to show: which kinds, found by which finder, going to whom.
Package maskrec keeps the record of what masking swapped for placeholders before a request went to a vendor, for Settings → Privacy to show: which kinds, found by which finder, going to whom.
Package mcpauth signs magpie in to a remote MCP server that asks for an OAuth sign-in (Neon, Notion, Supabase…), once for every agent (#615).
Package mcpauth signs magpie in to a remote MCP server that asks for an OAuth sign-in (Neon, Notion, Supabase…), once for every agent (#615).
mcpauthtest
Package mcpauthtest is a remote MCP server behind an OAuth sign-in, as Neon's or Notion's is, for the tests of magpie signing in to one (#615).
Package mcpauthtest is a remote MCP server behind an OAuth sign-in, as Neon's or Notion's is, for the tests of magpie signing in to one (#615).
Package memdistill reads the agents' finished conversations and asks a model what in them is worth remembering: a preference the user stated, a rule learned from a correction, a fact of the project the code doesn't say.
Package memdistill reads the agents' finished conversations and asks a model what in them is worth remembering: a preference the user stated, a rule learned from a correction, a fact of the project the code doesn't say.
Package memembed is memory's search by meaning: paraphrase-multilingual-MiniLM-L12-v2 (sentence-transformers, Apache 2.0; Xenova's int8 ONNX of it), run in magpie's own process by internal/pii/guard, gives each memory a place in a space where texts that say the same are near, in any of 50 languages and across them, and memory.Search fuses how near each is to what was searched with its word ranking (memory.Semantic).
Package memembed is memory's search by meaning: paraphrase-multilingual-MiniLM-L12-v2 (sentence-transformers, Apache 2.0; Xenova's int8 ONNX of it), run in magpie's own process by internal/pii/guard, gives each memory a place in a space where texts that say the same are near, in any of 50 languages and across them, and memory.Search fuses how near each is to what was searched with its word ranking (memory.Semantic).
Package memory is what the agents know from earlier conversations, kept once for all of them: a preference the user stated in Claude Code is known to Codex the next day.
Package memory is what the agents know from earlier conversations, kept once for all of them: a preference the user stated in Claude Code is known to Codex the next day.
Package middleware runs the gateway middleware plugins declare: a module with onRequest, onAccount, onProvider, onEvent and onResponse hooks that the gateway calls on every request an agent sends it, each account and provider it tries the request on, every event of the reply's stream and every whole reply.
Package middleware runs the gateway middleware plugins declare: a module with onRequest, onAccount, onProvider, onEvent and onResponse hooks that the gateway calls on every request an agent sends it, each account and provider it tries the request on, every event of the reply's stream and every whole reply.
Package mtls is magpie's own certificate authority for mutual TLS (hhdaxia on X: "希望能支持 mtls,避免暴露端口到公网被 compromise"; #5596).
Package mtls is magpie's own certificate authority for mutual TLS (hhdaxia on X: "希望能支持 mtls,避免暴露端口到公网被 compromise"; #5596).
Package netguard is the one rule for where a download of a URL magpie didn't choose may connect: the gateway's (a caller's image, web_fetch, a vendor's image or video, generate_image's download) and a provider's icon.
Package netguard is the one rule for where a download of a URL magpie didn't choose may connect: the gateway's (a caller's image, web_fetch, a vendor's image or video, generate_image's download) and a provider's icon.
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.
sshtest
Package sshtest is an SSH server on loopback for tests of magpie's SSH proxy: it logs a user in by password or key and answers each direct-tcpip channel (ssh -D's CONNECT) with an http.Handler of its own, so nothing a test sends through it leaves the machine.
Package sshtest is an SSH server on loopback for tests of magpie's SSH proxy: it logs a user in by password or key and answers each direct-tcpip channel (ssh -D's CONNECT) with an http.Handler of its own, so nothing a test sends through it leaves the machine.
Package notices holds the third-party notices every magpie binary carries: THIRD_PARTY_NOTICES at the repository's root, which package main embeds and hands over before anything runs.
Package notices holds the third-party notices every magpie binary carries: THIRD_PARTY_NOTICES at the repository's root, which package main embeds and hands over before anything runs.
Package oidc lets a CI job trade an OIDC token for a short-lived gateway key (#4531, xazaj on X: GitHub Actions' token in place of a key kept in the repository's secrets).
Package oidc lets a CI job trade an OIDC token for a short-lived gateway key (#4531, xazaj on X: GitHub Actions' token in place of a key kept in the repository's secrets).
oidctest
Package oidctest serves an OIDC issuer on an httptest TLS server for the tests of package oidc and the gateway: its discovery document, its keys and the tokens it signs, never reaching the network.
Package oidctest serves an OIDC issuer on an httptest TLS server for the tests of package oidc and the gateway: its discovery document, its keys and the tokens it signs, never reaching the network.
Package omarchy is what magpie knows of Omarchy (omarchy.org), the Hyprland desktop: whether it runs on one, and the look its current theme gives every surface, so magpie's windows can take that look there and nowhere else.
Package omarchy is what magpie knows of Omarchy (omarchy.org), the Hyprland desktop: whether it runs on one, and the look its current theme gives every surface, so magpie's windows can take that look there and nowhere else.
pii
Package pii runs Settings → Privacy's local model, which finds what the masking rules can't (internal/redact's Model): a name or an address in free text, a password with nothing around it to say so.
Package pii runs Settings → Privacy's local model, which finds what the masking rules can't (internal/redact's Model): a name or an address in free text, a password with nothing around it to say so.
guard
Package guard runs AstrLink Guard (QuantumNous/astrlink-guard, Apache-2.0), a token classifier for secrets and personal data in Chinese and English text: its int8 ONNX model (37 MB) read by onnx.go and run by bert.go on the CPU in Go, or on a Mac by CoreML (coreml.go), its tokenizer by tokenizer.go.
Package guard runs AstrLink Guard (QuantumNous/astrlink-guard, Apache-2.0), a token classifier for secrets and personal data in Chinese and English text: its int8 ONNX model (37 MB) read by onnx.go and run by bert.go on the CPU in Go, or on a Mac by CoreML (coreml.go), its tokenizer by tokenizer.go.
Package plugin runs OpenCode's provider plugins for magpie.
Package plugin runs OpenCode's provider plugins for magpie.
Package pluginrt runs magpie's built-in plugins: the parts of magpie not everyone needs (Lxxyx on X: "功能太多了"), each one a package under plugins/ that registers a Manifest.
Package pluginrt runs magpie's built-in plugins: the parts of magpie not everyone needs (Lxxyx on X: "功能太多了"), each one a package under plugins/ that registers a Manifest.
Package probelog writes down the requests magpie sends a provider on its own behalf, outside any agent's turn: the provider editor's Test, its Detect APIs and per-model detection, and a model list's refresh (neiko and gys619 on Discord: a test left no trace in the request log).
Package probelog writes down the requests magpie sends a provider on its own behalf, outside any agent's turn: the provider editor's Test, its Detect APIs and per-model detection, and a model list's refresh (neiko and gys619 on Discord: a test left no trace in the request log).
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.
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.
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.
Package qoder holds what the move of Qoder's and Qoder CN's built-in accounts onto their plugin reads: the sites' ids and names and the credential kept in each account's auth blob.
Package qoder holds what the move of Qoder's and Qoder CN's built-in accounts onto their plugin reads: the sites' ids and names and the credential kept in each account's auth blob.
Package redact keeps secrets on the machine.
Package redact keeps secrets on the machine.
Package rosetta says whether magpie runs under Rosetta, which only macOS has.
Package rosetta says whether magpie runs under Rosetta, which only macOS has.
Package routes is the gateway's router strategy point (P3 of docs/subsystems/plugin-runtime.md): how one pool of routes — a provider's accounts or keys, or the heads of a group's members — is ordered for a request.
Package routes is the gateway's router strategy point (P3 of docs/subsystems/plugin-runtime.md): how one pool of routes — a provider's accounts or keys, or the heads of a group's members — is ordered for a request.
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 and omp's, DeepSeek Harness's, Cline's, Grok Build's, WorkBuddy's and CodeBuddy Code's, Droid's, Cursor CLI's, Alma's and OpenMausBot's chat stores — with the tokens each spent, what that cost at the effective 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 and omp's, DeepSeek Harness's, Cline's, Grok Build's, WorkBuddy's and CodeBuddy Code's, Droid's, Cursor CLI's, Alma's and OpenMausBot's chat stores — with the tokens each spent, what that cost at the effective price, and the command that resumes it.
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.
Package settingsapi is what the Settings page's save writes: the fields POST /api/settings takes from the page, how a value is checked, and the save itself.
Package settingsapi is what the Settings page's save writes: the fields POST /api/settings takes from the page, how a value is checked, and the save itself.
Package shortcut puts magpie in the Start menu on Windows.
Package shortcut puts magpie in the Start menu on Windows.
Package source chooses where magpie reads from, with a mirror as a fallback when the official address can't be reached.
Package source chooses where magpie reads from, with a mirror as a fallback when the official address can't be reached.
Package sqlitedb is the one way magpie reaches SQLite: a package that opens a database imports it, blank, in place of modernc.org/sqlite.
Package sqlitedb is the one way magpie reaches SQLite: a package that opens a database imports it, blank, in place of modernc.org/sqlite.
Package stall ends a download that stops sending, and never one that is still moving, however slowly.
Package stall ends a download that stops sending, and never one that is still moving, however slowly.
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, and, unless the user turned that part off, which agents, providers and models it is used with, by their built-in ids (Usage): a provider of the user's own is only "custom".
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, and, unless the user turned that part off, which agents, providers and models it is used with, by their built-in ids (Usage): a provider of the user's own is only "custom".
Package steady reads and replaces files that another process may be replacing at that moment.
Package steady reads and replaces files that another process may be replacing at that moment.
Package testenv gives a package's tests a home of their own, on every OS: HOME, USERPROFILE (Windows' home), the XDG folders and Windows' APPDATA and LOCALAPPDATA all point into one new temporary folder, the agents' own variables (agentenv.Vars) are cleared, and the keychain tools and agent CLIs on PATH are failing stand-ins, so that no test reads or writes the files of the user running it.
Package testenv gives a package's tests a home of their own, on every OS: HOME, USERPROFILE (Windows' home), the XDG folders and Windows' APPDATA and LOCALAPPDATA all point into one new temporary folder, the agents' own variables (agentenv.Vars) are cleared, and the keychain tools and agent CLIs on PATH are failing stand-ins, so that no test reads or writes the files of the user running it.
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.
Package tune works out, from what one user's agents really did, the settings that would have cost that user the fewest tokens: when each agent compacts its conversation, and how long Claude Code keeps its prompt cache.
Package tune works out, from what one user's agents really did, the settings that would have cost that user the fewest tokens: when each agent compacts its conversation, and how long Claude Code keeps its prompt cache.
Package uilang is the language magpie speaks in: the one the user picked in Settings (settings.Lang), or with "system" the system's.
Package uilang is the language magpie speaks in: the one the user picked in Settings (settings.Lang), or with "system" the system's.
Package uninstall takes magpie off this computer: `magpie uninstall` and Settings › Uninstall magpie.
Package uninstall takes magpie off this computer: `magpie uninstall` and Settings › Uninstall magpie.
Package update keeps magpie current.
Package update keeps magpie current.
launcher command
magpie.com runs on Windows only (main_windows.go).
magpie.com runs on Windows only (main_windows.go).
Package upstream reads the vendors' own status pages (#971, emo172): a request that fails while Anthropic's or OpenAI's API is down looks, in magpie, like a sign-in or quota problem, and the user signs in again and again for nothing.
Package upstream reads the vendors' own status pages (#971, emo172): a request that fails while Anthropic's or OpenAI's API is down looks, in magpie, like a sign-in or quota problem, and the user signs in again and again for nothing.
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.
Package usageapi builds what magpie tells of its usage log: the Usage page's summary and its requests, a page at a time.
Package usageapi builds what magpie tells of its usage log: the Usage page's summary and its requests, a page at a time.
Package webview2env keeps WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS as magpie was started with.
Package webview2env keeps WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS as magpie was started with.
Package winarm says whether magpie runs under Windows on Arm's x64 emulation: an x64 build on an Arm64 computer.
Package winarm says whether magpie runs under Windows on Arm's x64 emulation: an x64 build on an Arm64 computer.
Package wslrun runs, from magpie on Windows, a command that is installed only in a WSL distro: Claude Code signed in to inside Ubuntu, say.
Package wslrun runs, from magpie on Windows, a command that is installed only in a WSL distro: Claude Code signed in to inside Ubuntu, say.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL