Install Prismfy live web search into AI agents. Add a prismfy-search command, inject managed search rules into AGENTS/CLAUDE/Cursor-style files, choose mode, and make agent web search more consistent across projects.
Copy the command below to clone the repository to your machine.
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.
Try the safe path first:
npx prismfy-wizard scan --root /path/to/project
npx prismfy-wizard setup --dry-run --root /path/to/project
Then install:
npx prismfy-wizard setup --root /path/to/project
Install non-interactively:
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.
If you're landing here from GitHub and want to evaluate it before signing up, start with scan or setup --dry-run.
Most agent integrations stop at tool access.
That still leaves two common failures:
Prismfy Wizard is opinionated about that gap. It installs:
prismfy-search commandminimal, balanced, or strictprismfy-search command backed by Prismfy.--dry-run before any write.
Without --root, setup and scan search beyond the current repo and can discover home-level agent files too.
Default scan scope includes:
~/.claude~/.codex~/.openclaw~/.hermes~/.gemini~/.config/opencode~/.config/amp~/.config~/.factory~/.codeium/windsurf/memories~/Documents/Cline/Rules~/Cline/RulesIf you want to limit discovery to one project, use --root:
npx prismfy-wizard scan --root /path/to/project
npx prismfy-wizard setup --dry-run --root /path/to/project
Selection behavior matters too:
--yes or non-TTY execution, all detected files are selected automaticallyIf 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.
Search install can create or update:
prismfy-search-guide.md next to each selected agent file~/.prismfy/.env~/.prismfy/agent-config.json~/.prismfy/bin/search.sh~/.prismfy/bin/prismfy-searchexport PATH="$HOME/.prismfy/bin:$PATH" in .bashrc, .zshrc, or .profile when neededIf no agent files are found or selected, setup can still install the local helper files under ~/.prismfy/.
Prismfy Wizard writes a managed block like this:
<!-- 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 setup --dry-run output from this repo:
◇ 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)
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:
prismfy-wizard update --mode strict
Direct file targets:
AGENTS.mdAGENT.mdagent.mdCLAUDE.mdCLAUDE.local.mdGEMINI.mdglobal_rules.mdguidelines.md.cursorrules.windsurfrules.github/copilot-instructions.md.junie/agents.md.junie/guidelines.mdRule directories:
.cursor/rules/*.mdc.windsurf/rules/*.md.clinerules/*.md.clinerules/*.txt.continue/rules/*Explicitly not targeted:
.github/instructions/*.instructions.mdSkipped directories include:
.gitnode_modules.nextdistbuildcoveragelogsmediaoutputruntimesessionscachebackupsbackup.backuptemplatesskillscommandsdroids__pycache__Setup installs:
~/.prismfy/.env
~/.prismfy/bin/search.sh
~/.prismfy/bin/prismfy-search
The helper is Bash-based and requires curl and jq.
Examples:
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:
--engine or --engines, the helper uses google--lang, the helper uses en--quota reads quota from GET /v1/user/meCore commands:
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:
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.
--dry-run previews changes before writing.<!-- prismfy-search:start --> and <!-- prismfy-search:end -->.~/.prismfy/.env.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.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:
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.
npx or a global installcurljqhttps://api.prismfy.io for key validation and searchesFor development from source:
jq is missing:
# macOS
brew install jq
# Debian/Ubuntu
sudo apt-get install jq
No agent files found:
prismfy-wizard scan --root /path/to/project
prismfy-wizard setup --dry-run --root /path/to/project
Invalid API key:
prismfy-wizard setup.--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:
prismfy-wizard uninstall
Run from the repo root:
bun run apps/prismfy-wizard/src/index.ts help
Build from the package directory:
cd apps/prismfy-wizard
npm run build
Test the built CLI:
node dist/prismfy-wizard.js help
The published binary name is prismfy-wizard.
Try the safe path first:
npx prismfy-wizard setup --dry-run --root /path/to/project
Then install with a real key:
npx prismfy-wizard setup --root /path/to/project
Prismfy: prismfy.io
Status: status.prismfy.io