publish-core

publish-core is a command for Claude Code from kychee-com/run402-core. It costs 0 tokens per session (1,259 once invoked), scanned A, original, Apache-2.0.

A repository command that starts the approved GitHub release workflows for selected Run402 Core packages. Those workflows update versions, build and test the packages, publish them to npm, and create the related tags and releases.

In plain words
What is it for?
Use it when changes to the Run402 Core packages need to be released to npm, including runtime, release, or function-helper changes.
Why use it?
It keeps publishing in one trusted, repeatable process instead of requiring a developer to publish packages manually from their computer.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/kychee-com/run402-core/publish-core
Clone the repo
git clone --depth 1 https://github.com/kychee-com/run402-core

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for publish-core

README.md
[![agentmods](https://agentmods.dev/badge/commands/kychee-com/run402-core/publish-core.svg)](https://agentmods.dev/commands/kychee-com/run402-core/publish-core)
Your own site
<a href="https://agentmods.dev/commands/kychee-com/run402-core/publish-core"><img src="https://agentmods.dev/badge/commands/kychee-com/run402-core/publish-core.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,259 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01259
Opus 5 $0.00000 $0.00629
Sonnet 5 $0.00000 $0.00252
Haiku 4.5 $0.00000 $0.00126

Measured 4d ago against content hash dc9f694bbfa0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

publish-core scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. Verify registry state with direct `curl`:
.claude/commands/publish-core.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/publish-core - Publish Run402 Core packages to npm via OIDC

Trigger the canonical publish pipelines in this repo:

Package Workflow Tag
@run402/functions .github/workflows/publish-functions.yml v<version>-functions
@run402/release .github/workflows/publish-release.yml v<version>-release
@run402/runtime-kernel .github/workflows/publish-runtime-kernel.yml v<version>-runtime-kernel

These workflows own the full release lifecycle: version bump, lockfile update, build/test/smoke, OIDC-authenticated npm publish --provenance, version-bump commit-back to main, tag, GitHub release, and workflow summary.

Do not publish locally with npm publish. The trust model is npm Trusted Publisher: kychee-com/run402-core + main + the exact workflow filename.

When to publish

  • @run402/functions: in-function helper API/types/runtime changed.
  • @run402/release: ReleaseSpec canonicalization, materialization, diffing, schemas, or compatibility fixtures changed.
  • @run402/runtime-kernel: public Core runtime contracts, capabilities, gateway-facing services, storage, functions, archive import/export, or adapter-facing behavior changed.

If @run402/functions or @run402/release changed and runtime-kernel should consume it, publish the dependency first, then commit a runtime-kernel dependency bump to the exact published version, then publish runtime-kernel.

Pre-flight

Run from the repo root.

  1. Verify local main is exactly synced with origin/main:

    git branch --show-current
    git fetch origin main
    git rev-list --count HEAD..origin/main
    git rev-list --count origin/main..HEAD
    git status --short
    

    Stop if not on main, behind/ahead, or dirty. The workflow builds from origin/main; unpushed or uncommitted work would be invisible.

  2. Run local checks:

    npm run lint
    npm run build
    npm test
    
  3. Run relevant package smoke checks:

    npm run test:functions:smoke
    npm run test:release:smoke
    npm run core:boundary
    

Read the full file on GitHub · 119 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 119 lines · 0 tokens per session scan A dc9f694bbfa0

Subscribe to this mod's changes

publish-core is a command published in the GitHub repository kychee-com/run402-core (20 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,259 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.