sparq: Agent for Claude Code

.claude/agents/sparq-rust-feature.md

sparq-rust-feature is an agent for Claude Code from sparq-org/sparq. It costs 73 tokens per session (2,662 once invoked), scanned A, original, MIT.

A Rust implementation agent for adding opt-in capabilities to sparq, a Rust RDF triplestore and SPARQL engine. An opt-in feature is disabled by default, keeping the standard build small and dependency-light.

In plain words
What is it for?
Use it for Rust changes in sparq's engine, core, server, vector, federation, policy, Solid, zero-knowledge, multiparty-computation, SHACL, or HDT areas. It checks clippy and tests in both feature states.
Why use it?
It adds functionality without forcing every user to compile extra code or dependencies.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions subagents; mentions AGENTS.md.

This is sparq-org/sparq's own configuration. It tells Claude Code how to work on sparq itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sparq configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/ubuntu/sparq.

Part of the sparq plugin — 55 skills, 20 agents, 2 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to sparq-org/sparq. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sparq-org/sparq/main/.claude/agents/sparq-rust-feature.md
Clone the repo
git clone --depth 1 https://github.com/sparq-org/sparq

Made for: Claude Code.

Or install sparq, the plugin that ships this one along with the rest of its 55 skills, 20 agents, 2 hooks.

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 sparq-rust-feature

README.md
[![agentmods](https://agentmods.dev/badge/agents/sparq-org/sparq/sparq-rust-feature/github.svg)](https://agentmods.dev/agents/sparq-org/sparq/sparq-rust-feature)
Your own site
<a href="https://agentmods.dev/agents/sparq-org/sparq/sparq-rust-feature"><img src="https://agentmods.dev/badge/agents/sparq-org/sparq/sparq-rust-feature/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 sparq-rust-feature

Your own site · 80×15
<a href="https://agentmods.dev/agents/sparq-org/sparq/sparq-rust-feature"><img src="https://agentmods.dev/badge/agents/sparq-org/sparq/sparq-rust-feature.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,662 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.00073 $0.02662
Opus 5 $0.00036 $0.01331
Sonnet 5 $0.00015 $0.00532
Haiku 4.5 $0.00007 $0.00266

Measured 5d ago against content hash 4e21e27b85ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

sparq-rust-feature 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 5d 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/agents/sparq-rust-feature.md · 64 lines

How it starts

The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a SPARQ agent 🤖 implementing a feature-gated Rust capability in sparq-org/sparq — a from-scratch Rust RDF triplestore + SPARQL 1.1/1.2 engine + ZK/MPC + Solid estate. New capabilities are opt-in: a dedicated crate and/or a cargo feature that is OFF by default; sparq-core and sparq-engine stay lean and dependency-light — never force a heavy dep onto the default build. This is a hard architectural constraint.

Shared SPARQ contract (every task)

Follow the sub-agent shared contractAGENTS.md § The sub-agent shared contract is the authoritative source for: own isolated worktree + branch-from-origin/main (never cd /home/ubuntu/sparq); explicit-path staging (no git add -A, never .beads/); no push/merge — the orchestrator does; model-parameterized provenance (stamp the model that ACTUALLY authored the change — derive the inline marker + Co-Authored-By trailer from the harness's RUNNING model; the canonical per-tier table lives in .claude/workflows/fable-architect-drain.js — Opus 5 primary, downgrade work flagged for re-review under Opus 5, never hard-coded literals); 🤖 SPARQ-agent self-ID in every comment + the PR body; once-a-minute heartbeat; the typos gate (reword DELETEd/DROPped/invokable/ANDed); the LIVE privacy-claims gate (no unqualified ZK/MPC soundness/privacy claim — the v1 verifier is internally re-audited but EXTERNAL accredited-cryptographer sign-off is PENDING sq-qhy4, MPC is semi-honest-only; caveat or privacy-claims-allow: <why>); no hard-coded perf numbers, work-box timings non-canonical; non-sycophantic honesty, no empty PRs, discovered work captured as a LIST (bd is not on PATH in a worktree). A terse task brief gives only the bead + target crate/feature — the rest is this contract. Role-specific deltas:

  • PR + merge mechanics (MERGE QUEUE — battle-tested): open vs main, body starting > 🤖 SPARQ agent. The repo now uses a GitHub merge queue, so the merge strategy is chosen by the queue and --squash is REJECTED ("merge strategy determined by merge queue"). Arm with plain gh pr merge <n> --auto (no --squash), and only when the brief says to arm. "already queued" on the arm command is success, not an error. After arming, verify ~20s later that the PR is actually latched — either autoMergeRequest is non-null (gh pr view <n> --json autoMergeRequest) OR the PR appears in the merge queue (gh api graphql mergeQueue entries); if NEITHER, retry the arm once (a silent no-latch was observed on #1781). [FABLE-5]
  • CodeQL: use POSITIONAL format! args — format!("{}", x), not format!("{x}") — to avoid the rust/unused-variable false positive.

Read the full file on GitHub · 64 lines

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. 5d ago Changed 4e21e27b85ba
  2. 9d ago First seen · 64 lines · 73 tokens per session scan A 0839f02b62ff

Subscribe to this mod's changes

sparq-rust-feature is an agent published in the GitHub repository sparq-org/sparq (12 stars, last pushed today), licensed MIT. It adds 73 tokens to every session and 2,662 once invoked, about $0.0004 per session on Opus 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-31.

Related

Other agents, from other repositories

rust-developer

Implementación de código Rust (Axum, Tokio) siguiendo specs SDD aprobadas. Usar PROACTIVELY cuando: se implementa una feature en Rust (handlers, servicios, modelos, migraciones), se refactoriza código existente, o se corrige un bug con spec definida. SIEMPRE requiere una Spec SDD aprobada antes de empezar.

gonzalezpazmonica/savia · 78 tokens

backend-author

Implements a new poly engine backend end-to-end — empirically checks the upstream crate API, wraps it as a crates.io or pinned-git dependency, implements the Engine trait, registers it, and ships the known-bad + known-unformatted insta fixtures.

Goldziher/poly · 55 tokens

stellar-contracts

Rust smart contracts on Soroban — storage patterns, auth, WASM compilation, testnet/mainnet deploys.

rylsherdamz-rgb/stellar-forge · 26 tokens

rust-audio-engineer

Specialist Rust audio engineer — writes real-time-safe Rust DSP, owns the Rust↔C/C++ FFI seam, and cross-compiles to WebAssembly for browser audio. Works alongside the c-audio-engineer, wasm-audio-engineer, and svelte-ui-engineer across native (starting with macOS) and browser targets.

gertsylvest/meta-team · 75 tokens

engineer:rust

Expert Rust developer specializing in systems programming, memory safety, and zero-cost abstractions. Use when writing, reviewing, or debugging Rust code, resolving ownership/borrow or async/tokio issues, auditing unsafe blocks, or working with cargo tooling and the broader Rust ecosystem.

franzos/claude-plugins · 59 tokens

ciel-systems-guild

CIEL's elite systems engineering guild. Specializes in Rust, C++, Go, Elixir, and high-performance architecture.

jxoesneon/Ciel · 32 tokens