neo-pattern

neo-pattern is a command for coding agents from Parslee-ai/neo. It costs 57 tokens per session (408 once invoked), scanned A, original, Apache-2.0.

A command for extracting reusable architectural patterns from code and recording them in Neo’s lasting memory. Architectural patterns are repeatable designs for organizing software.

In plain words
What is it for?
Use it to examine areas such as repository use, API error handling, or caching and suggest where the pattern may apply.
Why use it?
It helps preserve lessons from solutions that have already worked, while requiring independent verification before treating a lesson as established.

Command

Part of the neo plugin — 9 skills, 18 commands, 1 agent, 1 hook 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/parslee-ai/neo/neo-pattern
Clone the repo
git clone --depth 1 https://github.com/Parslee-ai/neo

Or install neo, the plugin that ships this one along with the rest of its 9 skills, 18 commands, 1 agent, 1 hook.

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 neo-pattern

README.md
[![agentmods](https://agentmods.dev/badge/commands/parslee-ai/neo/neo-pattern.svg)](https://agentmods.dev/commands/parslee-ai/neo/neo-pattern)
Your own site
<a href="https://agentmods.dev/commands/parslee-ai/neo/neo-pattern"><img src="https://agentmods.dev/badge/commands/parslee-ai/neo/neo-pattern.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 408 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.1 $0.00057 $0.00408
Opus 5 $0.00028 $0.00204
Sonnet 5 $0.00011 $0.00082
Haiku 4.5 $0.00006 $0.00041

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

Security

Grade A, and why

neo-pattern 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.

commands/neo-pattern.md · 61 lines

What it actually says

Extract reusable patterns with Neo.

Usage

/neo-pattern <code area or pattern type>

Description

Use this command to extract reusable architectural patterns from your codebase. Neo will identify patterns, analyze their effectiveness, and suggest when to apply them.

Examples

/neo-pattern repository pattern implementation

/neo-pattern error handling across the API

/neo-pattern caching strategies in the codebase

What Happens

Neo will:

  1. Analyze code to identify the pattern
  2. Evaluate pattern effectiveness and consistency
  3. Search memory for similar patterns
  4. Suggest improvements or alternative patterns with confidence scores

This command uses explicit learn mode. The result is recorded only as an episode candidate and requires independent verified support before promotion.

Presentation

Invoke with --json and follow the agent's communication protocol (agents/neo.md). For pattern extraction specifically:

  • Lead with orchestrator.summary, then the pattern Neo identified.
  • Cite the instances the pattern was drawn from. A "pattern" with one example is an anecdote — say how many occurrences Neo actually saw.
  • Report memory_found when the pattern matched something Neo already knew. Recurrence across sessions is the strongest signal available here.
  • Be accurate about learning: this run records an episode candidate. It does not mint a durable fact. Promotion needs two independent git-verified acceptances. Do not tell the user Neo "learned" this.

Parameters

  • <target> - Code area or pattern type (required)

Specify what pattern you want to analyze or where to look for patterns

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 First seen · 61 lines · 57 tokens per session scan A 7b093974a5c0

Subscribe to this mod's changes

neo-pattern is a command published in the GitHub repository Parslee-ai/neo (16 stars, last pushed today), licensed Apache-2.0. It adds 57 tokens to every session and 408 once invoked, about $0.0003 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-30.