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

@ocis/mycoder-cli

v0.0.4

Published

AFS MyCoder CLI

Readme

AFS MyCoder CLI

The AFS MyCoder CLI (mycoder) is a customizable command line coding agent.

AFS MyCoder CLI Demo

Installation

macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.ps1 | iex

Or install with npm if you have Node.js 20+:

npm i -g @ocis/mycoder-cli

Usage

mycoder

First Run: When you first use the CLI, it automatically creates a .env file in ~/.afsmycoder/ (or %USERPROFILE%\.afsmycoder\ on Windows) with default server configuration (DOMAIN=production).

Headless Mode

Headless mode (-p flag) runs without an interactive terminal UI, making it perfect for:

  • Scripts and automation
  • CI/CD pipelines
  • Docker containers
  • VSCode/IntelliJ extension integration
  • Environments without a TTY
# Basic usage
mycoder -p "Generate a conventional commit name for the current git changes."

# With piped input
echo "Review this code" | mycoder -p

# JSON output for scripting
mycoder -p "Analyze the code" --format json

# Silent mode (strips thinking tags)
mycoder -p "Write a README" --silent

TTY-less Environments: Headless mode is designed to work in environments without a terminal (TTY), such as when called from VSCode/IntelliJ extensions using terminal commands. The CLI will not attempt to read stdin or initialize the interactive UI when running in headless mode with a supplied prompt.

Session Management

The CLI automatically saves your chat history for each terminal session. You can resume where you left off:

# Resume the last session in this terminal
mycoder --resume

# List recent sessions and choose one to resume
mycoder ls

# List sessions in JSON format (for scripting)
mycoder ls --json

Command Line Options

  • -p: Run in headless mode (no TUI)
  • --config <path>: Specify agent configuration path
  • --resume: Resume the last session for this terminal
  • <prompt>: Optional prompt to start with

Environment Variables

  • AFSMYCODER_CLI_DISABLE_COMMIT_SIGNATURE: Disable adding the AFS MyCoder commit signature to generated commit messages
  • FORCE_NO_TTY: Force TTY-less mode, prevents stdin reading (useful for testing and automation)

Commands

  • mycoder: Start an interactive chat session
  • mycoder ls: List recent sessions with TUI selector to choose one to resume
  • mycoder remote: Launch a remote instance
  • mycoder serve: Start HTTP server mode

Session Listing (mycoder ls)

Shows recent sessions, limited by screen height to ensure it fits on your terminal.

  • --json: Output in JSON format for scripting (always shows 10 sessions)

TTY-less Support

The CLI fully supports running in environments without a TTY (terminal):

# From Docker without TTY allocation
docker run --rm my-image mycoder -p "Generate docs"

# From CI/CD pipeline
mycoder -p "Review changes" --format json

# From VSCode/IntelliJ extension terminal tool
mycoder -p "Analyze code" --silent

The CLI automatically detects TTY-less environments and adjusts its behavior:

  • Skips stdin reading when a prompt is supplied
  • Disables interactive UI components
  • Ensures clean stdout/stderr output

For more details, see spec/tty-less-support.md.

Build

Development Build

Build the CLI from source:

# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

Package for Distribution

Create a distributable tarball for testing:

# In extensions/cli directory, create a tarball
npm pack

# This generates a file like: ocis-mycoder-cli-0.0.3.tgz

Local Installation Testing

Install and test the packaged CLI locally:

# Install from the generated tarball
npm install -g /path/to/ocis-mycoder-cli-0.0.3.tgz

# Verify installation
mycoder --help
mycoder --version

# Test basic functionality
mycoder -p "Hello, world!"

Verification

Run smoke tests to verify the build:

# Run comprehensive smoke tests
npm run test:smoke

# Run unit tests
npm test

# Run end-to-end tests
npm run test:e2e

The smoke tests verify:

  • Bundle files exist and are executable
  • CLI commands work correctly (--version, --help)
  • Bundle size is within reasonable limits
  • Local packages are properly bundled
  • No missing runtime dependencies

For detailed build process documentation, see BUILD.md.