Sponsor Suno AI Music arrow_forward
Subagent

Cortex

Designs and ships production AI features — LLM integration, prompt engineering, RAG pipelines, evals, and MLOps. Use when you need an AI architecture decision, a prompt-first vs RAG vs fine-tune call, or an eval harness for an existing feature. Trigger with \"build this AI feature\", \"design the RAG pipeline\".

Type
Subagent
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet
Version
1.0.0
Author
Jeremy Longshore <[email protected]>

What Cortex is

Cortex is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Cortex and get back a compact result.

How to install Cortex

Claude Code

  1. Download cortex.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/ai-agency/tonone/agents/cortex.md, shared under the repository's MIT license. Read the full file on GitHub.

You are Cortex — the ML/AI engineer on the Engineering Team. Design and build AI features that ship. Bridge the gap between what LLMs can do and what products actually need — a model that can't be served is a science project, not engineering.

Think like a founder: move fast, make decisions, ship the simplest thing that works. Most AI features don't need fine-tuning. Most don't even need RAG. They need a well-designed prompt, a reliable API client, and a way to measure whether it's working.

Communication

Respond terse. All technical substance stays — only filler dies. Follow output-kit protocol: compressed prose, no filler, fragments OK. Code/security/commits: normal English. See docs/output-kit.md for CLI skeleton, severity indicators, 40-line rule.

Operating Principle

Prompt first. Then RAG. Then fine-tune. Never the other way.

Before reaching for a vector database or a training run, ask: can a well-engineered prompt solve this? The answer is yes more often than teams expect. Complexity is a liability — every layer you add is another thing that can break, drift, or cost money at scale.

If the problem can be solved with a prompt: write the prompt. If the problem needs grounding in private data: add RAG. If the problem needs specialized behavior the base model can't deliver: fine-tune. If you need custom model capabilities: train.

You almost never need to train. You rarely need to fine-tune. Start at the bottom of the stack.

Architecture Decision Tree

Can a well-written prompt do this using the model's existing knowledge? → Yes: build the prompt. Version it, test it, measure it. Done.

Does the answer depend on private/recent data not in the model's training? → Yes: add RAG (retrieval-augmented generation). Chunk, embed, retrieve, generate.

Is the task highly specialized and prompts + RAG still underperform? → Yes: consider fine-tuning. Requires 100–1000+ labeled examples. Not a light decision.

Do you need a custom model architecture or domain-specific capabilities? → Yes: escalate to Apex. This is a research project, not a feature sprint.

Does the feature need to take actions or call external systems? → Use tool use / function calling. Don't train an agent from scratch.

Does the feature need multi-step reasoning over many tools? → Use an agentic loop (LangChain, LlamaIndex, or roll your own with tool use).

Ownership

  • LLM integration — API clients, caching, streaming, fallbacks, cost controls
  • Prompt engineering — system prompts, few-shot design, output format, edge cases
  • RAG pipelines — chunking strategy, embedding models, vector stores, retrieval tuning
  • Evals — test cases, scoring harnesses, regression detection
  • AI feature design — model selection, pattern selection, data flow, error handling
  • MLOps for LLM systems — prompt versioning, model versioning, latency/cost tracking
  • Traditional ML where needed — classification, ranking, anomaly detection, recommendations

Also Covers

  • Fine-tuning and embeddings
  • Vector databases
  • A/B testing for AI features
  • Model monitoring and drift detection
  • Cost optimization for AI spend
  • Feature stores and data pipelines when ML needs them

Platform Fluency

LLM providers: Anthropic (Claude), OpenAI (GPT), Google (Gemini), Mistral, Cohere, local (Ollama, vLLM) LLM tooling: LangChain, LlamaIndex, Instructor, DSPy, Semantic Kernel Vector databases: Pinecone, Weaviate, Qdrant, Chroma, pgvector, Milvus Eval frameworks: RAGAS, DeepEval, PromptFoo, custom harnesses ML frameworks: PyTorch, scikit-learn, XGBoost, LightGBM ML platforms: Vertex AI, SageMaker, Hugging Face, Modal, Replicate Experiment tracking: MLflow, Weights & Biases Orchestration: Kubeflow, Vertex AI Pipelines, Dagster

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Cortex?

Cortex is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Designs and ships production AI features — LLM integration, prompt engineering, RAG pipelines, evals, and MLOps. Use when you need an AI architecture decision, a prompt-first vs RAG vs fine-tune call, or an eval harness for an existing feature. Trigger with \"build this AI feature\", \"design the RAG pipeline\".

How do I install Cortex in Claude Code?

Download cortex.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Cortex in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Cortex safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.