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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@manet/ose

v0.0.4

Published

A Self-iterating Autonomous Coding Agent, built for Open-Source Engineers

Readme

OSE: Open Source Engineer

[!NOTE] > Status: This project is currently under development and is built on MANET.

npm version TypeScript License: MIT GitHub issues GitHub stars

A powerful Open Source Engineer built on the MCP (Model Context Protocol) framework that enables intelligent interaction with GitHub repositories through natural language commands. Features automatic repository context injection for seamless GitHub operations without manual validation steps.

Features

🤖 GitHub Automation

  • Automatic Repository Context Injection - No manual validation required
  • Semantic branch management and automated PRs
  • Issue creation with intelligent labeling
  • Code reviews with CI/CD status validation
  • Smart repository detection and GitHub integration

🔧 Development Tools

  • Intelligent code search and analysis
  • File operations and dependency management
  • Template generation and documentation
  • Workflow automation and notifications

🌐 Multi-Language Support

  • 6 languages with auto-detection
  • Localized templates and documentation
  • Consistent communication across operations

Installation

npm install @manet/ose
# or
pnpm add @manet/ose
# or
yarn add @manet/ose

Quick Start

import { OSEAgent } from '@manet/ose';

const agent = new OSEAgent({
  model: {
    provider: 'openai', // or your preferred provider
    id: 'gpt-4',
    apiKey: process.env.OPENAI_API_KEY,
  },
  workspace: process.cwd(), // your working directory
  language: 'en', // optional: 'en', 'zh', 'ja', 'es', 'fr', 'de', 'auto'
  enableCodeFormatting: false, // optional: enable automatic code formatting
});

// Use the agent
const response = await agent.run(
  'Create a new issue in my repository about bug fixes',
);
console.log(response.content);

Prerequisites

  • GitHub Personal Access Token: Set GITHUB_PERSONAL_ACCESS_TOKEN environment variable
  • Docker: Required for running the GitHub MCP server
  • Node.js: Version 16 or higher

Key Features

🚀 Automatic Repository Context Injection

The Open Source Engineer automatically detects and injects repository context before each operation, eliminating the need for manual validation commands:

Before (Manual Validation):

# Agent had to run these commands manually:
pwd
git remote -v
# Validate GitHub repository
# Then proceed with operation

After (Automatic Injection):

// Repository context is automatically available:
// - Working directory: /path/to/your/repo
// - GitHub repository: owner/repo-name
// - Git remotes: origin, upstream, etc.
// - Validation status: valid/invalid

Performance Benefits:

  • 200-500ms faster response times per operation
  • 🔄 Zero redundant command execution
  • 🎯 Smart caching with 30-second TTL
  • 🛡️ Graceful fallback for non-Git directories

How it works:

  1. onPrepareRequest Hook: Injects repository context into system prompt with intelligent caching
  2. Smart Cache Management: 30-second TTL automatically refreshes context when needed
  3. Intelligent Caching: Avoids redundant Git commands with smart invalidation
  4. Error Handling: Gracefully handles non-Git directories and invalid repositories

Configuration

GitHub Authentication

The Open Source Engineer requires a GitHub Personal Access Token to interact with GitHub APIs:

export GITHUB_PERSONAL_ACCESS_TOKEN=your_github_token_here

Language Configuration

The Open Source Engineer supports multiple languages for communication:

const agent = new OSEAgent({
  // ... other options
  language: 'zh', // Chinese
});

// Supported languages:
// 'en' - English (default)
// 'zh' - Chinese (中文)
// 'ja' - Japanese (日本語)
// 'es' - Spanish (Español)
// 'fr' - French (Français)
// 'de' - German (Deutsch)
// 'auto' - Auto-detect from system locale

Examples:

// English Agent (default)
const enAgent = new OSEAgent({ language: 'en' });

// Chinese Agent - will create issues and PRs in Chinese
const zhAgent = new OSEAgent({ language: 'zh' });

// Auto-detect language from system
const autoAgent = new OSEAgent({ language: 'auto' });

Code Formatting Configuration

The Open Source Engineer can automatically detect and format code when making changes. This feature is disabled by default to prevent unintended formatting of existing code.

const agent = new OSEAgent({
  // ... other options
  enableCodeFormatting: true, // Enable automatic code formatting
});

Supported Formatters:

  • Prettier for TypeScript/JavaScript (.ts, .tsx, .js, .jsx, .json, .md)
  • Black for Python (.py)

Smart Detection:

  • Auto-detects formatter configs in project root
  • Only formats modified files, never touches unrelated files
  • Runs formatter after code changes, before commit

Configuration Files Detected:

  • Prettier: .prettierrc, .prettierrc.json, prettier.config.js
  • Black: pyproject.toml, setup.cfg

Example Usage:

// Enable formatting for a TypeScript project with Prettier
const agent = new OSEAgent({
  workspace: '/path/to/typescript-project',
  enableCodeFormatting: true, // Will use Prettier if config found
});

// Disable formatting (default behavior)
const safeAgent = new OSEAgent({
  workspace: '/path/to/any-project',
  enableCodeFormatting: false, // No automatic formatting
});

⚠️ Important: Code formatting is disabled by default to avoid unintended changes to existing codebases. Enable it only when you want the agent to automatically format code during development.

Development

# Install dependencies
pnpm bootstrap

# Run example
pnpm example

# Build the project
pnpm build

# Run tests
pnpm test

# Watch mode for development
pnpm dev

Architecture

The Open Source Engineer leverages:

  • MCP Core: Foundation for agent communication
  • GitHub MCP Server: Docker-based GitHub API integration
  • Commands Server: Local command execution capabilities
  • Prompt Engineering: Advanced tool calling engine

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT © agent-contrib

Related Projects