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.
npx skills add iliaal/whetstone --skill ia-agent-native-architecturegit clone --depth 1 https://github.com/iliaal/whetstoneWrote 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.
[](https://agentmods.dev/skills/iliaal/whetstone/ia-agent-native-architecture)<a href="https://agentmods.dev/skills/iliaal/whetstone/ia-agent-native-architecture"><img src="https://agentmods.dev/badge/skills/iliaal/whetstone/ia-agent-native-architecture/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.
<a href="https://agentmods.dev/skills/iliaal/whetstone/ia-agent-native-architecture"><img src="https://agentmods.dev/badge/skills/iliaal/whetstone/ia-agent-native-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00050 | $0.01761 |
| Opus 5.5 | $0.00020 | $0.00704 |
| Sonnet 5.5 | $0.00010 | $0.00352 |
| Haiku 4.5 | $0.00005 | $0.00176 |
Grade A, and why
ia-agent-native-architecture 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 yesterday.
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.
This is a copy
91% identical to agent-native-architecture — 9 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent-Native Architecture
Working rules
- Keep authority, scope, approval, and runtime isolation in trusted orchestration; prompts alone cannot enforce them.
- Provide explicit completion and partial-progress signals, durable state, and observable action results.
- Validate capabilities with real tasks, including failure and interruption paths; do not infer improvement from elapsed usage.
- Evaluate discovery from original inputs. Replaying fixed candidates measures classification and cannot reveal candidates a changed search would miss or invent. Compare each discovery variant with a fresh baseline on the same complete inputs in isolation. Independently adjudicate unmatched outputs from the complete result sets, including outputs from clean tasks.
- Calibrate decision gates per model. A replacement model's confidence scores do not preserve the previous model's cutoff, even when ranking accuracy improves. Fit thresholds on a separate calibration set. Verify false-positive and false-negative behavior through the production decision path on untouched representative cases.
- Use the selected topic's references and the architecture checklist to produce a concrete design with evidence and unresolved constraints.
Core Principles
Five principles govern agent-native design. For detailed explanations, examples, and test criteria, see core-principles.md.
| Principle | One-line test |
|---|---|
| Parity | Can the agent achieve every outcome the UI allows? |
| Granularity | Changing behavior means editing prose, not refactoring code |
| Composability | Can a feature be added by writing a new prompt, without new code? |
| Emergent Capability | Can the agent handle open-ended requests it wasn't designed for? |
| Improvement Over Time | Does the app work better after a month, even without code changes? |
Focus Area Selection
- Design architecture - Plan a new agent-native system from scratch
- Files & workspace - Use files as the universal interface, shared workspace patterns
- Tool design - Build primitive tools, dynamic capability discovery, CRUD completeness
- Domain tools - Know when to add domain tools vs stay with primitives
- Execution patterns - Completion signals, partial completion, context limits
- System prompts - Define agent behavior in prompts, judgment criteria
- Context injection - Inject runtime app state into agent prompts
- Action parity - Ensure agents can do everything users can do
- Self-modification - Enable agents to safely evolve themselves
- Product design - Progressive disclosure, latent demand, approval patterns
- Mobile patterns - iOS storage, background execution, checkpoint/resume
- Testing - Test agent-native apps for capability and parity
- Refactoring - Make existing code more agent-native
- Anti-patterns - Common mistakes and how to avoid them
- Success criteria - Verify your architecture is agent-native
- Hooks patterns - Hook events, decision control, MCP matchers, async hooks
- CLI interface - Design a CLI that agents invoke: output channels, exit codes, self-description, safety tiers
- Approval loop - Durable human approval for agent-drafted external sends: content binding, single-winner claim, unknown outcomes
What ships with it
27 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/action-parity-discipline.md 13 KB
- references/agent-execution-patterns.md 23 KB
- references/agent-native-testing.md 24 KB
- references/anti-patterns.md 4.7 KB
- references/architecture-patterns.md 21 KB
- references/architecture-review-checklist.md 7.0 KB
- references/cli-agent-interface.md 3.6 KB
- references/core-principles.md 4.0 KB
- references/durability-and-attestation.md 4.1 KB
- references/dynamic-context-injection.md 16 KB
- references/files-universal-interface.md 11 KB
- references/from-primitives-to-domain-tools.md 12 KB
- references/hooks-patterns.md 39 KB
- references/intervention-evaluation.md 3.6 KB
- references/mcp-tool-design.md 39 KB
- references/mobile-cost.md 9.9 KB
- references/mobile-execution.md 7.6 KB
- references/mobile-patterns.md 10 KB
- references/mobile-storage.md 8.0 KB
- references/operator-approval-loop.md 2.9 KB
- references/product-implications.md 13 KB
- references/quick-start.md 1.3 KB
- references/refactoring-to-prompt-native.md 9.1 KB
- references/self-modification.md 11 KB
- references/shared-workspace-architecture.md 22 KB
- references/success-criteria.md 2.0 KB
- references/system-prompt-design.md 7.9 KB
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.
- yesterday Changed · -5 lines 0ea872c16b22
- 1mo ago Changed · +1 lines f568485abe2c
- 1mo ago Changed · +2 lines 99110b935f3c
- 1mo ago Changed 6c25f5dfdd74
- 2mo ago Changed · +4 lines 141a73482736
- 2mo ago Changed · -45 lines 6c9b7e046bec
- 2mo ago First seen · 137 lines · 50 tokens per session scan A 02dc845e0c81
ia-agent-native-architecture is a skill published in the GitHub repository iliaal/whetstone (37 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 1,761 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to agent-native-architecture, differing in 9 lines, and is treated as a copy.
ia-agent-native-architecture compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ia-agent-native-architectureiliaal/whetstone | Skill | 37 | today | MIT | A | 50 | Claude Code |
| pr-reviewnitinjain999/platform-skills | Skill | 73 | today | Apache-2.0 | A | 81 | Claude Code |
| code-reviewnitinjain999/platform-skills | Skill | 73 | today | Apache-2.0 | A | 88 | Claude Code |
| rubber-duckyharnessprotocol/harness-kit | Skill | 13 | yesterday | Apache-2.0 | A | 189 | Claude Code |
| pr-sweepharnessprotocol/harness-kit | Skill | 13 | yesterday | Apache-2.0 | A | 115 | Claude Code |
| reviewharnessprotocol/harness-kit | Skill | 13 | yesterday | Apache-2.0 | A | 103 | Claude Code |
| open-prharnessprotocol/harness-kit | Skill | 13 | yesterday | Apache-2.0 | A | 111 | Claude Code |