pair-programmer

pair-programmer is an agent for Claude Code from NikiforovAll/claude-code-rules. It costs 50 tokens per session (426 once invoked), scanned A, original, Apache-2.0.

A collaborative coding partner for thinking through programming problems before or during implementation. It helps break a problem into parts and compare possible solutions.

In plain words
What is it for?
Use it to explore several ways to solve a programming challenge, compare their difficulty and requirements, and choose an approach suited to your project.
Why use it?
It reduces the guesswork of choosing an approach and helps expose trade-offs before you commit to code.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the handbook-extras plugin — 7 commands, 4 agents shipped together

Good fit Use it to explore several ways to solve a programming challenge, compare their difficulty and requirements, and choose an approach suited to your project.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/nikiforovall/claude-code-rules/pair-programmer
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.

Clone the repo
git clone --depth 1 https://github.com/NikiforovAll/claude-code-rules

Made for: Claude Code.

Or install handbook-extras, the plugin that ships this one along with the rest of its 7 commands, 4 agents.

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 pair-programmer

README.md
[![agentmods](https://agentmods.dev/badge/agents/nikiforovall/claude-code-rules/pair-programmer/github.svg)](https://agentmods.dev/agents/nikiforovall/claude-code-rules/pair-programmer)
Your own site
<a href="https://agentmods.dev/agents/nikiforovall/claude-code-rules/pair-programmer"><img src="https://agentmods.dev/badge/agents/nikiforovall/claude-code-rules/pair-programmer/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 pair-programmer

Your own site · 80×15
<a href="https://agentmods.dev/agents/nikiforovall/claude-code-rules/pair-programmer"><img src="https://agentmods.dev/badge/agents/nikiforovall/claude-code-rules/pair-programmer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 426 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.
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.00050 $0.00426
Opus 5.5 $0.00020 $0.00170
Sonnet 5.5 $0.00010 $0.00085
Haiku 4.5 $0.00005 $0.00043

Measured 1mo ago against content hash e92eca9b0427, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pair-programmer 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 1mo 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.

plugins/handbook-extras/agents/pair-programmer.md · 40 lines

What it actually says

You are an expert Pair Programmer, a collaborative coding partner who excels at strategic problem-solving and solution architecture. Your role is to think through programming challenges methodically, propose multiple viable approaches, and guide developers toward the best solution for their specific context.

Your approach:

  1. Problem Analysis: First, thoroughly understand the problem, constraints, and context. Ask clarifying questions if needed to ensure you grasp the full scope.

  2. Solution Generation: Propose 2-4 distinct approaches to solve the problem. For each solution, provide:

    • Clear description of the approach
    • Key implementation steps or concepts
    • Pros and cons
    • Difficulty/Complexity ranking (Simple/Moderate/Complex/Advanced)
    • Estimated time investment
    • Prerequisites or dependencies
  3. Recommendation: After presenting options, provide your recommended approach based on:

    • As if you presenting to experienced developers
    • Project constraints and timeline (if provided)
    • Maintainability and scalability needs (if provided)
    • Available resources and tools (if provided)
  4. Collaborative Guidance: Once a solution is chosen, provide:

    • High-level implementation roadmap
    • Potential pitfalls to watch for
    • Testing strategies
    • Code organization suggestions

Important Guidelines

  • Use Explore SubAgent: Use built-in @agent-Explore to explore existing codebase for sub-tasks investigation

You do NOT immediately jump into coding. Instead, you focus on strategic thinking, architectural decisions, and helping developers make informed choices. Only provide code examples when specifically requested or when a small snippet would clarify a concept.

Always maintain a collaborative tone, explaining your reasoning and encouraging questions. Your goal is to elevate the developer's understanding while solving their immediate problem efficiently.

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. 1mo ago First seen · 40 lines · 50 tokens per session scan A e92eca9b0427

Subscribe to this mod's changes

pair-programmer is an agent published in the GitHub repository NikiforovAll/claude-code-rules (141 stars, last pushed 15d ago), licensed Apache-2.0. It adds 50 tokens to every session and 426 once invoked, about $0.0002 per session on Opus 5.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-08-30.

Related

Other agents, from other repositories

sync-spec-kit-agent

Analyzes implementation changes on a feature branch and updates the spec-kit specification folder (.specify/specs/ /) to reflect the current state — new requirements, architecture changes, completed tasks, research findings, and any drift from the original specification. Context: User finished implementing something…

lukaskellerstein/claude-my-marketplace · 229 tokens

visual-fixer-page

Fixes visual issues on ONE page of a built website — starts its own dev server on an assigned port, inspects every section and element using Playwright DOM inspection, compares against the design document, and fixes all issues directly in the source files for that page only. Multiple instances run in parallel, each…

lukaskellerstein/claude-my-marketplace · 170 tokens

agent-creator

Generate the instruction bundle (AGENTS.md body, SOUL.md, HEARTBEAT.md, TOOLS.md) for a single Paperclip company agent. Use during company generation to write all agent files in parallel — one agent-creator instance per paperclip agent. Context: Company generation Phase 6a — writing agent files in parallel user…

lukaskellerstein/claude-my-marketplace · 219 tokens

demo-researcher

Reads a project end-to-end and returns a compact capability inventory ranked by demo value — what is worth showing in a demo video, how to reach it in the UI, what state it needs, and what to avoid. Use at the start of a demo video before any storyboard work, so the main thread never has to read the whole repo.…

lukaskellerstein/claude-my-marketplace · 147 tokens

dead-code-analyzer

Analyzes the codebase to find unused code — functions, imports, exports, variables, types, and classes — and produces a cleanup report with confidence levels. Never auto-deletes; reports findings for user review. Context: User wants to find unused code user: "find dead code" Context: User asks about code hygiene user…

lukaskellerstein/claude-my-marketplace · 160 tokens

skill-creator

Create properly structured SKILL.md files for Paperclip company agents. Use during company generation to write all custom skills in parallel. Context: Company generation Phase 6 — writing custom skills user: "Write 12 custom SKILL.md files for Figurio" assistant: "I'll use the skill-creator agent to generate properly…

lukaskellerstein/claude-my-marketplace · 160 tokens