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

@ebowwa/glm-daemon-personalities

v0.0.1

Published

AI personalities for GLM daemon - Dev, Butler, and custom personalities

Readme

@codespaces/glm-daemon-personalities

AI personalities for the GLM daemon system. Each personality defines specific behaviors, workflows, and capabilities for autonomous AI agents.

Personalities

Dev Personality

The Dev personality is a GitHub-first autonomous developer with a Ralph-style workflow. It implements:

  • Automatic branching from dev before making changes
  • Incremental commits with conventional commit messages
  • Pre-commit checks (linter, type-check, tests)
  • PR creation to dev branch (NOT main)
  • Code review integration with automated feedback
  • Paranoid verification before submitting

Installation

bun add @codespaces/glm-daemon-personalities

Usage

Basic Usage

import { createDevPersonality } from '@codespaces/glm-daemon-personalities';

// Create a Dev personality with default configuration
const dev = createDevPersonality();

// Initialize with custom configuration
const customDev = createDevPersonality({
  github: {
    defaultTargetBranch: 'dev',
    defaultSourceBranch: 'dev',
    branchTemplate: 'feat/{task}',
    runTests: true,
    runLinter: true,
    runTypeCheck: true,
    commands: {
      test: 'bun test',
      lint: 'eslint src',
      typeCheck: 'tsc --noEmit',
    },
  },
  review: {
    autoRequest: false,
    requiredApprovals: 1,
    autoMerge: false,
  },
});

// Get the system prompt
const prompt = dev.getSystemPrompt();

// Transform input/output
const transformed = dev.transformInput(userInput);
const response = dev.transformOutput(aiResponse);

Code Review

import { CodeReviewer, ReviewCategory } from '@codespaces/glm-daemon-personalities';

const reviewer = new CodeReviewer({
  autoRequest: false,
  requiredApprovals: 1,
  autoMerge: false,
});

const result = await reviewer.reviewChanges(
  {
    files: ['src/example.ts'],
    diff: '@@ -1,1 +1,2 @@\n+const x: any = null;',
  },
  {
    categories: [
      ReviewCategory.STYLE,
      ReviewCategory.BUGS,
      ReviewCategory.SECURITY,
      ReviewCategory.TYPES,
    ],
    includeSuggestions: true,
    strict: true,
  }
);

console.log(result.summary);
console.log(reviewer.formatFeedback(result.feedback));

GitHub Workflow

import { GitHubWorkflowManager } from '@codespaces/glm-daemon-personalities';

const workflow = new GitHubWorkflowManager(
  {
    defaultTargetBranch: 'dev',
    defaultSourceBranch: 'dev',
    branchTemplate: 'feat/{task}',
    commitTemplate: '{type}: {description}',
    prTitleTemplate: '{task}',
    runTests: true,
    runLinter: true,
    runTypeCheck: true,
    commands: {
      test: 'bun test',
      lint: 'eslint src',
      typeCheck: 'tsc --noEmit',
    },
  },
  {
    autoRequest: false,
    requiredApprovals: 1,
    autoMerge: false,
  }
);

// Generate branch name from task
const branchName = workflow.generateBranchName('Implement user authentication');
// Returns: 'feat/implement-user-authentication'

// Generate commit message
const commitMsg = workflow.generateCommitMessage({
  files: ['src/auth.ts', 'src/auth.test.ts'],
  description: 'Add user authentication',
  type: 'feat',
});

// Run pre-commit checks
const checkResult = await workflow.runPreCommitChecks([
  'src/auth.ts',
  'src/auth.test.ts',
]);

Configuration

DevPersonalityConfig

interface DevPersonalityConfig {
  // Base personality config
  id: string;
  name: string;
  description: string;
  version: string;
  
  // GitHub workflow settings
  github: {
    defaultTargetBranch: string;      // Default: 'dev'
    defaultSourceBranch: string;      // Default: 'dev'
    branchTemplate: string;           // Default: 'feat/{task}'
    commitTemplate: string;           // Default: '{type}: {description}'
    prTitleTemplate: string;          // Default: '{task}'
    runTests: boolean;                // Default: true
    runLinter: boolean;               // Default: true
    runTypeCheck: boolean;            // Default: true
    commands: {
      test?: string;
      lint?: string;
      typeCheck?: string;
    };
  };
  
  // Code review settings
  review: {
    autoRequest: boolean;             // Default: false
    reviewers?: string[];
    requiredApprovals: number;        // Default: 1
    autoMerge: boolean;               // Default: false
    autoMergeMethod?: 'merge' | 'squash' | 'rebase';
  };
  
  // Worktree isolation settings
  worktree: {
    basePath: string;                 // Default: '/tmp/glm-worktrees'
    autoCleanup: boolean;             // Default: true
  };
  
  // MCP git server settings
  mcpGit: {
    serverName: string;               // Default: 'git'
    repo: string;                     // Default: 'packages'
  };
}

SLAM Phase Hooks

The Dev personality implements hooks for each SLAM phase:

| Phase | Hook Behavior | |-------|--------------| | Planning | Adds planning guidance, creates branch | | Executing | Adds execution guidance, commits incrementally | | Paranoid | Adds verification checks, runs full test suite | | Reviewing | Adds review checklist, reviews own code | | Fixing | Adds fixing guidance, addresses issues | | Committing | Adds commit/PR guidance, creates PR to dev | | Complete | Adds completion guidance, provides summary |

Review Categories

The code reviewer supports multiple categories:

  • STYLE - Code style and formatting
  • BUGS - Potential bugs and issues
  • PERFORMANCE - Performance optimization suggestions
  • SECURITY - Security vulnerabilities
  • BEST_PRACTICES - Best practice violations
  • DOCUMENTATION - Documentation coverage
  • TYPES - TypeScript type safety
  • TESTING - Testing coverage

License

MIT