compete

compete is a command for Claude Code from liortesta/ClawdAgent. It costs 0 tokens per session (417 once invoked), scanned A, original, Apache-2.0.

A command that creates three different implementations of the same coding task, tests them, compares them, and keeps the best one.

In plain words
What is it for?
Use it to compare approaches optimized for simplicity, performance, or maintainability, then evaluate correctness, code quality, speed, and ease of change.
Why use it?
It makes design trade-offs visible instead of committing immediately to the first solution.

Command for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: mentions CLAUDE.md; mentions subagents.

Good fit Use it to compare approaches optimized for simplicity, performance, or maintainability, then evaluate correctness, code quality, speed, and ease of change.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/liortesta/clawdagent/compete
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/liortesta/ClawdAgent

Made for: Claude Code.

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 compete

README.md
[![agentmods](https://agentmods.dev/badge/commands/liortesta/clawdagent/compete/github.svg)](https://agentmods.dev/commands/liortesta/clawdagent/compete)
Your own site
<a href="https://agentmods.dev/commands/liortesta/clawdagent/compete"><img src="https://agentmods.dev/badge/commands/liortesta/clawdagent/compete/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 compete

Your own site · 80×15
<a href="https://agentmods.dev/commands/liortesta/clawdagent/compete"><img src="https://agentmods.dev/badge/commands/liortesta/clawdagent/compete.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 417 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.00000 $0.00417
Opus 5.5 $0.00000 $0.00167
Sonnet 5.5 $0.00000 $0.00083
Haiku 4.5 $0.00000 $0.00042

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

Security

Grade A, and why

compete 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.

.claude/commands/compete.md · 50 lines

What it actually says

Competing Solutions

For the given task, create 3 DIFFERENT implementations and pick the best one.

Process:

  1. Understand the task requirements
  2. Design 3 different approaches:
    • Approach A: Optimize for simplicity and readability
    • Approach B: Optimize for performance and efficiency
    • Approach C: Optimize for extensibility and maintainability
  3. Implement each approach using separate subagents in parallel
  4. Test each implementation — all must pass the same test suite
  5. Benchmark (if applicable) — compare performance metrics
  6. Evaluate using the CTO agent criteria:
    • Correctness (does it work?)
    • Code quality (is it clean?)
    • Performance (is it fast?)
    • Maintainability (can we change it later?)
    • Simplicity (is it easy to understand?)
  7. Pick the winner — merge winning approach, discard others
  8. Document why the winner was chosen in CLAUDE.md Architecture Decisions

Output Format:

## Competition Results

| Criteria | Approach A | Approach B | Approach C |
|----------|-----------|-----------|-----------|
| Correctness | PASS/FAIL | PASS/FAIL | PASS/FAIL |
| Lines of Code | X | Y | Z |
| Performance | Xms | Yms | Zms |
| Readability | 1-10 | 1-10 | 1-10 |
| Maintainability | 1-10 | 1-10 | 1-10 |

**WINNER**: Approach [X]
**REASON**: [why this one]
**ADR**: Added to CLAUDE.md

Rules:

  • All 3 approaches must pass the SAME tests
  • The winner must score highest OVERALL, not just in one category
  • If all 3 fail tests, go back to planning — don't pick "least broken"

Task: $ARGUMENTS

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 · 50 lines · 0 tokens per session scan A 7dd9ec6c4f73

Subscribe to this mod's changes

compete is a command published in the GitHub repository liortesta/ClawdAgent (11 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 417 tokens. 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.