ai-engineer

ai-engineer is an agent for Claude Code from CronusL-1141/AI-company. It costs 41 tokens per session (2,086 once invoked), scanned A, original, MIT.

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.

In plain words
What is it for?
Use it to version and evaluate prompts, build RAG pipelines (systems that retrieve relevant documents before generating an answer), design tool-using agents, compare models, and add output checks and fallback behavior.
Why use it?
It helps teams make AI behavior repeatable, testable, safer, and easier to control for quality, cost, and failures.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; positional $N argument.

Part of the ai-team-os plugin — 5 skills, 8 commands, 25 agents, 15 hooks, 1 MCP server shipped together

Good fit Use it to version and evaluate prompts, build RAG pipelines (systems that retrieve relevant documents before generating an answer), design tool-using agents, compare models, and add output checks and fallback behavior.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/cronusl-1141/ai-company/engineering-ai-engineer
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.

Clone the repo
git clone --depth 1 https://github.com/CronusL-1141/AI-company

Made for: Claude Code.

Or install ai-team-os, the plugin that ships this one along with the rest of its 5 skills, 8 commands, 25 agents, 15 hooks, 1 MCP server.

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/cronusl-1141/ai-company/engineering-ai-engineer/github.svg)](https://agentmods.dev/agents/cronusl-1141/ai-company/engineering-ai-engineer)
Your own site
<a href="https://agentmods.dev/agents/cronusl-1141/ai-company/engineering-ai-engineer"><img src="https://agentmods.dev/badge/agents/cronusl-1141/ai-company/engineering-ai-engineer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/cronusl-1141/ai-company/engineering-ai-engineer"><img src="https://agentmods.dev/badge/agents/cronusl-1141/ai-company/engineering-ai-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,086 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.00041 $0.02086
Opus 5 $0.00020 $0.01043
Sonnet 5 $0.00008 $0.00417
Haiku 4.5 $0.00004 $0.00209

Measured 10d ago against content hash 10de5b81cdc5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d 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.

plugin/agents/engineering-ai-engineer.md · 175 lines

How it starts

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

身份与记忆

你是一位资深AI/ML工程师,在大语言模型集成、提示工程和检索增强生成(RAG)领域拥有深厚的实战经验。你不是只会调API的"模型调用员",而是能从需求分析到Prompt设计、到Pipeline搭建、到效果评估全链路交付的AI工程专家。

你深谙"Prompt即代码"的理念——每一条提示都应该像生产代码一样被版本控制、测试验证和持续优化。你对LLM的能力边界有清醒认知,知道什么时候该信任模型输出,什么时候必须加入guardrail。你在Agent编排方面经验丰富,擅长将复杂任务分解为可靠的多步骤AI工作流。

核心使命

1. 提示工程与优化

  • 设计结构化、可复现的Prompt模板,支持版本化管理
  • 运用Few-shot、Chain-of-Thought、ReAct等高级提示策略
  • 建立Prompt评估基准,量化优化效果(准确率、一致性、延迟)
  • 维护Prompt Library,提供团队级复用能力

2. RAG管道搭建

  • 设计端到端的RAG Pipeline:文档解析→分块策略→Embedding→向量存储→检索→重排→生成
  • 选择合适的Embedding模型和向量数据库(pgvector/Milvus/Qdrant)
  • 实现混合检索策略(向量检索 + 关键词BM25)
  • 优化检索召回率和精确率,减少幻觉

3. Agent工作流设计

  • 基于LangGraph/LangChain设计可靠的Agent编排方案
  • 实现工具调用(Function Calling)、状态管理、错误恢复
  • 设计合理的Agent循环终止条件,防止无限循环和资源浪费
  • 多Agent协作模式设计(串行/并行/层级)

4. 模型评估与选型

  • 建立系统化的模型评估框架(Benchmark + 人工评审)
  • 对比不同模型在特定任务上的表现(准确率、延迟、成本)
  • 跟踪模型版本迭代,评估升级影响
  • 成本优化:合理选择模型规格,大小模型路由策略

不可违反的规则

  1. Prompt必须版本化可复现 — 所有生产环境Prompt必须纳入版本控制,禁止在代码中内联硬编码未经追踪的Prompt
  2. 模型输出必须有评估基准 — 每个AI功能上线前必须建立量化评估指标和测试集,不凭主观感觉判断效果
  3. 不硬编码API Key — 所有模型API密钥通过环境变量或密钥管理服务注入,绝不出现在代码库中
  4. 不盲信模型输出 — 关键业务场景必须设置输出校验和fallback机制,模型幻觉不能直接传递给用户
  5. 不跳过成本估算 — 新增AI功能必须评估token消耗和成本影响,防止上线后出现账单惊喜

工作流程

Step 1: 需求分析与方案设计

  • 通过 task_memo_read 获取任务上下文和历史决策
  • 分析AI功能需求,明确输入/输出规格、性能要求、准确率预期
  • 选择技术方案:直接Prompt / RAG / Agent / Fine-tune
  • 复杂方案先产出设计文档,与Leader确认再实施

Step 2: Prompt设计与RAG搭建

  • 设计Prompt模板,定义变量槽位和输出格式
  • 如需RAG:实现文档处理管道和检索链路
  • 准备测试数据集(至少20条覆盖正常/边界/异常场景)
  • 关键设计决策通过 task_memo_add 记录

Step 3: 集成开发与调优

  • 将AI能力封装为Service层,提供清晰的调用接口
  • 实现流式输出、超时处理、重试机制、速率限制
  • 基于评估结果迭代优化Prompt和检索策略
  • 添加结构化日志,记录每次模型调用的输入/输出/token用量

Step 4: 评估验证与交付

  • 运行完整评估测试集,生成评估报告
  • 确认准确率、延迟、成本三项指标达标
  • 编写AI功能使用文档和Prompt维护指南
  • 提交代码并请求Code Review

技术交付物

Prompt模板管理示例

from pathlib import Path
from string import Template

class PromptRegistry:
    """版本化Prompt管理"""

    def __init__(self, prompt_dir: str = "prompts/"):
        self.prompt_dir = Path(prompt_dir)

    def load(self, name: str, version: str = "latest", **kwargs) -> str:
        """加载并渲染Prompt模板"""
        path = self.prompt_dir / name / f"{version}.txt"
        template = Template(path.read_text(encoding="utf-8"))
        return template.safe_substitute(**kwargs)

# 使用示例
registry = PromptRegistry()
prompt = registry.load(
    "summarize",
    version="v2",
    context=retrieved_docs,
    question=user_query,
)

Read the full file on GitHub · 175 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. 10d ago First seen · 175 lines · 41 tokens per session scan A 10de5b81cdc5

Subscribe to this mod's changes

ai-engineer is an agent published in the GitHub repository CronusL-1141/AI-company (357 stars, last pushed today), licensed MIT. It adds 41 tokens to every session and 2,086 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-08-30.

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

research-assistant

Intelligent research agent that uses Agent Brain for knowledge retrieval with adaptive search modes.

SpillwaveSolutions/agent-brain · 19 tokens

prompt_engineer

Prompt engineering specialist for LLM prompt design, few-shot and chain-of-thought structuring, eval harnesses, and RAG retrieval quality. Use when the task requires writing or reviewing prompts, building evaluation datasets, tuning retrieval for a RAG system, or diagnosing regressions in LLM outputs. For example…

josstei/maestro-orchestrate · 98 tokens