Getting started with Claude Code mods
Claude Code mods are JavaScript or TypeScript modules that ship as plugin hooks. They export `register(on)` and attach middleware-style hooks that can observe, rewrite or answer events such as tool calls, turns, slash commands and `ui.render`. The tutorial builds Token Weather, an 80-line mod that reads `$.session.usage()` after each turn and draws a context-window forecast with a sparkline above the prompt. Along the way it covers keeping history in `$.state` so it survives hot reloads, declaring state in a `.d.ts` type contract, yielding with `next(e)`, and checking the plugin with `claude plugin validate`. It also shows the shortcut of simply describing a mod to Claude and letting it write one with hot reload.
Related posts
- Our Claude Code Cheatsheet
Neon mediumAdept
A Neon engineer's working cheatsheet for Claude Code covers Plan Mode, parallel task agents for multi-lens code review, and context management with /clear, /compact, /context and @file references. It also covers MCP servers (Serena for symbol-level navigation, Context7 for docs, Playwright for UI checks), CLAUDE.md memory files, sub-agents with clean context, custom slash commands in .claude/commands, headless piping (e.g. npm audit into claude -p), session resume/rewind, and cost tracking. The recurring advice is to plan first, define types or schemas before implementation, and keep context lean and explicit.
- Getting Started with Claude Skills
Neon mediumAdept
Claude Skills are folders of markdown instructions (a SKILL.md entrypoint with name, description and steps) that Claude Code loads lazily: only each skill's name and description sit in global context, and the full workflow is pulled in when a request matches. Skills sit between deterministic custom commands and autonomous subagents. They share the main context window, run sequentially and suit template-driven multi-step workflows, while high-risk actions like deploys are better kept as manually triggered commands. Neon packaged four skills (neon-drizzle, neon-serverless, neon-toolkit, add-neon-knowledge) plus its MCP server into a Claude Code marketplace plugin installable with two /plugin commands.
- Building a VSCode Chat Extension to Order Lunch
Neon mediumAdept
A VS Code Copilot chat participant can order Grubhub food by exposing reverse-engineered Grubhub endpoints as language model tools. Intercepting a real checkout with Chrome DevTools and Postman Interceptor showed that an order takes five calls: create cart, add line, set delivery info, attach payment, and checkout. Each endpoint becomes a JSON-schema tool declared in package.json and implemented with vscode.LanguageModelTool. The main lesson is that raw APIs make poor agent interfaces because they expose sessions and IDs that need extra calls, so they should be wrapped in simplified workflows.
- Building a CLI Client For Model Context Protocol Servers
Neon mediumAdept
A minimal MCP client can run outside Claude Desktop by implementing four pieces: connecting to the server over stdio, listing tools via tools/list, invoking them via tools/call, and looping tool results back into the Anthropic Messages API. TypeScript code builds this into an interactive CLI with a persisted message history, a chat loop and an entry point that launches the Neon MCP server. The simple version lacks streaming and stops after the first tool call; Neon's published MCP Client CLI handles both.
- Claude Code in the cloud: a field guide to cloud sessions
claude.dev mediumAdeptClaude Code cloud sessions run each task in a fresh VM with the repository cloned onto its own branch, so several agents can work on one repo in parallel without sharing files, ports, or the developer's credentials. In a demo on a small Node API, three sessions finished a flaky-test race fix (verified by 40 clean suite runs), a docs rewrite checked with curl, and a structured-logging change within 87 seconds. The GitHub token stays in a proxy outside the VM, and only repo-level Claude config travels with the session. The guide covers when to stay local (VPN, local data, GPUs, Zero Data Retention), timeout settings, teleporting sessions back to the terminal, and workflows such as parallel backlogs and PR auto-fix.