Skip to main content
subagent CX Codex

spark — Claude Code subagent for quick fixes

spark is a Claude Code subagent for small, focused code changes. It handles quick fixes and tweaks, then writes a summary to a project file.

MIT ★ 3,951 updated 2026-01-26

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/spark.md
Open on GitHub

What spark does

spark makes one focused change at a time and follows patterns already present in the project. It reads the target file first and resolves open questions before editing.

After the change, spark checks syntax where applicable and writes a report to .claude/cache/agents/spark/output-{timestamp}.md in the project. The report records the modified files, verification results, and follow-up notes. The instructions route larger implementations to the Kraken subagent.

Python checks use python -m py_compile; TypeScript checks use npx tsc --noEmit. Those checks require Python or npx, respectively. The tool set includes file reading and editing, search, and shell commands.

What it helps with

  • fix a small bug in a single file
  • adjust code to match existing project patterns
  • check syntax after a focused edit
  • save a summary of code changes to a project file

Example prompts for the agent

  • Fix the small bug in src/parser.ts and write a report of the change.
  • Update the condition in src/auth.ts while following the project’s existing style.
  • Make a small change to scripts/check.py and check its syntax.

How to install spark

Manually: put the files in place

.claude/agents/spark.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about spark

How do I install spark in Claude Code?

Add the subagent file at .claude/agents/spark.md.

What does spark do?

It makes small, focused code changes, checks syntax where applicable, and saves a report inside the project.

When does spark hand work to Kraken?

Its instructions direct larger implementations to the Kraken subagent.

Source text

spark.md · MIT
---
name: spark
description: Lightweight fixes and quick tweaks
model: sonnet
tools: [Read, Edit, Write, Bash, Grep, Glob]
---

# Spark

You are a lightweight implementation agent. Your job is to make small, focused changes quickly without the overhead of full TDD. For larger implementations, use Kraken instead.

## Erotetic Check

Before acting, verify you understand the question space E(X,Q):
- X = current task/change request
- Q = set of open questions that must be resolved
- If Q is non-empty, resolve questions before implementing

## Step 1: Understand Your Context

Your task prompt will include:

```
## Change
[What to fix/tweak/update]

## Files
[Specific files to modify, if known]

## Constraints
[Any patterns or requirements to follow]

## Codebase
$CLAUDE_PROJECT_DIR = /path/to/project
```

## Step 2: Quick Analysis

Use fast tools to understand the context:

```bash
# Fast codebase search
rp-cli -e 'search "pattern" --max-results 10'

# Find file quickly
rp-cli -e 'structure src/'

# Check existing patterns
grep -r "pattern" src/ --include="*.ts" | head -5
```

## Step 3: Make Changes

1. Read the target file
2. Make the focused edit
3. Verify syntax (if applicable)

```bash
# Quick syntax check for Python
python -m py_compile path/to/file.py

# Quick type check for TypeScript
npx tsc --noEmit path/to/file.ts
```

## Step 4: Write Output

**Write summary to:**
```
$CLAUDE_PROJECT_DIR/.claude/cache/agents/spark/output-{timestamp}.md
```

## Output Format

```markdown
# Quick Fix: [Brief Description]
Generated: [timestamp]

## Change Made
- File: `path/to/file.ext`
- Line(s): X-Y
- Change: [What was modified]

## Verification
- Syntax check: PASS/FAIL
- Pattern followed: [Which pattern]

## Files Modified
1. `path/to/file.ext` - [brief description]

## Notes
[Any caveats or follow-up needed]
```

## Rules

1. **Stay focused** - one change at a time
2. **Follow patterns** - match existing code style
3. **Verify syntax** - run quick checks before finishing
4. **Be fast** - minimize tool calls
5. **Know limits** - escalate to Kraken if change grows in scope
6. **Write to output file** - don't just return text

© parcadei · MIT · parcadei/Continuous-Claude-v3

Similar subagents

All subagents for Agent setup: memory, context, orchestration →
huawei-cloud-mrs-spark-sql-check huaweicloud huawei-cloud-mrs-spark-sql-check — a skill for Claude Code and Codex that validates Spark SQL syntax and Huawei Cloud MRS coding rules. It catches query errors and performance risks locally before you run them on a cluster. CX Codex +1 119installs lsp-fix-all blackwell-systems The lsp-fix-all Claude Code skill applies language-server quick fixes to a file’s errors and warnings. It refreshes diagnostics after each edit so later fixes use current positions. CX Codex +1 ★ 182repo stars parallel-task-spark am-will parallel-task-spark — an orchestration skill that runs markdown plan tasks in parallel waves using Sparky subagents with dependency checks. It helps when executing modular plans with strict TDD. CX Codex +1 1,100installs crack-open-models-dgx-spark jiayuqi7813 The crack-open-models-dgx-spark skill for Claude Code designs and implements model behavior interventions on a DGX Spark cluster. Use it to modify refusal mechanisms in open-weight models. CX Codex +1 ★ 73repo stars super-swarm-spark am-will super-swarm-spark turns a markdown plan into a queue of subagent tasks and keeps a rolling pool busy until the code is integrated and tested. CX Codex +1 1,100installs use-spark readdle use-spark — a skill for Claude Code, Cursor, Codex and other agents that exposes Spark email, calendar and contacts via the spark CLI. The agent can list threads, search by topic, check events and find free slots inside a conversation. CX Codex +1 539installs

From the same set161

The whole set →
search-tools search-tools is a Claude Code skill that routes code searches to LEANN, AST-grep, Morph, or Grep based on the task. CX Codex +1 ★ 3,951repo stars modular-arithmetic Handles modular arithmetic problems in graph number theory. Activates when you need the extended Euclidean algorithm, the Chinese remainder theorem, Euler's theorem, quadratic residues, or order of elements. CX Codex +1 ★ 3,951repo stars agentica-spawn agentica-spawn — a skill that spawns multi-agent patterns via Agentica: swarms for parallel research, hierarchies for role-based tasks, generator-critic loops for iterative refinement, and juries for consensus. CX Codex +1 ★ 3,951repo stars parallel-agent-contracts parallel-agent-contracts enforces type ownership rules across parallel agents in TypeScript projects, requiring grep checks and tsc verification before any subtask completes. CX Codex +1 ★ 3,951repo stars entropy A skill for Shannon entropy, conditional and differential entropy, KL divergence, and maximum entropy principle problems. CX Codex +1 ★ 3,951repo stars proactive-delegation The proactive-delegation rule directs Claude Code to proactively hand off tasks to specialized subagents. It preserves the main context by detecting research, bug fixes, and parallel work automatically. CX Codex +1 ★ 3,951repo stars search-hierarchy The search-hierarchy skill picks a search tool based on whether a question concerns code structure, meaning, or an exact identifier. It helps locate a relevant file before reading it. CX Codex +1 ★ 3,951repo stars channel-capacity A skill for solving information-theory problems: calculating channel capacity, mutual information, and applying the Blahut-Arimoto algorithm. Use it when working with information theory, coding, or communication channels. CX Codex +1 ★ 3,951repo stars

Project sponsors

Companies that keep this analytics open