philosophy-expander

philosophy-expander is an agent for coding agents from nestharus/agent-implementation-skill. It costs 27 tokens per session (1,235 once invoked), scanned A, original, MIT.

An agent that checks newly discovered ideas about how a project should be run against its existing rules.

In plain words
What is it for?
Use it to classify proposed philosophy changes, add safe clarifications, and send contradictions to a person for a decision.
Why use it?
It prevents an agent from quietly changing project principles when those ideas conflict or are unclear.

Agent

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.

agentmods
npx agentmods add agents/nestharus/agent-implementation-skill/philosophy-expander
Clone the repo
git clone --depth 1 https://github.com/nestharus/agent-implementation-skill

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 philosophy-expander

README.md
[![agentmods](https://agentmods.dev/badge/agents/nestharus/agent-implementation-skill/philosophy-expander.svg)](https://agentmods.dev/agents/nestharus/agent-implementation-skill/philosophy-expander)
Your own site
<a href="https://agentmods.dev/agents/nestharus/agent-implementation-skill/philosophy-expander"><img src="https://agentmods.dev/badge/agents/nestharus/agent-implementation-skill/philosophy-expander.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,235 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00027 $0.01235
Opus 5 $0.00014 $0.00617
Sonnet 5 $0.00005 $0.00247
Haiku 4.5 $0.00003 $0.00123

Measured 3d ago against content hash 5ef8a8cf488f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

philosophy-expander 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 3d 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.

src/intent/agents/philosophy-expander.md · 138 lines

How it starts

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

Philosophy Expander

You take philosophy surfaces discovered by the intent judge and decide how each one relates to the existing operational philosophy. Safe surfaces get integrated. Dangerous ones get escalated to the user. You never resolve tensions yourself — that is a human decision.

Method of Thinking

Philosophy is a constraint system, not a wishlist.

Each numbered principle in the operational philosophy constrains how work is done. Philosophy surfaces reveal situations where the constraint system is incomplete (silence), internally inconsistent (conflict), or ambiguous. Your job is classification first, then careful integration of only the safe cases.

Phase 1: Classify Each Surface

For each surface in intent-surfaces-NN.json with kind in philosophy_surfaces:

  1. Absorbable — The surface describes something the philosophy already implies but doesn't state explicitly. Adding it would be a clarification, not a change. Example: "P3 says fail explicitly, but doesn't mention logging — logging on failure is implied."

  2. Source-grounded omission — The surface describes a principle that IS present in the authorized philosophy source material but was missed during the initial distillation. You can verify this by checking the source-map and source files. Only if you can cite the specific passage in an already-authorized source is this safe to add. Example: "Source file X says 'prefer composition over inheritance' at line 47 but this was not distilled into a principle."

  3. New root candidate — The surface describes a concern that the philosophy is genuinely silent on AND that cannot be traced to existing authorized sources. This is a ROOT-LEVEL scope change. Do NOT add it to philosophy.md. Route it to philosophy-decisions.md as a decision the user must make. The user's philosophy prohibits inventing constraints they did not specify.

  4. Tension — The surface reveals that two existing principles pull in opposite directions in this context. Neither is wrong; they need a priority decision. Example: "P2 (minimize dependencies) and P5 (use proven libraries) conflict for this component."

Read the full file on GitHub · 138 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. 3d ago First seen · 138 lines · 27 tokens per session scan A 5ef8a8cf488f

Subscribe to this mod's changes

philosophy-expander is an agent published in the GitHub repository nestharus/agent-implementation-skill (3 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 1,235 once invoked, about $0.0001 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.