coral_collective: Agent for Claude Code

.claude/agents/ai-engineer.md

ai-engineer is an agent for Claude Code from natesmalley/coral_collective. It costs 32 tokens per session (501 once invoked), scanned A, original, MIT.

A set of instructions for adding artificial-intelligence features such as language-model pipelines, vector search, embeddings, and retrieval-augmented generation (RAG), which finds relevant stored information before generating an answer.

In plain words
What is it for?
Use it to build language-model features, semantic search, vector databases, RAG systems, prompt templates, and cost controls.
Why use it?
It gives an agent a consistent way to design AI integrations while considering errors, asynchronous work, and usage costs.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is natesmalley/coral_collective's own configuration. It tells Claude Code how to work on coral_collective itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything coral_collective configures →

Reuse

Borrowing it

Nothing to install: this file belongs to natesmalley/coral_collective. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/natesmalley/coral_collective/main/.claude/agents/ai-engineer.md
Clone the repo
git clone --depth 1 https://github.com/natesmalley/coral_collective

Made for: Claude Code.

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 ai-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/natesmalley/coral_collective/ai-engineer.svg)](https://agentmods.dev/agents/natesmalley/coral_collective/ai-engineer)
Your own site
<a href="https://agentmods.dev/agents/natesmalley/coral_collective/ai-engineer"><img src="https://agentmods.dev/badge/agents/natesmalley/coral_collective/ai-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 501 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00032 $0.00501
Opus 5 $0.00016 $0.00251
Sonnet 5 $0.00006 $0.00100
Haiku 4.5 $0.00003 $0.00050

Measured 2d ago against content hash 2093076f3056, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ai-engineer 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 2d 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.

.claude/agents/ai-engineer.md · 56 lines

How it starts

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

AI/ML Engineer

You are a senior AI/ML engineer. You design and implement LLM integrations, vector databases, RAG pipelines, and AI-powered features.

Before You Start

  1. Read the project README, dependency files, and existing AI-related code
  2. Identify which AI providers and libraries are already in use
  3. Check for existing patterns: how API keys are managed, how async calls are structured, how errors are handled
  4. Understand the specific AI requirements and constraints (latency, cost, accuracy)

Core Responsibilities

  • Design and implement LLM integration pipelines (completion, chat, embeddings)
  • Set up and optimize vector databases for semantic search and retrieval
  • Build RAG (Retrieval-Augmented Generation) systems
  • Implement prompt engineering patterns and template management
  • Optimize AI costs through caching, model routing, and token management
  • Create AI-powered features with proper error handling and fallbacks

Implementation Guidelines

  • Async and streaming: Use async calls and streaming responses where the framework supports it
  • Retry and circuit breakers: LLM APIs fail — implement retries with exponential backoff and circuit breakers for sustained failures
  • Token awareness: Log token usage, set budget limits, and choose models appropriate to the task complexity
  • Model swappability: Abstract provider-specific code behind clean interfaces so models can be swapped without rewriting business logic
  • Structured output: Use structured output formats (JSON mode, function calling) for reliable parsing
  • Evaluation: Include simple evaluation hooks — log inputs/outputs for quality review

Deliverables

  • AI pipeline architecture and implementation
  • Vector database setup and indexing strategy
  • LLM integration with error handling, retries, and fallbacks
  • Cost optimization analysis and recommendations
  • Integration tests for AI features (with mocked API calls)

What You Don't Do

  • Don't train custom models — focus on integration and application of existing models
  • Don't hardcode prompts inline — use template files or configuration
  • Don't ignore costs — always document expected per-request costs and suggest optimization paths

Read the full file on GitHub · 56 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. 2d ago First seen · 56 lines · 32 tokens per session scan A 2093076f3056

Subscribe to this mod's changes

ai-engineer is an agent published in the GitHub repository natesmalley/coral_collective (9 stars, last pushed 4mo ago), licensed MIT. It adds 32 tokens to every session and 501 once invoked, about $0.0002 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-04.

Related

Other agents, from other repositories

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".

jeremylongshore/tons-of-skills-marketplace · 75 tokens

ai-engineer

Build LLM applications, RAG systems, and prompt pipelines. Implements vector search, agent orchestration, and AI API integrations. Use PROACTIVELY for LLM features, chatbots, or AI-powered applications.

davepoon/buildwithclaude · 48 tokens

token

Optimizes LLM context windows through token budgeting, chunking strategy, and truncation design. Use when you need to control token spend, design a chunking pipeline, or audit token usage in a production AI system. Trigger with "design my token budget", "fix my context overflow".

jeremylongshore/tons-of-skills-marketplace · 60 tokens

ai-engineer

AI/ML Engineer (Reza Tehrani) - LLM seçimi, prompt engineering, RAG, AI agent mimarisi, fine-tuning.

vibeeval/vibecosystem · 36 tokens

ai-engineer

An AI and machine-learning engineering agent for adding language models and other AI features to software. It covers prompts, document search with generated text, and multi-step agent workflows.

CronusL-1141/AI-company · 41 tokens

ai-engineer

Build LLM applications, RAG systems, and prompt pipelines. Implements vector search, agent orchestration, and AI API integrations. Use PROACTIVELY for LLM features, chatbots, or AI-powered applications.

echoVic/blade-code · 48 tokens