Research prompts
A prompt per tool that makes the agent verify its own configuration against the API.
A configuration snippet only tells you what to write. These prompts tell you whether it worked.
Paste one into the tool itself, in the repository where you have configured it. The agent will look for the credential, send a real request, try streaming, and report the exact error if anything fails instead of guessing. Both languages say the same thing.
The prompts are written to keep your key out of the transcript: the agent must not print it, and must not write it into a file that git tracks. If an agent ever echoes your key, revoke it and create a new one.
What each prompt checks
- The credential is present, and where it was found. The key is never printed.
- A non-streaming request works, with the exact command and the model's reply.
- Streaming works, meaning events arrive as they are generated rather than in one buffered body.
- Failures are reported precisely, with the status code and the request that produced it, and no more than two fix attempts before it stops and asks.
Tools that need a bridge, and tools with a request-shape or tool-calling trap, get one extra step that checks exactly that. Cursor gets a different prompt on purpose: it cannot use a third-party endpoint, so its prompt audits the repository instead, which is the useful thing an agent can do there.
- OpenAI Codex CLI
- Claude Code
- DeepSeek Harness
- Pi
- Oh my Pi
- GitHub Copilot in VS Code
- Zed
- Continue.dev
- Cline
- Roo Code
- Aider
- opencode
- Goose
- Crush
- Cursor
- OpenAI SDKs and TypeScript frameworks
- LiteLLM
OpenAI Codex CLI
Paste this into OpenAI Codex CLI and let it check its own setup.
You are working in a repository where I have configured the OpenAI Codex CLI to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.Claude Code
Paste this into Claude Code and let it check its own setup.
You are working in a repository where I have configured Claude Code to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.5. The bridge is the part that usually breaks. Confirm which protocol Claude Code speaks to it, and whether keep-alive lines from the API reach the client during a long read. If the first token takes more than a minute to arrive, the bridge is buffering and the client will abort the stream.DeepSeek Harness
Paste this into DeepSeek Harness and let it check its own setup.
You are working in a repository where I have configured DeepSeek Harness to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.Pi
Paste this into Pi and let it check its own setup.
You are working in a repository where I have configured Pi to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.Oh my Pi
Paste this into Oh my Pi and let it check its own setup.
You are working in a repository where I have configured Oh my Pi to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.GitHub Copilot in VS Code
Paste this into GitHub Copilot in VS Code and let it check its own setup.
You are working in a repository where I have configured GitHub Copilot in VS Code to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.5. This client can discover models from the API. Confirm whether it listed cog-fast and cog-pro by itself, or whether you had to declare them.Zed
Paste this into Zed and let it check its own setup.
You are working in a repository where I have configured Zed to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.5. Zed hides the request shape behind one setting. Confirm whether the API is receiving max_tokens or max_completion_tokens, and set capabilities.max_tokens_parameter accordingly.Continue.dev
Paste this into Continue.dev and let it check its own setup.
You are working in a repository where I have configured Continue.dev to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.5. Confirm that agent mode works, which requires the tool_use capability to be declared explicitly. If tools are not offered to the model, describe what the client sent.Cline
Paste this into Cline and let it check its own setup.
You are working in a repository where I have configured Cline to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.5. Use the extension's own Verify button first and tell me what it reported.Roo Code
Paste this into Roo Code and let it check its own setup.
You are working in a repository where I have configured Roo Code to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.5. This extension uses native tool calling only, with no fallback. Ask it to use one tool and report whether the tool call arrived correctly formed. This is the check that matters for this client.Aider
Paste this into Aider and let it check its own setup.
You are working in a repository where I have configured Aider to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.5. Confirm that the model string carries the openai/ prefix, and run one small edit task rather than only a chat request, because the edit path is where this client differs.opencode
Paste this into opencode and let it check its own setup.
You are working in a repository where I have configured opencode to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.5. Confirm which AI SDK package the provider uses. It must be @ai-sdk/openai-compatible for chat completions; @ai-sdk/openai targets a different endpoint and will fail here.Goose
Paste this into Goose and let it check its own setup.
You are working in a repository where I have configured Goose to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.5. This client reads OPENAI_HOST and OPENAI_BASE_PATH rather than the variable name other tools use. Confirm which one it actually read, and remember that it ignores keys placed in config.yaml.Crush
Paste this into Crush and let it check its own setup.
You are working in a repository where I have configured Crush to use Cognitivers as its model provider.The API is OpenAI-compatible chat completions.- Base URL: https://api.cognitivers.com/v1- Streaming base URL, same API for very large inputs: https://stream.cognitivers.com/v1- Models: cog-fast (agents, pipelines, volume), cog-pro (one hard task), cog-embed (retrieval)- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these four things and then stop.1. Check that the credential is present in my environment and tell me the name of the variable you found it in. Do not print the key itself, not even partially.2. Send one non-streaming chat completion asking for a single short sentence, using cog-fast. Show me the exact command or code you used and the model's reply.3. Send the same request with streaming enabled and confirm you received server-sent events, not one buffered body.4. If any step fails, tell me the exact error, the status code and the request that produced it, then stop. Do not try more than two fixes, and do not change any configuration file without showing me the diff first.Rules: never write the key into a file that is tracked by git, never print it in full, and if the request works, say so in one line instead of writing a report.5. Confirm the provider type is openai-compat and not openai, and tell me whether the model discovery ran against the API or whether you registered the models by hand.Cursor
Paste this into Cursor and let it check its own setup.
Cursor cannot use a third-party endpoint: its own documentation lists five providers that accept your own key and documents no base URL field. Do not spend time trying to make it work.Two things I do want from you, in the repository I am working in.1. Search the code for every place this project calls an OpenAI-compatible API (the OpenAI SDKs, the Vercel AI SDK, LangChain, LiteLLM, fetch against a /v1 path) and list the file and line of each one. I want to know what would have to change if a tool did support it.2. Check whether any of those call sites is Cursor-specific, for example an .cursor/rules file or a Cursor model name in a config, and tell me what it pins.Do not change any file. Report what you found, and if you find nothing, say that in one line.OpenAI SDKs and TypeScript frameworks
Paste this into OpenAI SDKs and TypeScript frameworks and let it check its own setup.
You are working in a repository that calls the Cognitivers API, an OpenAI-compatible chat completions endpoint.- Base URL: https://api.cognitivers.com/v1- Models: cog-fast, cog-pro, cog-embed- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these five things and then stop.1. Find every place in this repository that constructs an API client for a hosted model, and tell me the file and the argument name each one uses for the base URL. I want to know whether they use base_url or baseURL, because one letter of case is the usual mistake.2. Confirm the credential is read from the environment, and name the variable. Do not print the key.3. Send one non-streaming request to cog-fast from the language this repository uses and show me the reply.4. Send the same request with streaming enabled and confirm you received server-sent events. If this repository uses the Vercel AI SDK, check whether the call goes through .chat(); the default factory targets the Responses API and would fail here.5. If any step fails, give me the exact error, the status code and the request that produced it, and stop. Do not change any file without showing me the diff first.If everything works, say so in one line.LiteLLM
Paste this into LiteLLM and let it check its own setup.
You are working in a repository where a LiteLLM proxy is configured in front of Cognitivers.- Upstream base URL: https://api.cognitivers.com/v1- Model strings as LiteLLM needs them: openai/cog-fast, openai/cog-pro, openai/cog-embed- Authentication: an API key in the Authorization header as "Bearer sk-cog-..."Do these five things and then stop.1. Validate the config file and start the proxy. Show me the exact command.2. Send one chat request through the proxy to cog-fast and show the reply.3. Send one request with streaming enabled and confirm the events pass through the proxy without being buffered.4. If the proxy is also serving Claude Code, confirm which inbound protocol it accepts and send one request through that path too.5. If any step fails, give me the exact error, the status code and the request that produced it, and stop. Do not print the key in full and do not write it into a tracked file.If everything works, say so in one line.