lousy-agents

mcp
SUMMARY

Bootstrap projects with pre-configured instructions, tests, and linters that guide AI coding agents to produce reliable code

README.md

Lousy Agents

OpenSSF Scorecard

Turn "lousy" AI outputs into production-grade code.

Demo

TL;DR

Lousy Agents is a set of published npm packages for agentic software development, with @lousy-agents/cli as the main entry point. Run npx @lousy-agents/cli init to create a new project with testing, linting, and GitHub Copilot configuration. Run npx @lousy-agents/cli copilot-setup in existing projects to generate a workflow that gives Copilot your environment context. Add @lousy-agents/mcp for MCP integrations and @lousy-agents/agent-shell for npm script telemetry when you need them.


Lousy Agents is an npm workspace monorepo that publishes focused packages for scaffolding, MCP integrations, and npm script telemetry. The CLI package gives you a production-ready development environment with testing, linting, and AI assistant configuration in one command.

Quick Start

# Scaffold a new webapp project (no install required)
npx @lousy-agents/cli init --kind webapp

# Or use interactive mode to choose your project type
npx @lousy-agents/cli init

# Generate GitHub Copilot setup workflow from your project configuration
npx @lousy-agents/cli copilot-setup

Table of Contents

Start Here

If you're adopting Lousy Agents for the first time, use this order:

  1. Scaffold a project with npx @lousy-agents/cli init
  2. Add repository-specific setup with npx @lousy-agents/cli copilot-setup
  3. Add deeper integrations only if you need them:
    • @lousy-agents/mcp for MCP clients like VS Code and hosted Copilot
    • @lousy-agents/agent-shell for npm script telemetry

Lousy Agents is an npm workspace monorepo. Most users only need one published package at a time:

Package Install / Run Use it when
@lousy-agents/cli npx @lousy-agents/cli init You want the scaffolding CLI for new or existing projects
@lousy-agents/mcp npx -y -p @lousy-agents/mcp lousy-agents-mcp You want Lousy Agents tools available through an MCP client
@lousy-agents/agent-shell npm install -g @lousy-agents/agent-shell You want an audit trail for npm script execution

Who This Is For

  • Software Engineers: Frustrated by inconsistent AI output and looking for proven patterns to improve results.
  • Curious Beginners: Interested in AI-assisted coding but unsure how to set things up for success.
  • Team Leads: Exploring how to standardize AI tooling across a team or project.
  • Platform Engineers: Need to automate project scaffolding in scripts or CI/CD pipelines.

No prior experience with coding agents is required—just curiosity and a willingness to experiment.

Why This Exists

AI coding assistants work best when given clear constraints. Without structure, they guess—and often guess wrong. Lousy Agents provides the scaffolding they need to succeed:

  • Instructions & Specs: Templates that clearly communicate your intent, so agents produce code that matches your vision.
  • Feedback Loops: Pre-configured testing (Vitest) and linting (Biome) that let agents catch and fix their own mistakes immediately.
  • Copilot Configuration: Settings and workflows that ground AI assistants in your specific engineering standards.

Features

CLI Commands

  • init - Scaffold new projects with testing, linting, and Copilot configuration
  • new - Create new resources like custom GitHub Copilot agents
  • lint - Validate skills, agents, hook configurations, and instruction files
  • copilot-setup - Generate GitHub Actions workflows for Copilot environment setup

MCP Server

  • MCP Server - Model Context Protocol server for AI assistant integration

Companion Tools

  • agent-shell - A flight recorder for npm script execution with policy-based command blocking. Records independent telemetry of what scripts ran, who initiated them, and whether they succeeded.

agent-shell demo

Spec-Driven Development

A methodology where you write clear specifications first, giving agents precise requirements to implement—rather than vague prompts. Each scaffolded project includes instruction files for writing specs and tests.

Non-Interactive Mode

Use the --kind flag to skip prompts and integrate into scripts or automation:

npx @lousy-agents/cli init --kind webapp  # No prompts, perfect for CI/CD

Installation

Most users do not need to clone this repository. Start with the published package that matches your use case.

@lousy-agents/cli

No installation required! Use npx to run directly:

npx @lousy-agents/cli init

For frequent use, install globally:

npm install -g @lousy-agents/cli

@lousy-agents/mcp

Run the MCP server without installing it permanently:

npx -y -p @lousy-agents/mcp lousy-agents-mcp

@lousy-agents/agent-shell

Install agent-shell globally (required — npm needs the shim on PATH before npm install runs):

npm install -g @lousy-agents/agent-shell

Usage

For detailed documentation on each command, see:

Quick Examples

Create a new webapp:

npx @lousy-agents/cli init --kind webapp

Create a custom Copilot agent:

npx @lousy-agents/cli new --copilot-agent security

Generate Copilot setup workflow:

npx @lousy-agents/cli copilot-setup

Lint skills, agents, hooks, and instructions:

npx @lousy-agents/cli lint

Contributing

This repository is an npm workspace monorepo with packages for the CLI, MCP server, core logic, GitHub Action integration, and agent-shell.

npm install
mise run ci && npm run build

Use the root install to work on all workspace packages together. The root npm run build command builds the publishable packages: packages/cli, packages/mcp, and packages/agent-shell.

Roadmap

Feature Status
Scaffolding for webapps ✅ Complete
Scaffolding for REST APIs ✅ Complete
Scaffolding for CLI ✅ Complete
Scaffolding for GraphQL APIs Not Started
Copilot setup package manager install steps ✅ Complete
Copilot agent and skill scaffolding ✅ Complete
Agent skill frontmatter linting ✅ Complete
Agent and instruction quality linting ✅ Complete
Hook configuration linting ✅ Complete
Policy-based command blocking (agent-shell) ✅ Complete
MCP server package ✅ Complete
Claude Code web environment setup ✅ Complete

Documentation

  • Start with init - Scaffold a project with the CLI
  • Then copilot-setup - Generate workflow setup for existing repositories
  • new Command - Create new resources after your scaffold is in place
  • lint Command - Validate skills, agents, hook configurations, and instruction files
  • MCP Server - Configure the separately published @lousy-agents/mcp package
  • agent-shell - Add npm script execution telemetry

Reference Examples

The repository includes fully working reference implementations in the CLI workspace:

Launch a GitHub Codespace to instantly spin up any of these environments and experiment with spec-driven development.

Yorumlar (0)

Sonuc bulunamadi