claude-code-narp-runtime

claude-code-narp-runtime is a skill for Claude Code, Codex from Peiiii/nextclaw. It costs 58 tokens per session (2,435 once invoked), scanned A, original, MIT.

A setup and maintenance guide for connecting Claude Code to NextClaw as a supported agent runtime. It installs or repairs the connector, updates the runtime configuration, and tests real messages.

In plain words
What is it for?
Use it to install, repair, probe, and smoke-test the Claude Code runtime, including its default model settings. It can verify additional tool and event behavior when needed.
Why use it?
It removes the manual configuration and troubleshooting needed to make Claude Code work inside NextClaw. It also checks that the runtime is actually usable after setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to install, repair, probe, and smoke-test the Claude Code runtime, including its default model settings. It can verify additional tool and event behavior when needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peiiii/nextclaw/claude-code-narp-runtime
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.

Any agent
npx skills add Peiiii/nextclaw --skill claude-code-narp-runtime
Clone the repo
git clone --depth 1 https://github.com/Peiiii/nextclaw

Made for: Claude Code, Codex.

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 claude-code-narp-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/peiiii/nextclaw/claude-code-narp-runtime/github.svg)](https://agentmods.dev/skills/peiiii/nextclaw/claude-code-narp-runtime)
Your own site
<a href="https://agentmods.dev/skills/peiiii/nextclaw/claude-code-narp-runtime"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/claude-code-narp-runtime/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for claude-code-narp-runtime

Your own site · 80×15
<a href="https://agentmods.dev/skills/peiiii/nextclaw/claude-code-narp-runtime"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/claude-code-narp-runtime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00058 $0.02435
Opus 5 $0.00029 $0.01218
Sonnet 5 $0.00012 $0.00487
Haiku 4.5 $0.00006 $0.00244

Measured 7d ago against content hash dafbf63d4f93, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

claude-code-narp-runtime scanned grade A with 0 findings 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 7d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/claude-code-narp-runtime/SKILL.md · 210 lines

How it starts

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

Claude Code NARP Runtime

使用这个 skill 时,目标不是让用户自己准备 PATH 或手改配置,而是把 Claude Code 接成 NextClaw 统一 runtime registry 里的正式会话类型。

首选产品路径固定为:

  • runtime entry id: claude
  • runtime entry label: Claude Code
  • runtime type: narp-stdio
  • wire dialect: acp
  • model selection: optional(Claude Code 的 Runtime default + NextClaw 模型)
  • runtime launcher: nextclaw-claude-code-narp
  • route ownership: NextClaw -> RuntimeRoute(model/apiBase/apiKey/headers) -> Claude Code NARP wrapper -> Claude Code SDK/CLI

不要把 Claude Code 做成核心系统里的 provider 特判。NextClaw 核心、kernel、service 只感知 narp-stdio,不感知 claude

安装边界

始终区分三层:

  • 这个 NextClaw marketplace skill:负责用户接入流程、检查、修复和冒烟。
  • Claude Code NARP wrapper:@nextclaw/nextclaw-narp-runtime-claude-code-sdk,提供 nextclaw-claude-code-narp
  • Claude Code SDK/CLI:由 wrapper 调用,真实执行 agent loop。

安装这个 skill 不等于 Claude Code runtime 已经可用。skill 必须自己检测 launcher,缺失时安装或修复 wrapper,并生成 NextClaw 可稳定调用的绝对路径 shim。

这个 Skill 负责什么

  • 解释 Claude Code 通过 NARP stdio 接入的正确心智模型。
  • 发现、安装或修复 nextclaw-claude-code-narp
  • ${NEXTCLAW_HOME:-~/.nextclaw}/bin 下生成稳定 shim。
  • 写入或修复 agents.runtimes.entries.claude
  • 运行 runtime probe。
  • 运行真实 Claude Code 首条消息冒烟;需要能力验收时继续覆盖工具调用和思考事件。
  • 对常见失败给出有界诊断,不把问题推给用户自己猜。

禁止事项

  • 不要告诉用户“先把 nextclaw-claude-code-narp 放到 PATH 里”作为完成条件。
  • 不要要求用户手工编辑 config.json,除非当前 agent 没有文件写权限。
  • 不要通过命令行环境变量开关决定是否走 Anthropic/OpenAI gateway;wrapper 应根据 NextClaw route 的 provider 形状选择通用桥接路径。
  • 不要修改通用 NARP stdio client 来识别 Claude Code。
  • 不要在 core/kernel/service 注入 Claude 默认 entry 或 provider 分支。
  • 没有 probe 和真实模型回复时,不要声称已经完成接入。

Setup 流程

当用户要求“接入 Claude Code”“安装 Claude runtime”“doctor Claude Code runtime”或类似目标时,按下面顺序执行。

1. 确认工作目录和数据目录

先确定 NextClaw 数据目录:

NEXTCLAW_HOME="${NEXTCLAW_HOME:-$HOME/.nextclaw}"

需要写入:

  • $NEXTCLAW_HOME/bin/nextclaw-claude-code-narp
  • $NEXTCLAW_HOME/config.json

如果这是首次接入,先说明 Claude Code runtime 会读取本机工作区并可能执行本地工具;涉及删除、发送、提交、发布等外部可见动作时仍需用户确认。

2. 解析可用 launcher

按优先级解析真实 launcher:

  1. 如果当前在 NextClaw 源码仓库,并且存在已构建文件: packages/extensions/nextclaw-narp-runtime-claude-code-sdk/dist/controllers/claude-code-narp.controller.js
  2. 如果源码存在但 dist 不存在,先构建: pnpm --filter @nextclaw/nextclaw-narp-runtime-claude-code-sdk build
  3. 如果系统已有 nextclaw-claude-code-narp,可作为真实 launcher 来源。
  4. 否则安装 wrapper 包到 NextClaw 管理目录:

Read the full file on GitHub · 210 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 210 lines · 58 tokens per session scan A dafbf63d4f93

Subscribe to this mod's changes

claude-code-narp-runtime is a skill published in the GitHub repository Peiiii/nextclaw (256 stars, last pushed yesterday), licensed MIT. It adds 58 tokens to every session and 2,435 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

openclaw-github-dedupe

Investigate a cluster of GitHub issues and PRs, determine canonical candidates, post duplicate/related status, preserve contributor credit, and execute cleanup actions. Supports autonomous mode for provided-link-only closeout, merge/fix follow-through, changelog, and post-merge issue/PR cleanup.

vincentkoc/dotskills · 68 tokens

openclaw-pr-batch-sweep

Select, review, repair, validate, and land batches of up to 20 low-risk OpenClaw contributor pull requests using Vincent's maintainer preferences and bounded sub-agent lanes. Use for "next 20", broad contributor PR sweeps, merge-candidate mining, or continued PR-batch work where drafts, maintainer work, trivial…

vincentkoc/dotskills · 95 tokens

tmux-lane-orchestrator

Manage one tmux agent lane from its matching ops pane, inspect live pane state and Codex logs on cold start, and produce concise manager summaries for OpenClaw and adjacent project work.

vincentkoc/dotskills · 46 tokens

ghcrawl-cluster-operator

Use when inspecting a ghcrawl SQLite store, pulling GitHub issue/PR data, refreshing summaries, embeddings, and clusters, or extracting one cluster and its evidence through the ghcrawl CLI.

vincentkoc/dotskills · 45 tokens

opik-optimizer

Optimize LLM prompts, tools, and agents in Opik using standardized optimizer workflows (prompt optimization, tool optimization, and parameter tuning), dataset/metric wiring, and result interpretation.

vincentkoc/dotskills · 41 tokens

org-branch-cleanup

Audit and safely prune stale branches across a GitHub organization with immutable snapshots, conservative merged-PR classification, live SHA/protection/open-PR revalidation, resumable deletion ledgers, and post-delete verification. Use when a maintainer asks to clean up old, dead, merged, bot-created, or abandoned…

vincentkoc/dotskills · 91 tokens