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

@agentproto/adapter-mastra-agent

v0.1.3

Published

@agentproto/adapter-mastra-agent — first-party agentproto agent. An AIP-42 AGENT.md run as a live Mastra agent behind an AIP-44 ACP server, spawnable by the daemon like any other AGENT-CLI arm AND launchable standalone via `agentproto-mastra acp`. Our own

Readme

@agentproto/adapter-mastra-agent

The first-party agentproto agent. Every other adapter (codex, hermes, claude-code, opencode) wraps an external agent CLI. This one is ours end to end: an AIP-42 AGENT.md is run as a live Mastra agent behind an AIP-44 ACP server — our loop, our models, no third-party CLI.

# Standalone — drive it from any ACP-speaking host over stdio:
agentproto-mastra acp --model anthropic/claude-opus-4-8

# Or let the agentproto daemon spawn it like any other arm:
#   agent_start({ adapter: "mastra-agent", model: "openrouter/z-ai/glm-5.2" })

How it works

AGENT.md ──parseAgentManifest──▶ AgentHandle
                                     │ buildMastraAgent (@agentproto/mastra)
                                     ▼
                              Mastra Agent.stream()
                                     │ text deltas
                                     ▼
          MastraAcpAgent (src/acp-host.ts)  ──agent_message_chunk──▶ ACP client
                                     ▲
                       @agentclientprotocol/sdk AgentSideConnection (stdio)
  • Model — any provider/model string Mastra's gateway can route (anthropic/…, openrouter/…, openai/…). The provider key is read from the spawn environment. Default: openrouter/z-ai/glm-5.2.
  • Agent — pass --agent ./path/AGENT.md (or AGENTPROTO_MASTRA_AGENT_FILE) to run a custom agent; omit for a built-in coding default.

Workspace tools

The default agent is granted a workspace toolset, all confined to the session cwd (path-traversal guarded):

| Tool | Does | | --- | --- | | list_dir | List a directory. | | read_file | Read a UTF-8 file. | | write_file | Create/overwrite a file (mkdir -p). | | edit_file | Replace a unique substring. | | run_command | Run a shell command (cwd-scoped, timeout). |

Note: read_file and write_file here are Mastra-native workspace tools scoped to this adapter's session cwd. They are distinct from the runtime MCP filesystem tools (file_read, file_write) registered on the daemon's /mcp endpoint.

run_command is on by default; set AGENTPROTO_MASTRA_NO_EXEC=1 to withhold it.

Memory

Per-conversation memory via Mastra's LibSQL (SQLite) store. Each ACP session is a memory thread, so the agent recalls earlier turns within a session. The db is a single SQLite file under ~/.agentproto/mastra-agent/memory.db (persistent across spawns), overridable with AGENTPROTO_MASTRA_MEMORY_DB. A custom AGENT.md tunes it via the memory: block (scope, retention_turns).

Status

Streaming conversation + workspace tools (edit/run) + SQLite memory, with tool activity surfaced live: each tool the agent runs is relayed to the host as an ACP tool_call (status in_progress) and then a tool_call_update (status completed/failed with the raw output) — read off Mastra's fullStream and mapped in src/tool-call-map.ts. So a host (codex/claude-code/an IDE) shows the "🔧 run_command: …" feed, not just the final prose.