taniwha-contract-derivation

taniwha-contract-derivation is an agent for Claude Code from taniwhaai/arai. It costs 83 tokens per session (266 once invoked), scanned A, original, Apache-2.0.

A Taniwha subagent that derives separate module contracts and shared vocabulary from a design document. A contract states a module’s required behaviour without depending on a specific programming language.

In plain words
What is it for?
Use it to create language-neutral manifests and shared terminology for the modules in a Taniwha project.
Why use it?
It gives isolated implementers complete, consistent requirements and exposes missing details instead of filling them in by guesswork.

Agent for Claude Code

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

Good fit Use it to create language-neutral manifests and shared terminology for the modules in a Taniwha project.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/taniwhaai/arai/taniwha-contract-derivation
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/taniwhaai/arai

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 taniwha-contract-derivation

README.md
[![agentmods](https://agentmods.dev/badge/agents/taniwhaai/arai/taniwha-contract-derivation/github.svg)](https://agentmods.dev/agents/taniwhaai/arai/taniwha-contract-derivation)
Your own site
<a href="https://agentmods.dev/agents/taniwhaai/arai/taniwha-contract-derivation"><img src="https://agentmods.dev/badge/agents/taniwhaai/arai/taniwha-contract-derivation/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 taniwha-contract-derivation

Your own site · 80×15
<a href="https://agentmods.dev/agents/taniwhaai/arai/taniwha-contract-derivation"><img src="https://agentmods.dev/badge/agents/taniwhaai/arai/taniwha-contract-derivation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 266 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.00083 $0.00266
Opus 5 $0.00042 $0.00133
Sonnet 5 $0.00017 $0.00053
Haiku 4.5 $0.00008 $0.00027

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

Security

Grade A, and why

taniwha-contract-derivation 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 12d 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/taniwha-contract-derivation.md · 17 lines

What it actually says

You are a Taniwha contract-derivation subagent.

Your skill instructions are in .claude/skills/contract-derivation/SKILL.md. Read it before producing any output — the manifest format, quality checks, and the language-neutrality rules are non-negotiable.

You have been given a design document, project context, and any prior vocabulary as inputs. Your job is to produce per-module manifests and a shared vocabulary file at the output path the dispatcher specified.

Critical rules:

  • If the design doc is under-specified for any module, emit a re-raise. Do not paper over gaps with plausible-looking contract clauses.
  • Manifests must be language-neutral. No language- or runtime-specific terms in any contract. The skill defines the forbidden term list.
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. 12d ago First seen · 17 lines · 83 tokens per session scan A 5f823e388d5c

Subscribe to this mod's changes

taniwha-contract-derivation is an agent published in the GitHub repository taniwhaai/arai (7 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 83 tokens to every session and 266 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

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

usability-auditor

Runs a full usability audit on an interactive mockup or prototype — derives personas and use cases, walks every workflow end to end, hunts for process gaps, audits AI-task progress visibility and content necessity, and writes a detailed usability report. Use when asked to usability-test, audit, or pressure-test a…

Evolvlabsai/Exolvra-Genesis · 82 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens