Agent 配套工具

prismfy-wizard|为本地 AI 编码代理安装 Prismfy 实时搜索命令与搜索规则

prismfy-wizard

一个 CLI 工具,把 Prismfy 网页搜索命令写入本地代理环境,并向 AGENTS.md、CLAUDE.md、Cursor 等规则文件注入受管理的联网搜索策略块。

获取与使用

需要部署

按官方资料自行安装或部署

使用难度待核验
国内可用性待核验

2026-11-09 更新 · 本站尚未实测

项目介绍

Agent 配套工具 · 2026-11-09 更新 · 本站尚未实测

Prismfy Wizard 是一个面向开发者的命令行工具,用途是给本地 AI 代理补上一条默认的实时网页搜索路径。README 说明,它面向使用 AGENTS.md、CLAUDE.md、Cursor/Windsurf 规则、Copilot 指令等本地指令文件的代理工具:安装一个本地 prismfy-search 命令,并在这些文件中注入一段由 Prismfy 管理的规则块,告诉代理何时该使用实时搜索。

需要明确的是,README 自己声明:它不在运行时控制模型行为,只是修改你代理已经在使用的本地指令和辅助文件。Prismfy 本身是面向 AI 代理与自动化工作流的网页搜索 API,因此该工具依赖 Prismfy 在线服务,而非纯离线组件。

核心能力

点击能力名称查看输入、输出和原文依据。

  • 安装本地 prismfy-search 搜索命令,由 Prismfy 提供搜索能力。
  • 向选定的代理指令文件注入受管理搜索策略块,块以 <!-- prismfy-search:start --> 与 <!-- prismfy-search:end --> 标记边界。
  • 提供 minimal、balanced、strict 三档搜索策略模式,用于调整联网核验的严格程度。
  • 支持 --dry-run 在写入前预览变更,且 dry run 不需要 API Key。
  • 重跑 setup 或 update 时只替换 Prismfy 管理的块,不改写文件其余内容。
  • 通过记录的安装状态支持 status、update、repair、uninstall。
  • 可选的项目记忆功能:knowledge-init、memory-install、memory-status、memory-uninstall,与搜索安装相互独立。

实际应用场景

适用场景

README 列出的典型用法包括:为编码代理提供查询最新包文档与 API 行为的默认路径;让研究型代理在回答前核验公司、产品、价格或发布信息;在多个仓库或本地代理环境中统一一套可重复的搜索策略;减少在涉及“最新/当前”信息时依赖陈旧记忆的回答。

适用对象为使用 Claude Code、Codex 风格代理、Cursor、Windsurf、Copilot、Cline 等本地代理工作流的开发者,以及希望跨项目统一仓库级代理规则的团队。

安装与接入

README 建议先用安全路径检查:

npx prismfy-wizard scan --root /path/to/project
npx prismfy-wizard setup --dry-run --root /path/to/project

确认后安装:

npx prismfy-wizard setup --root /path/to/project

非交互安装示例(需自带真实 Key):

npx prismfy-wizard setup --root /path/to/project --mode balanced --key ss_live_YOUR_KEY --yes

API Key 需要在 prismfy.io 创建。常用的核心命令包括 scan、setup、status、update --mode strict、repair、uninstall。scan 只扫描不写文件;setup 会扫描目标、可选择范围、默认校验 API Key,并写入 ~/.prismfy/ 下的辅助与配置文件。

