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

@neomei/agentsoul

v0.1.14

Published

Give OpenCode a soul — personality injection and long-term memory for your AI agent

Readme

AgentSoul

Give OpenCode a soul — personality injection and long-term memory for your AI agent.

Installation

npm install -g @neomei/agentsoul

如果安装后提示 command not found: agentsoul,说明 npm 全局 bin 目录不在 PATH 中。请配置 npm 全局路径:

mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

或使用 npx 直接运行(无需全局安装):

npx @neomei/agentsoul setup
npx @neomei/agentsoul chat

Quick Start

# 1. Configure your agent's personality (auto-registers plugin)
agentsoul setup

# 2. Launch OpenCode with soul injection
agentsoul chat

Commands

| Command | Description | |---------|-------------| | agentsoul setup | Interactive configuration wizard (auto-registers plugin) | | agentsoul uninstall | Remove plugin from opencode config | | agentsoul chat | Launch OpenCode TUI with soul injection | | agentsoul run <message> | Single-shot with soul injection | | agentsoul serve [port] | Headless server with soul injection | | agentsoul memory list | Show recent conversations | | agentsoul memory search <query> | Search conversation history | | agentsoul memory clear | Clear all memories |

How It Works

AgentSoul injects personality files into every OpenCode session:

  1. Soul Files (~/.agentsoul/soul/)

    • IDENTITY.md — Who your agent is
    • SOUL.md — Core principles and speaking style
    • USER.md — Who you are and your relationship
  2. Memory (~/.agentsoul/memory.db)

    • SQLite storage for conversation history
    • Recent memories are automatically injected into new sessions
  3. OpenCode Plugin — Registered in ~/.config/opencode/opencode.json

    • Hooks into experimental.chat.system.transform to inject soul before every LLM call
    • Hooks into chat.message to persist user messages
    • Survives context compaction automatically

Configuration

After agentsoul setup, edit the files directly:

~/.agentsoul/soul/IDENTITY.md   # Name, age, personality
~/.agentsoul/soul/SOUL.md       # Core principles, speaking style
~/.agentsoul/soul/USER.md       # User relationship

Architecture

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│   agentsoul     │────▶│   soul/*.md     │────▶│  stdin inject   │
│   CLI / Plugin  │     │  (personality)  │     │  (opencode run) │
└─────────────────┘     └─────────────────┘     └─────────────────┘
         │                                               │
         ▼                                               ▼
┌─────────────────┐                            ┌─────────────────┐
│  memory.db      │◀───────────────────────────│  opencode TUI   │
│  (SQLite)       │      save conversations    │  / serve        │
└─────────────────┘                            └─────────────────┘

License

MIT