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 3mo 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 3mo 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. 3mo 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 (144 stars, last pushed 1mo 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

pair-programmer compared with agents from other repositories

pair-programmer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pair-programmerNikiforovAll/claude-code-rulesAgent1441mo agoApache-2.0A50Claude Code
agent-creatorlukaskellerstein/claude-my-marketplaceAgent313d agononeA219Claude Code
visual-fixer-pagelukaskellerstein/claude-my-marketplaceAgent313d agononeA170Claude Code
demo-researcherlukaskellerstein/claude-my-marketplaceAgent313d agononeA147Claude Code
design-directorlukaskellerstein/claude-my-marketplaceAgent313d agononeA154Claude Code
dead-code-analyzerlukaskellerstein/claude-my-marketplaceAgent313d agononeA160Claude Code
demo-graphics-scoutlukaskellerstein/claude-my-marketplaceAgent313d agononeA200Claude Code