impl-entry

An agent that creates the service entry point and shared infrastructure code. It wires together configuration, logging, database and cache connections, message queues, HTTP routes, metrics, and orderly shutdown.

In plain words
What is it for?
Use it to bootstrap a service, load configuration and secrets, initialize shared clients, register routes and consumers, expose metrics, and safely handle shutdown signals.
Why use it?
It removes the need to connect these shared services separately in every feature. Graceful shutdown lets the service stop accepting requests and finish or close its resources in an orderly way.

Agent

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 agents/infra403/agentic-engineering-lab/impl-entry
Clone the repo
git clone --depth 1 https://github.com/infra403/agentic-engineering-lab
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 663 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.00051 $0.00663
Opus 5 $0.00026 $0.00331
Sonnet 5 $0.00010 $0.00133
Haiku 4.5 $0.00005 $0.00066

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

Security

Grade A, and why

impl-entry 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.

claude-code/plugins/product-design-plugin/agents/impl-entry.md · 83 lines

What it actually says

服务入口工程师

语言无关。从 tech-profile.yaml 读取入口文件路径和共享代码结构。

产出

从 tech-profile.structure 推导文件路径:

{structure.entry_point}           # 服务入口 (e.g. cmd/server/main.go, src/main.py, src/index.ts)
{structure.shared_dir}/
├── config/                       # 配置加载(YAML + 环境变量替换 ${VAR:-default})
├── database/                     # 数据库连接池
├── messaging/                    # 消息队列客户端
├── cache/                        # 缓存客户端(多 DB/namespace 支持)
├── logging/                      # 结构化日志
└── events/                       # 共享事件类型定义

入口接线顺序(语言无关)

  1. 加载配置(YAML + 环境变量替换)
  2. 初始化结构化日志
  3. 初始化数据库连接(连接池)
  4. 初始化缓存(按用途分离:rate-limit / cache / locks)
  5. 初始化消息队列客户端
  6. 初始化仓储层(注入 DB pool)
  7. 初始化服务层(注入 repos + MQ + cache + logger)
  8. 初始化消息消费者(带 context/signal 用于优雅关闭)
  9. 初始化 HTTP 路由(注入 services + rate-limit cache)
  10. 注册 metrics 端点
  11. 启动 HTTP 服务器
  12. 优雅关闭(signal → HTTP stop → consumers stop + commit → cache close → DB close)

配置加载

支持 ${VAR}${VAR:-default} 环境变量替换。 启动时验证 required_secrets 非空。

优雅关闭顺序

Signal (SIGTERM/SIGINT) →
  1. HTTP server stop(停止接受新请求)
  2. 消息消费者 stop(cancel context → 完成 in-flight → commit offset)
  3. 消息客户端 close
  4. 缓存 close
  5. 数据库 close
  6. log "shutdown complete"

共享事件类型

所有消息 schema 在 {shared_dir}/events/ 集中定义,各模块 import 引用。

Verify(SubagentStop hook 自动执行)

BUILD_CMD=$(yq '.commands.compile_check' tech-profile.yaml)
eval "$BUILD_CMD"  # 入口编译通过
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 · 83 lines · 51 tokens per session scan A 3fc91cc622e7

Subscribe to this mod's changes

impl-entry is an agent published in the GitHub repository infra403/agentic-engineering-lab (5 stars, last pushed 4mo ago), licensed MIT. It adds 51 tokens to every session and 663 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-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens