Nerve Development

Nerve Development is a skill for Claude Code, Codex from ClickHouse/nerve. It costs 101 tokens per session (5,522 once invoked), scanned B, original, Apache-2.0.

Development guidance for Nerve, an application with a Python backend and a React/TypeScript frontend. It covers setup, testing, building, and contributing changes through pull requests.

In plain words
What is it for?
Fixing Nerve bugs, adding features, reviewing pull requests, running backend tests, and building the frontend.
Why use it?
It explains how to work safely within Nerve's repository structure and contribution process.

Skill for Claude CodeCodex ✓ vendor

Which agent this was written for is unclear — built for openclaw. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/check_migration_numbers.py origin/main.

Good fit Fixing Nerve bugs, adding features, reviewing pull requests, running backend tests, and building the frontend.

Compare 6 skills from other repositories ↓
About the project

Nerve is a self-hosted runtime for AI agents built around the Claude Agent SDK, providing persistent memory, scheduled execution, task management, skills, and communication channels. It supports personal assistants for individuals and autonomous workers for tasks such as CI monitoring, pull request review, and flaky-test fixes. The catalogue skills extend its agent workflows.

ClickHouse/nerve · 93 stars · on GitHub

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ClickHouse/nerve
agentmods
npx agentmods add skills/clickhouse/nerve/nerve-dev

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 Nerve Development

