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

@atomic-ai/msco-pi-lot

v0.1.1

Published

Microsoft Copilot provider extension for pi coding agent.

Readme

msco-pi-lot

Microsoft Copilot provider extension for pi.

Install

Install directly from GitHub:

pi install https://github.com/atomic-reactor/msco-pi-lot

You can also pin a ref:

pi install https://github.com/atomic-reactor/msco-pi-lot@main

After install, restart pi and select the microsoft-copilot/copilot model.

For interactive use, log in once from inside pi:

/login microsoft-copilot

Paste your Microsoft Copilot access token when prompted. pi stores the credential in ~/.pi/agent/auth.json. You can remove it later with:

/logout microsoft-copilot

Configuration

Interactive login only supports pasting an access token. For headless or non-interactive use, you can still set Copilot credentials in your shell or in a local .env file next to the installed package:

MICROSOFT_COPILOT_ACCESS_TOKEN=
MICROSOFT_COPILOT_COOKIE=
MICROSOFT_COPILOT_CONVERSATION_ID=
MICROSOFT_COPILOT_CLIENT_SESSION_ID=
MICROSOFT_COPILOT_MODE=reasoning
MICROSOFT_COPILOT_TRACE=0
MICROSOFT_COPILOT_TRACE_FILE=logs/copilot-session.ndjson

Legacy COPILOT_* variable names are still accepted.

Only MICROSOFT_COPILOT_ACCESS_TOKEN is required. Cookie-based settings remain optional transport tweaks, not a login method.

Behavior

  • Registers one pi model: microsoft-copilot/copilot
  • Maps pi thinking levels to Copilot modes:
    • off, minimal, low -> smart
    • medium, high, xhigh -> reasoning
  • Bootstraps a Copilot conversation over HTTP when needed
  • Persists conversation state per pi session
  • Supports local tool use through a prompt-mediated tool loop
  • Uses Copilot server config to size prompts conservatively against the live maxTextMessageLength

Known Issues

  • This is still a basic integration. It gets Microsoft Copilot working inside pi, but it is not yet on par with a full agentic coding agent.
  • Microsoft Copilot will sometimes fail to respond at all. In those cases the request may stall or end without a useful answer, and retrying is often the only workaround.
  • Microsoft Copilot will sometimes behave as if it is running in a browser context. When that happens it may try to inspect browser tabs or page state that do not exist in pi, which can cause the response to stall or go off track.

Development

Install dependencies:

npm install

Run tests:

npm test

For local extension loading during development:

pi -e ./src/index.ts

Tracing

Enable websocket and bootstrap tracing with:

MICROSOFT_COPILOT_TRACE=1
MICROSOFT_COPILOT_TRACE_FILE=logs/copilot-session.ndjson

Trace output is masked, but you should still treat it as sensitive and keep it out of git.