mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-21 08:15:23 -04:00
[GH-ISSUE #47] [Question]: How to Specify the Search Engine Used by the AI Agent? #25
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @VictoryLN on GitHub (Jun 26, 2025).
Original GitHub issue: https://github.com/vxcontrol/pentagi/issues/47
Originally assigned to: @asdek on GitHub.
Background
I am using the Pentagi system and have encountered issues regarding search engine selection. My network environment requires accessing the internet via a proxy, but DuckDuckGo always fail to return valid results.
Actions I Have Tried
I explicitly asked the AI in my input to use Google as the search engine. However, during actual execution, the AI still called DuckDuckGo for searches. Due to network issues, DuckDuckGo always returns a 202 status code and does not provide valid results. After running multiple tasks, I found that the

searchlogstable in thepentagidbdatabase remains empty, indicating that no search operations were successfully executed.Here's a specific error log showing the DuckDuckGo search failure:
My Questions
Current Workaround Consideration
If modifying the template is the only solution, I understand that I would need to:
backend/pkg/templates/prompts/searcher.tmpldocker-compose build pentagidocker-compose up -dHowever, I'm hoping there might be a more user-friendly configuration approach that doesn't require rebuilding.
Thank you for building such a great project!
@asdek commented on GitHub (Jun 26, 2025):
Hey @VictoryLN
Thanks for the detailed description - it's immediately clear what the issue is 😉
Almost all tools are enabled for AI agents by adding API keys to environment variables and disabled by removing those variables. The exception is DuckDuckGo since it doesn't require an API key and is always enabled by default.
In the latest commit, I added the ability to explicitly disable this tool via the
DUCKDUCKGO_ENABLEDenv variable. You can set it tofalsein your.envfile to disable this function's logic, but don't forget to add this line to your docker-compose.yml:so this value gets passed to the pentagi container. You can check out the changes here.
Please run
docker compose pullto get the new pentagi image.Speaking generally, there's currently no way to prohibit the use of specific enabled functions, but as a workaround, you can explicitly forbid using a function by name in your task prompt from this list.
Since almost all agents receive your initial task at practically every step, this information should be used by them as a strict rule. However, due to long context length, they might not follow this rule during execution.
That's why we're currently working on a settings page that will appear in the next update, where you'll be able to manage prompts and change them directly from the UI, enable/disable functions, test them, manage accumulated knowledge, edit or delete saved guides.
If you have more suggestions for improvements - we're always open to such ideas!
@VictoryLN commented on GitHub (Jun 28, 2025):
Thank you for the quick and detailed response!
I've successfully implemented the solution you provided:
DUCKDUCKGO_ENABLED=falseto my.envfile.The solution works perfectly! The DuckDuckGo search function is now properly disabled as intended.
The settings page for managing prompts and functions directly from the UI sounds very promising. I'm currently not familiar with how to customize the local penetration testing knowledge base, but I'm really looking forward to the Settings page that will make this much more accessible.
@asdek commented on GitHub (Jun 28, 2025):
@VictoryLN, great to hear the issue is resolved! 😉
Regarding the knowledge base - currently, agents prepare instructions for themselves during their work, meaning the knowledge base is populated by the agents themselves with information they gather from search engines and during task execution. Some data serves as long-term memory for specific flows, while other parts can be used across different flows. Right now on the Vector Store tab it looks confusing, so we want to provide an interface where you can first browse and edit this knowledge base, and later build it yourself or transfer it between installations, or load from global servers and share it if desired.
At the moment, this includes pentesting guides, software installation instructions, software troubleshooting solutions, source code written by the AI agent
coder, and results from comprehensive information searches from search engines.Feel free to join our community to stay updated and have more direct communication on topics that interest you: Discord and Telegram