README.md
[![agentmods](https://agentmods.dev/badge/skills/clickhouse/nerve/nerve-dev/github.svg)](https://agentmods.dev/skills/clickhouse/nerve/nerve-dev)
Your own site
<a href="https://agentmods.dev/skills/clickhouse/nerve/nerve-dev"><img src="https://agentmods.dev/badge/skills/clickhouse/nerve/nerve-dev/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 Nerve Development

Your own site · 80×15
<a href="https://agentmods.dev/skills/clickhouse/nerve/nerve-dev"><img src="https://agentmods.dev/badge/skills/clickhouse/nerve/nerve-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,522 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 126
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00101 $0.05522
Opus 5.5 $0.00040 $0.02209
Sonnet 5.5 $0.00020 $0.01104
Haiku 4.5 $0.00010 $0.00552

Measured 3d ago against content hash 0c1d5230a476, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

Nerve Development scanned grade B 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 3d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

systemd respawns it; `sudo systemctl restart nerve` is equivalent.
nerve/templates/skills/nerve-dev/SKILL.md · 392 lines

How it starts

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

Nerve Development Skill

Changing your own config (skills, cron, settings), not the app code? Use the nerve-workspace skill instead — that covers the workspace, and which of a pull request or a direct edit applies to this instance. This skill is for developing the Nerve application codebase.

Repository

All changes go through PRs — never push directly to main. The repo is public; see the security section before every commit.

Getting Started (Contributors)

Prerequisites: Python 3.13+ (pyproject.toml pins requires-python = ">=3.13"), uv, Node.js 22.12+, git, gh.

# 1. Fork on GitHub, then clone your fork
git clone [email protected]:<your-username>/nerve.git
cd nerve

# 2. Add upstream remote
git remote add upstream [email protected]:ClickHouse/nerve.git

# 3. Python environment — same resolution as CI (fails if uv.lock is stale)
uv sync --locked --extra test
source .venv/bin/activate

# 4. Frontend
cd web && npm ci --strict-peer-deps && cd ..

# 5. Verify
.venv/bin/pytest tests/ -v
cd web && npm run build && npm test && npm run lint && cd ..

Run the commands below from the repository root (wherever you cloned it).

Project Layout

<repo>/
├── nerve/                  # Python backend (FastAPI + agent backends)
│   ├── cli.py              # Click CLI: init/start/stop/restart/status/logs/doctor/upgrade/reload/backup/
│   │                       #   restore/pair/sync/cron/migrate/migrate-openclaw/backfill-timestamps/setup-telegram
│   │                       #   + groups `config`, `codex`, `db`, `workflow`
│   ├── config.py           # Config dataclasses + three-layer loader, ${VAR} interpolation
│   ├── config_validate.py  # `nerve config validate` (also used by sync and config PRs)
│   ├── config_reload.py    # hot reload (`nerve reload`, POST /api/config/reload)
│   ├── config_pr.py        # propose_config_change — PR against the workspace repo
│   ├── config_repo.py      # `nerve config init-repo` scaffold
│   ├── sync_service.py     # git-backed workspace sync, lockdown clean-tree checks
│   ├── paths.py            # ~/.nerve (NERVE_HOME) state-dir resolver — never hardcode ~/.nerve
│   ├── identity.py         # Actor (human / system) attribution model
│   ├── setup_token.py      # first-start claim token      pairing.py — Telegram pairing codes
│   ├── bootstrap.py        # `nerve init` wizard, CORE_CRONS, template installation
│   ├── workspace.py        # workspace templates (MANIFEST), bundled skills
│   ├── backup.py           # `nerve backup` / `nerve restore` bundles
│   ├── migrate.py          # legacy config layout migration
│   ├── models_catalog.py   # model picker discovery   ollama.py, coerce.py, _env.py
│   ├── db/                 # SQLite (aiosqlite): Database = base.py + domain mixins
│   │   ├── base.py         # connection, pragmas, write lock, migrations, FTS health
│   │   ├── migrations/     # vNNN_*.py + runner.py (SCHEMA_VERSION = highest file number); fork/ = a fork's own track
│   │   └── sessions.py messages.py tasks.py task_statuses.py plans.py notifications.py
│   │       sources.py cron.py skills.py mcp.py audit.py accounts.py files.py usage.py
│   │       wakeups.py workflow_runs.py review_loops.py observations.py maintenance.py
│   ├── agent/              # engine.py, prompts.py, sessions.py, streaming.py, interactive.py,
│   │   │                   #   plan_service.py, cache_policy.py
│   │   ├── backends/       # AgentBackend protocol: claude.py (Claude Agent SDK), codex/ (app-server), events.py
│   │   └── tools/          # registry.py (ToolSpec/ToolContext/ToolResult), schemas.py, claude_sdk_adapter.py
│   │       └── handlers/   #   one handler module per tool domain
│   ├── gateway/            # server.py (app factory, lifespan, WS, static), auth.py (JWT, require_auth), diff.py
│   │   └── routes/         # one module per API domain, assembled by register_all_routes()
│   ├── channels/           # web.py, telegram.py, slack*.py, router.py, access.py,
│   │                       #   observation.py, archives.py, stream_adapter.py, base.py
│   ├── sources/            # inbox sources: telegram, gmail, imap, github, github_events, github_repos,
│   │                       #   channel (observed chats), codex_threads/; runner.py, filters.py, registry.py
│   ├── cron/               # APScheduler service, jobs.py, gates.py, gate_plugins.py
│   ├── memory/             # files.py, memu_bridge.py (memU), loom.py (Loom), xmemory_bridge.py
│   ├── skills/             # SkillManager — filesystem skills + DB index
│   ├── tasks/              # task markdown files + manager
│   ├── notifications/      # NotificationService, silences, approval dispatch
│   ├── workflows/          # workflow runs (service.py) and review loops (review_loop.py)
│   ├── mcp_server/         # external MCP endpoint (/mcp/v1) + Codex loopback listener
│   ├── external_agents/    # Codex / Claude Code bootstrap, memory-bundle renderers, sync service
│   ├── observability/      # Langfuse tracing, usage rewrite
│   ├── proxy/              # CLIProxyAPI daemon (subscription auth, no API key)
│   ├── utils/              # aio.py, fs.py, time.py
│   └── templates/          # personal/, worker/ (+ MANIFEST), config/settings.yaml,
│                           #   config-repo/, skills/ (bundled: nerve-dev, nerve-workspace)
├── web/                    # React + TypeScript + Vite frontend
│   ├── src/api/            # REST client, WebSocket client
│   ├── src/components/     # Auth, Chat, Cron, ExternalAgents, Files, Layout, Memory, Notifications, Sources, Tasks, ui
│   ├── src/pages/          # route pages (ChatPage, TasksPage, PlansPage, WorkflowRunsPage, ...)
│   ├── src/stores/         # Zustand stores; chatStore + handlers/ (WS dispatch) + helpers/
│   ├── src/hooks/ src/utils/ src/types/
│   ├── src/test/setup.ts   # vitest setup (jsdom + Testing Library)
│   └── eslint.config.js, vite.config.ts, package.json, package-lock.json
├── tests/                  # pytest suite; conftest.py isolates NERVE_HOME per test
├── scripts/                # check_migration_numbers.py, check_codex_schema.py, codex_smoke.py, backtest_cache_ttl.py
├── docs/                   # architecture, config, api, cron, memory, ... — update alongside code
├── .github/workflows/      # ci.yml (backend tests, migration check, frontend build + vitest, Node floor), slack-live.yml
├── config.example.yaml     # committed example; config.yaml and config.local.yaml are gitignored
├── install.sh
├── pyproject.toml, uv.lock # commit uv.lock together with pyproject.toml
└── README.md

Read the full file on GitHub · 392 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. 3d ago Changed 0c1d5230a476
  2. 4d ago Changed b8a587402320
  3. 14d ago Changed · +86 lines · +5 tokens per session scan A → B a099dd632cd4
  4. 25d ago Changed b878d01ec5c6
  5. 28d ago Changed · +6 lines 838f5ac26a2d
  6. 1mo ago First seen · 300 lines · 96 tokens per session scan A c60a3e6280e8

Subscribe to this mod's changes

Nerve Development is a skill published in the GitHub repository ClickHouse/nerve (93 stars, last pushed today), licensed Apache-2.0. It adds 101 tokens to every session and 5,522 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.