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

@cocrates/cocrates-harness

v0.1.5

Published

Cocrates Harness OpenCode Plugin

Readme

Cocrates OpenCode Plugin

Cocrates 저장소의 OpenCode 플러그인입니다. Docusaurus 문서 사이트와 별도로 빌드·배포합니다.

기능

  • src/agents/prompts/의 OpenCode 에이전트 명세(md)를 빌드 시 임베드하고, 플러그인 config 훅으로 config.agent에 등록
  • Frontmatter 전체 지원 (mode, permission, tools, temperature 등)
  • session.created 이벤트 로깅

개발

cd opencode
npm install
npm run build

에이전트 md를 수정한 뒤에는 npm run generate:agents로 specs.gen.ts를 재생성할 수 있습니다. npm run build가 이 단계를 자동으로 실행합니다.

파일 변경을 감시하며 빌드:

npm run dev

OpenCode에서 사용

npm 패키지로 (배포 후)

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@cocrates/cocrates-harness"]
}

버전 없이 패키지 이름만 적으면 OpenCode가 @latest로 해석합니다. 첫 설치 시점의 버전이 ~/.cache/opencode/packages/에 캐시되며, npm에 새 버전이 올라와도 자동 갱신되지 않을 수 있습니다.

특정 버전을 고정하려면:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@cocrates/[email protected]"]
}

최신 버전으로 갱신하려면:

opencode plugin add @cocrates/cocrates-harness -f

또는 캐시를 삭제한 뒤 OpenCode를 다시 시작합니다.

rm -rf ~/.cache/opencode/packages/@cocrates/cocrates-harness@latest

opencode.json의 "autoupdate"는 OpenCode 앱 자체 업데이트용이며, npm 플러그인 갱신과는 별개입니다.

로컬 빌드 결과로

npm run build

저장소 루트의 opencode.jsonc가 로컬 플러그인과 skills/ 경로를 프로젝트 설정으로 등록합니다. 이 저장소에서 OpenCode를 실행하면 자동으로 적용됩니다.

다른 프로젝트에서 단독으로 쓸 때는 opencode.json에 절대 경로로 등록:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["file:///home/you/work/cocrates.ai/opencode/dist/index.js"]
}

배포

GitHub Actions (CI)

opencode/** 변경 시 .github/workflows/opencode-plugin.yml이 빌드를 검증합니다.

GitHub Release

opencode-v* 태그를 push하면 빌드 산출물이 Release에 첨부됩니다.

git tag opencode-v0.1.4
git push origin opencode-v0.1.4

npm 배포

npm publish --access public