vscode-unify-chat-provider: Agent for Claude Code

.github/agents/add-app-import-support.agent.md

Add Application Import Support is an agent for Claude Code from smallmain/vscode-unify-chat-provider. It costs 26 tokens per session (1,728 once invoked), scanned A, original, MIT.

An implementation agent that adds support for importing provider settings from another application's configuration file into a VS Code extension.

In plain words
What is it for?
Adding a migration source, connecting it to the import screen, parsing documented configuration formats, and mapping settings to provider types.
Why use it?
It prevents configuration import from relying on guessed file formats, paths, or field meanings and requires user-friendly errors when import fails.

Agent for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is smallmain/vscode-unify-chat-provider's own configuration. It tells Claude Code how to work on vscode-unify-chat-provider 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 vscode-unify-chat-provider configures →

Reuse

Borrowing it

Nothing to install: this file belongs to smallmain/vscode-unify-chat-provider. 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/smallmain/vscode-unify-chat-provider/main/.github/agents/add-app-import-support.agent.md
Clone the repo
git clone --depth 1 https://github.com/smallmain/vscode-unify-chat-provider

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 Add Application Import Support

README.md
[![agentmods](https://agentmods.dev/badge/agents/smallmain/vscode-unify-chat-provider/add-app-import-support.svg)](https://agentmods.dev/agents/smallmain/vscode-unify-chat-provider/add-app-import-support)
Your own site
<a href="https://agentmods.dev/agents/smallmain/vscode-unify-chat-provider/add-app-import-support"><img src="https://agentmods.dev/badge/agents/smallmain/vscode-unify-chat-provider/add-app-import-support.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,728 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.00026 $0.01728
Opus 5 $0.00013 $0.00864
Sonnet 5 $0.00005 $0.00346
Haiku 4.5 $0.00003 $0.00173

Measured 8d ago against content hash 2330ab5f23b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

Add Application Import Support 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 8d 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.

.github/agents/add-app-import-support.agent.md · 127 lines

How it starts

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

目标

你是这个仓库的“应用配置导入(Migration)集成”专用助手。你的任务是:为某个第三方应用新增 从其配置文件导入 Provider 的能力,并让它出现在 VS Code 扩展 UI 的 Import Providers From Other Applications 列表中。

本仓库的迁移框架核心接口是 ProviderMigrationSource(见 src/migration/types.ts)。UI 会遍历 PROVIDER_MIGRATION_SOURCES(见 src/migration/index.ts)来显示可导入的应用(见 src/ui/screens/import-providers-screen.ts)。

开发硬规则(必须遵守)

  • 遵循仓库级指令:AGENTS.md
    • 禁止通过 as any@ts-ignore 等方式绕过 TypeScript 严格类型检查。
  • 不要猜配置格式/路径。 必须基于官方文档或可信来源确认:配置文件位置、格式(TOML/JSON/YAML/INI 等)、字段含义、默认值与优先级规则。
  • importFromConfigContent 发生无法导入的情况时,抛出用户友好错误信息throw new Error("...")),因为 UI 会将 error.message 展示给用户。

输入(你需要向用户澄清/收集)

在开始编码前,确认以下信息(缺失则先补齐,不要盲做):

  1. 目标应用名称(用于 displayName、文件命名)。
  2. 官方文档链接(配置文件位置 + 字段说明)。
  3. 一份可脱敏的示例配置(最好来自用户机器),或至少关键片段。
  4. 期望导入到本扩展的 Provider 类型:
  5. 是否需要强校验:例如必须包含 APIURL + APIKEY(缺失就拒绝导入)。

如果用户给了 URL:先用 #tool:fetch 拉取页面并阅读;页面里出现的“配置参考/路径说明/示例”链接,继续 fetch(只递归与配置相关的链接)。

你要产出的代码改动(标准落地路径)

1) 新增 migration source 文件

src/migration/ 下新增 your-app.ts(命名用 kebab-case),并导出:

  • export const yourAppMigrationSource: ProviderMigrationSource = { ... }
    • id: kebab-case 且稳定(会用于 UI 选择与持久化)
    • displayName: 面向用户的名字
    • detectConfigFile(): Promise<string | undefined>
    • importFromConfigContent(content: string): Promise<readonly ProviderMigrationCandidate[]>

实现提示:

  • detectConfigFile

    • 从官方文档整理一组“候选路径”,包括:
      • 环境变量(例如 $APP_HOME$XDG_CONFIG_HOME、Windows %APPDATA% 等)
      • 默认路径(macOS/Linux 通常在 ~/.config/...~/Library/Application Support/...;Windows 常见在 %APPDATA%/%LOCALAPPDATA%
    • fs.stat/fs.access 检测文件存在且是 file;返回第一个命中的路径。
    • 不要在 detect 阶段读取文件内容(只负责定位)。
  • importFromConfigContent

    • 仅基于传入的 content 解析(UI 已读取文件)。
    • 解析失败、关键字段缺失、无法映射 provider 类型时:抛出清晰错误(告诉用户缺了什么、去哪里配)。
    • 返回 ProviderMigrationCandidate[],其中每个 candidate 的结构为:
      • { provider: Partial<ProviderConfig> }

Read the full file on GitHub · 127 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. 8d ago First seen · 127 lines · 26 tokens per session scan A 2330ab5f23b7

Subscribe to this mod's changes

Add Application Import Support is an agent published in the GitHub repository smallmain/vscode-unify-chat-provider (709 stars, last pushed 2d ago), licensed MIT. It adds 26 tokens to every session and 1,728 once invoked, about $0.0001 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

01-Orchestrator

Master orchestrator for the multi-step Azure platform engineering workflow. Coordinates Requirements, Architect, Design, IaC Plan, IaC Code, Deploy agents with mandatory human approval gates. Routes Bicep or Terraform tracks via decisions.iactool.

jonathan-vella/apex-accelerator · 53 tokens

03-Architect

Expert Architect providing guidance using Azure Well-Architected Framework principles and Microsoft best practices. Evaluates decisions against WAF pillars and generates ARM MCP-verified cost estimates.

jonathan-vella/apex-accelerator · 37 tokens

04g-Governance

Azure governance discovery agent. Queries Azure Policy assignments via REST API (incl. management-group-inherited policies), classifies effects, produces governance constraint artifacts, and runs adversarial review. Step 3.5: after Architecture, before IaC Planning.

jonathan-vella/apex-accelerator · 56 tokens

08-As-Built

Generates Step 7 as-built documentation suite after successful deployment. Reads all prior artifacts (Steps 1-6) and deployed resource state to produce: design document, operations runbook, cost estimate, compliance matrix, backup/DR plan, resource inventory, and documentation index.

jonathan-vella/apex-accelerator · 61 tokens

02-Requirements

Researches and captures Azure platform engineering project requirements.

jonathan-vella/apex-accelerator · 13 tokens

06b-Bicep CodeGen

Expert Azure Bicep IaC specialist that creates near-production-ready Bicep templates following Azure Verified Modules (AVM) standards. Validates, tests, and ensures code quality.

jonathan-vella/apex-accelerator · 45 tokens