instinct-export

instinct-export is a command for coding agents from sangrokjung/claude-forge. It costs 13 tokens per session (580 once invoked), scanned A, original, MIT.

A command that exports learned working preferences, called instincts, into a shareable YAML file. It can filter the export and removes session identifiers, file paths, and old timestamps.

In plain words
What is it for?
Sharing coding habits, testing practices, and other learned preferences with people or projects.
Why use it?
It makes it easier to share project conventions with teammates or move them to another machine while reducing sensitive details in the export.

Command

Part of the claude-forge plugin — 33 skills, 39 commands, 17 agents shipped together

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 commands/sangrokjung/claude-forge/instinct-export
Clone the repo
git clone --depth 1 https://github.com/sangrokjung/claude-forge

Or install claude-forge, the plugin that ships this one along with the rest of its 33 skills, 39 commands, 17 agents.

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 instinct-export

README.md
[![agentmods](https://agentmods.dev/badge/commands/sangrokjung/claude-forge/instinct-export.svg)](https://agentmods.dev/commands/sangrokjung/claude-forge/instinct-export)
Your own site
<a href="https://agentmods.dev/commands/sangrokjung/claude-forge/instinct-export"><img src="https://agentmods.dev/badge/commands/sangrokjung/claude-forge/instinct-export.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 580 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.00013 $0.00580
Opus 5 $0.00006 $0.00290
Sonnet 5 $0.00003 $0.00116
Haiku 4.5 $0.00001 $0.00058

Measured yesterday against content hash 0f5563b59ae4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

instinct-export 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

skills/continuous-learning-v2/commands/instinct-export.md · 92 lines

How it starts

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

Instinct Export Command

Exports instincts to a shareable format. Perfect for:

  • Sharing with teammates
  • Transferring to a new machine
  • Contributing to project conventions

Usage

/instinct-export                           # Export all personal instincts
/instinct-export --domain testing          # Export only testing instincts
/instinct-export --min-confidence 0.7      # Only export high-confidence instincts
/instinct-export --output team-instincts.yaml

What to Do

  1. Read instincts from ~/.claude/homunculus/instincts/personal/
  2. Filter based on flags
  3. Strip sensitive information:
    • Remove session IDs
    • Remove file paths (keep only patterns)
    • Remove timestamps older than "last week"
  4. Generate export file

Output Format

Creates a YAML file:

# Instincts Export
# Generated: 2025-01-22
# Source: personal
# Count: 12 instincts

version: "2.0"
exported_by: "continuous-learning-v2"
export_date: "2025-01-22T10:30:00Z"

instincts:
  - id: prefer-functional-style
    trigger: "when writing new functions"
    action: "Use functional patterns over classes"
    confidence: 0.8
    domain: code-style
    observations: 8

  - id: test-first-workflow
    trigger: "when adding new functionality"
    action: "Write test first, then implementation"
    confidence: 0.9
    domain: testing
    observations: 12

  - id: grep-before-edit
    trigger: "when modifying code"
    action: "Search with Grep, confirm with Read, then Edit"
    confidence: 0.7
    domain: workflow
    observations: 6

Privacy Considerations

Exports include:

  • ✅ Trigger patterns
  • ✅ Actions
  • ✅ Confidence scores
  • ✅ Domains
  • ✅ Observation counts

Exports do NOT include:

  • ❌ Actual code snippets
  • ❌ File paths
  • ❌ Session transcripts
  • ❌ Personal identifiers

Flags

  • --domain <name>: Export only specified domain
  • --min-confidence <n>: Minimum confidence threshold (default: 0.3)
  • --output <file>: Output file path (default: instincts-export-YYYYMMDD.yaml)
  • --format <yaml|json|md>: Output format (default: yaml)
  • --include-evidence: Include evidence text (default: excluded)

Read the full file on GitHub · 92 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. yesterday First seen · 92 lines · 13 tokens per session scan A 0f5563b59ae4

Subscribe to this mod's changes

instinct-export is a command published in the GitHub repository sangrokjung/claude-forge (825 stars, last pushed yesterday), licensed MIT. It adds 13 tokens to every session and 580 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-09-03.