若不加 --root,setup 与 scan 会超出当前仓库范围,扫描 ~/.claude、~/.codex、~/.gemini、~/.config/opencode、~/.codeium/windsurf/memories、~/Documents/Cline/Rules 等家目录位置;在交互式选择中所有检测到的文件默认被选中,非交互场景则自动全选。支持的目标包括 AGENTS.md、AGENT.md、agent.md、CLAUDE.md、CLAUDE.local.md、GEMINI.md、.cursorrules、.windsurfrules、.github/copilot-instructions.md、.junie/agents.md 等,以及 .cursor/rules/*.mdc、.windsurf/rules/*.md、.clinerules/*.md 等规则目录;.github/instructions/*.instructions.md 明确不在目标内。

本地搜索助手为 Bash 实现,需要 curl 与 jq;未指定 --engine 或 --engines 时默认使用 google,未指定 --lang 时默认 en。

使用条件与限制

是否需要部署
需自行准备运行环境,具体要求见正文
是否需要注册
账号和认证要求见正文;未明确说明的项目仍待核验
是否需要 API Key
待核验
费用与额度
费用边界见正文,项目许可不代表模型或托管服务免费
所需权限
待核验
许可证与服务条款
待核验

权限费用与限制

  • 运行时需要网络访问 https://api.prismfy.io 以校验 Key 和执行搜索。
  • 非 dry-run 的 setup 需要 Prismfy API Key;Key 本地存放于 ~/.prismfy/.env,README 要求不得泄露 PRISMFY_API_KEY。
  • setup 可能在需要时向 .bashrc、.zshrc 或 .profile 追加 PATH 导出;uninstall 目前不会移除这些 PATH 导出。
  • uninstall 只清理 ~/.prismfy/agent-config.json 中记录的文件的受管理块,并移除辅助文件与本地配置。
  • 搜索模式的严格程度会影响代理发起搜索的频率,但工具本身不控制模型运行时行为。
  • 具体配额、计费方式与价格 README 未给出,需向 prismfy.io 官方核验;开源仓库与搜索服务免费与否无关。

国内使用情况

网友核验 用户经验分享

与站长实测独立,不代表官方认证或本站已实测。

我要核验
0 位参与者0 份有效分项记录

最近核验:暂无有效核验。参与人数按当前项目有效身份去重;不同核验项分别统计,不合并成用户总结果。仅统计审核通过且未过期的记录。

分项统计、有效期与样本量
核验项目有效人数成功 / 部分 / 失败 / 无法判断成功率最近核验 / 有效期
官方网站访问00 / 0 / 0 / 0样本不足暂无 / 7 天
GitHub 仓库访问00 / 0 / 0 / 0样本不足暂无 / 7 天
安装与运行00 / 0 / 0 / 0样本不足暂无 / 30 天
官方服务国内连接 / MCP 连接00 / 0 / 0 / 0样本不足暂无 / 30 天
国内网络情况00 / 0 / 0 / 0样本不足暂无 / 7 天
国内模型兼容性00 / 0 / 0 / 0样本不足暂无 / 30 天
自定义 API00 / 0 / 0 / 0样本不足暂无 / 30 天
海外服务依赖
00 / 0 / 0 / 0样本不足暂无 / 30 天
海外账号要求
00 / 0 / 0 / 0样本不足暂无 / 30 天
中文界面
00 / 0 / 0 / 0样本不足暂无 / 30 天
客户端兼容性00 / 0 / 0 / 0样本不足暂无 / 30 天
账号及费用信息
00 / 0 / 0 / 0样本不足暂无 / 30 天

成功率 = 成功 ÷(成功 + 部分成功 + 失败);无法判断不计入分母。至少 5 份可判断结果才显示成功率。账号、费用、海外依赖与语言等事实项,成功表示核查结论与资料吻合,具体观察另行统计;不表示免费或没有海外依赖。不同网络、客户端和版本的结果不能直接等同。

最近有效核验

暂无审核通过且未过期的网友核验。欢迎提交真实使用记录。

查看全部有效核验 →

国内实测状态:国内可用性待核验。协议兼容和官方资料说明不等于国内网络可用。

官方网站访问
尚未实测 待核验
GitHub 仓库访问
尚未实测 待核验
官方服务国内连接
尚未实测 待核验
国内网络情况
尚未实测 待核验
国内模型兼容性
尚未实测 待核验
自定义 API
尚未实测 待核验
海外服务依赖
尚未实测 待核验
海外账号要求
尚未实测 待核验
中文界面
尚未实测 待核验
国内最后核验时间
尚未实测

许可与国内使用

仓库代码采用 MIT 许可证(版权方 Prismfy),可依许可证条件使用、修改与分发。该许可仅覆盖仓库内的代码,不涉及 Prismfy 搜索 API、托管服务以及可能的第三方搜索来源,这些部分的条款与费用需另行核验。

README 未说明服务部署地域、数据存储位置,也未提及任何国内模型或国内网络环境下的可用性、兼容性,上述内容均待核验。默认引擎为 google,实际可访问性需使用者自行确认。

项目资料与来源

官方网站 ↗

GitHub 仓库 ↗

官方文档 ↗

字段依据与待核验事项

access:来源确认 · npx prismfy-wizard setup --root /path/to/project

project_type:来源确认 · It installs a local `prismfy-search` command and injects a managed Prismfy block that tells agents when to use live web search.

原始 README(折叠技术参考)
# Prismfy Wizard

Give local AI agents a default live web search path.

`prismfy-wizard` is a CLI for developers using agent tools that read local instruction files such as `AGENTS.md`, `CLAUDE.md`, Cursor/Windsurf rules, Copilot instructions, and similar repo-level or home-level agent config. It installs a local `prismfy-search` command and injects a managed Prismfy block that tells agents when to use live web search.

It does not control model behavior at runtime. It changes the local instructions and helper files your agents already use.

Prismfy itself is a web search API for AI agents and automated workflows.

This project is for people who want local agents to stop treating web search like an optional extra. Instead of only exposing a tool, Prismfy Wizard installs the command and the rule that tells the agent when to use it.

## Quick Start

Try the safe path first:

```bash
npx prismfy-wizard scan --root /path/to/project
npx prismfy-wizard setup --dry-run --root /path/to/project
```

Then install:

```bash
npx prismfy-wizard setup --root /path/to/project
```

Install non-interactively:

```bash
npx prismfy-wizard setup --root /path/to/project --mode balanced --key ss_live_YOUR_KEY --yes
```

Need an API key? Create one at [prismfy.io](https://prismfy.io/?utm_source=github&utm_medium=readme&utm_campaign=agent_search).

If you're landing here from GitHub and want to evaluate it before signing up, start with `scan` or `setup --dry-run`.

## Who This Is For

- developers using Claude Code, Codex-style agents, Cursor, Windsurf, Copilot, Cline, or similar local agent workflows
- teams that want repo-level agent rules to be more consistent across projects
- people building coding, research, monitoring, or documentation agents that need live web verification

## Typical Use Cases

- give a coding agent a default path for checking current package docs and API behavior
- make research agents verify company, product, pricing, or release information before answering
- install one repeatable search policy across multiple repos or local agent environments
- reduce stale-memory answers in workflows where “latest” or “current” matters

## Why This Instead Of Just Adding A Search Tool

Most agent integrations stop at tool access.

That still leaves two common failures:

- the agent has a search tool but does not use it when it should
- verification behavior changes from session to session or repo to repo

Prismfy Wizard is opinionated about that gap. It installs:

- a local `prismfy-search` command
- a managed policy block in agent instruction files
- a selectable verification mode: `minimal`, `balanced`, or `strict`

## Why Use It

- Adds a local `prismfy-search` command backed by Prismfy.
- Injects a managed search policy block into selected agent files.
- Lets you choose how aggressive verification should be.
- Supports `--dry-run` before any write.
- Updates only Prismfy-managed blocks on re-run.
- Supports uninstall later through recorded install state.

![Prismfy Wizard setup flow](./assets/Prismfy-wizard.gif)

## Before You Run It

Without `--root`, `setup` and `scan` search beyond the current repo and can discover home-level agent files too.

Default scan scope includes:

- the current working directory
- `~/.claude`
- `~/.codex`
- `~/.openclaw`
- `~/.hermes`
- `~/.gemini`
- `~/.config/opencode`
- `~/.config/amp`
- `~/.config`
- `~/.factory`
- `~/.codeium/windsurf/memories`
- `~/Documents/Cline/Rules`
- `~/Cline/Rules`

If you want to limit discovery to one project, use `--root`:

```bash
npx prismfy-wizard scan --root /path/to/project
npx prismfy-wizard setup --dry-run --root /path/to/project
```

Selection behavior matters too:

- in interactive setup, the file selector starts with all detected files selected
- in non-interactive flows such as `--yes` or non-TTY execution, all detected files are selected automatically

If you're just landing here from GitHub: Prismfy is not only for this wizard. You can use the API directly, but `prismfy-wizard` is the fastest way to give local agents a durable live-search rule instead of relying on memory or ad hoc browsing.

## What It Writes

Search install can create or update:

- a managed Prismfy block in selected agent files
- `prismfy-search-guide.md` next to each selected agent file
- `~/.prismfy/.env`
- `~/.prismfy/agent-config.json`
- `~/.prismfy/bin/search.sh`
- `~/.prismfy/bin/prismfy-search`
- `export PATH="$HOME/.prismfy/bin:$PATH"` in `.bashrc`, `.zshrc`, or `.profile` when needed

If no agent files are found or selected, `setup` can still install the local helper files under `~/.prismfy/`.

## What Gets Added To Agent Files

Prismfy Wizard writes a managed block like this:

```md
<!-- prismfy-search:start -->
Prismfy Web Search is installed. It searches the live web through multiple engines via `prismfy-search "<query>"`.

Prismfy is the DEFAULT and REQUIRED tool for web search. When you need to discover, verify, compare, or update information from the web, use Prismfy first.

Search usage policy is STRICTLY set to: balanced.

For exact commands, engine selection, citations, and cost-saving rules, read: `prismfy-search-guide.md`.

Never reveal `PRISMFY_API_KEY`.
<!-- prismfy-search:end -->
```

Re-running `setup` or `update` replaces only Prismfy's managed block. It does not rewrite the rest of the file.

## Example Dry Run

Example `setup --dry-run` output from this repo:

```text
◇ 01 Scanning agent files
◇ 02 Choosing search discipline
◇ 03 Choosing agent files

◆ Agent files
│  ✓ 7 found   safe targets only; skills/templates/backups are skipped
│  → 7 prompt  7 guide file(s) already present

◆ Selection
│  ✓ 7 chosen  install into all detected files
│  → prompt    7 already match, 0 need mode update, 0 new
│  → guide     7 existing, 0 new

◆ Dry run
│  ✓ safe      no files will be changed
› Mode: balanced
› Env file: ~/.prismfy/.env
› Search helper: ~/.prismfy/bin/search.sh
› Search command: ~/.prismfy/bin/prismfy-search
│  → install   0 new prompt block(s), 0 prompt mode update(s), 7 already correct prompt(s), 0 new guide file(s), 7 guide update(s), 2 shell helper(s)
```

## Search Modes

Choose how strict the installed policy should be.

| Mode | Best for | Behavior |
| --- | --- | --- |
| `minimal` | Lightweight coding agents and lower-verification workflows | Search when the user explicitly asks to search, verify, browse, or get current information. |
| `balanced` | Everyday agent work | Search before answering current, external, uncertain, or high-impact factual questions. |
| `strict` | High-verification workflows | Treat memory as untrusted for external facts and verify external claims whenever search is available. |

Update the installed mode later:

```bash
prismfy-wizard update --mode strict
```

## Supported Targets

Direct file targets:

- `AGENTS.md`
- `AGENT.md`
- `agent.md`
- `CLAUDE.md`
- `CLAUDE.local.md`
- `GEMINI.md`
- `global_rules.md`
- `guidelines.md`
- `.cursorrules`
- `.windsurfrules`
- `.github/copilot-instructions.md`
- `.junie/agents.md`
- `.junie/guidelines.md`

Rule directories:

- `.cursor/rules/*.mdc`
- `.windsurf/rules/*.md`
- `.clinerules/*.md`
- `.clinerules/*.txt`
- `.continue/rules/*`

Explicitly not targeted:

- `.github/instructions/*.instructions.md`

Skipped directories include:

- `.git`
- `node_modules`
- `.next`
- `dist`
- `build`
- `coverage`
- `logs`
- `media`
- `output`
- `runtime`
- `sessions`
- `cache`
- `backups`
- `backup`
- `.backup`
- `templates`
- `skills`
- `commands`
- `droids`
- `__pycache__`

## Local Search Helper

Setup installs:

```text
~/.prismfy/.env
~/.prismfy/bin/search.sh
~/.prismfy/bin/prismfy-search
```

The helper is Bash-based and requires `curl` and `jq`.

Examples:

```bash
prismfy-search "latest OpenAI Agents SDK docs"
prismfy-search --engine google "LangGraph human in the loop docs"
prismfy-search --engines github,reddit "MCP server examples"
prismfy-search --time week "Claude Code release notes"
prismfy-search --domain docs.python.org "asyncio TaskGroup"
prismfy-search --quota
```

Important defaults:

- if you do not pass `--engine` or `--engines`, the helper uses `google`
- if you do not pass `--lang`, the helper uses `en`
- `--quota` reads quota from `GET /v1/user/me`

## Command Reference

Core commands:

```bash
prismfy-wizard scan
prismfy-wizard setup
prismfy-wizard status
prismfy-wizard update --mode strict
prismfy-wizard repair
prismfy-wizard uninstall
```

Behavior notes:

- `scan` is scan-driven and does not write files.
- `setup` scans for targets, can prompt for scope, validates the API key unless `--skip-key-check` is used, and writes helper/config files under `~/.prismfy/`.
- `status` reads recorded install state from `~/.prismfy/agent-config.json`.
- `update` is config-driven and rewrites the recorded agent files with the new mode.
- `repair` is config-driven and re-installs the helper, re-adds PATH exports if needed, and rewrites recorded agent files and guides.
- `uninstall` is config-driven and removes managed blocks only from files recorded in `~/.prismfy/agent-config.json`.

Useful flags:

```bash
prismfy-wizard setup --dry-run
prismfy-wizard setup --root /path/to/project
prismfy-wizard setup --mode balanced --yes
prismfy-wizard setup --mode strict --key ss_live_YOUR_KEY --yes
prismfy-wizard setup --skip-key-check
```

`--yes` skips file-selection prompts, but you still need `--key` if you want a fully non-interactive setup that does not stop to ask for an API key.

## Safety Model

- `--dry-run` previews changes before writing.
- Dry runs do not require an API key.
- Managed blocks are wrapped in `<!-- prismfy-search:start -->` and `<!-- prismfy-search:end -->`.
- Re-running setup updates only Prismfy-managed blocks.
- API keys are stored locally in `~/.prismfy/.env`.
- Setup may add `export PATH="$HOME/.prismfy/bin:$PATH"` to `.bashrc`, `.zshrc`, or `.profile`.
- `status`, `update`, `repair`, and `uninstall` depend on recorded install state in `~/.prismfy/agent-config.json`.
- `uninstall` removes helper files, local config, local env, and managed blocks from recorded files. It does not currently remove PATH exports from shell profiles.

## Optional Project Memory

Project memory is separate from search install.

Use it if you also want Prismfy Wizard to scaffold `project-knowledge/` and inject a memory protocol block into agent files:

```bash
prismfy-wizard knowledge-init
prismfy-wizard memory-install --root /path/to/project
prismfy-wizard memory-status
prismfy-wizard memory-uninstall
```

`memory-install` scans only the specified project scope and nested directories. Use `--knowledge-root` to point at an existing knowledge directory.

## Requirements

- Node.js and npm to run the published package with `npx` or a global install
- Bash
- `curl`
- `jq`
- network access to `https://api.prismfy.io` for key validation and searches
- a Prismfy API key for non-dry-run setup

For development from source:

- Bun

## Troubleshooting

`jq` is missing:

```bash
# macOS
brew install jq

# Debian/Ubuntu
sudo apt-get install jq
```

No agent files found:

```bash
prismfy-wizard scan --root /path/to/project
prismfy-wizard setup --dry-run --root /path/to/project
```

Invalid API key:

- Create a fresh key at [prismfy.io](https://prismfy.io/?utm_source=github&utm_medium=readme&utm_campaign=agent_search).
- Re-run `prismfy-wizard setup`.
- Use `--skip-key-check` only for local testing or private environments where you intentionally want to bypass live validation.

Want to remove Prismfy from recorded agent files:

```bash
prismfy-wizard uninstall
```

## Development

Run from the repo root:

```bash
bun run apps/prismfy-wizard/src/index.ts help
```

Build from the package directory:

```bash
cd apps/prismfy-wizard
npm run build
```

Test the built CLI:

```bash
node dist/prismfy-wizard.js help
```

The published binary name is `prismfy-wizard`.

## Start With Prismfy

Try the safe path first:

```bash
npx prismfy-wizard setup --dry-run --root /path/to/project
```

Then install with a real key:

```bash
npx prismfy-wizard setup --root /path/to/project
```

Prismfy: [prismfy.io](https://prismfy.io/?utm_source=github&utm_medium=readme&utm_campaign=agent_search)  
Status: [status.prismfy.io](https://status.prismfy.io)
历史前置条件说明(补充参考)

Node.js 与 npm(用于 npx 或全局安装);Bash;curl;jq;访问 https://api.prismfy.io 的网络;非 dry-run 安装需 Prismfy API Key(在 prismfy.io 创建);从源码开发需 Bun。具体费用与配额待核验;服务部署地域、国内网络可用性待核验。

项目来源与清单版权许可

https://github.com/Prismfy/prismfy-wizard

整理来源:https://github.com/slavakurilyak/awesome-ai-agents

清单版权与许可:

MIT License

Copyright (c) 2024 Slava Kurilyak

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.