npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@jianmu-plugins/agent-zycode

v0.1.0

Published

zycode as a magpie agent: pick one of magpie's models for it on the Agents page

Readme

@magpie-community/agent-zycode

zycode (the ACP agent pi-agent-cli-lc, the terminal UI zypi and the VS Code extension zycode.zycode) as a magpie agent. magpie has no setup of its own for zycode; with this plugin it is on magpie's Agents page like the agents magpie ships with. Unofficial.

magpie plugin add @magpie-community/agent-zycode

Then pick one of magpie's models in zycode's row. zycode keeps its model in the [model] table of ~/.pi-python/agent.toml and its keys in ~/.pi-python/local.env. magpie edits local.env, and the host part of this package copies the result into [model], because magpie cannot edit TOML.

~/.pi-python/local.env, written by magpie:

MAGPIE_ZYCODE_MODEL=deepseek/deepseek-flash    # magpie's model
MAGPIE_ZYCODE_API_KEY=magpie-zycode            # zycode's own key, so Usage names it
MAGPIE_ZYCODE_BASE_URL=http://127.0.0.1:3425/v1

~/.pi-python/agent.toml, written by the host part:

[model]
provider = "openai"
id = "deepseek/deepseek-flash"
base_url = "http://127.0.0.1:3425/v1"
api_key_env = "MAGPIE_ZYCODE_API_KEY"

Only those four keys of [model] are set. thinking_level, permission, [[models]], comments and every other key stay as they are. If there is no agent.toml, or it has no [model] table, one is made.

Picking zycode's own model again, or switching the plugin off or removing it, puts agent.toml back as it was before: byte for byte when nobody changed it meanwhile. If you or zycode (--setup) changed the file while it was connected, only the lines magpie wrote are put back (or taken out), and your change stays. The file as it was is kept in ~/.pi-python/.magpie-zycode.json (mode 0600) until then.

Restart zycode after a change: it reads agent.toml and local.env when it starts. Its /model picker then lists the one model magpie set.

What it does not do:

  • It writes agent.toml only when its [model] table is plain: a model = {…} inline table, model.id = … keys, [model.x] tables, a [model] key that spans several lines, or a symbolic link in place of agent.toml make it stop and change nothing. magpie's log then says once why: zycode bridge paused, agent.toml left as it is: ….
  • It follows ~/.pi-python. A PI_HOME that points elsewhere is not read.
  • zycode's own thinking level is not touched: set thinking_level in agent.toml as before.
  • zycode sends the OpenAI SDK's User-Agent, so Usage names its requests by the key magpie-zycode.

How agent plugins work: usemagpie.ai/docs/plugins#agents.