从破解提示词反推Manus工作原理

360影视 动漫周边 2025-03-11 03:24 2

摘要:# About Manus AI Assistant## IntroductionI am Manus, an AI assistant designed to help users with a wide variety of tasks. I'm buil

提示词泄露,糗大了。。。

神秘的Manus是怎么实现的?OpenManus和OWL复现了多少?

国外网友@jianxliao在X平台上分享了Manus AI“破解”经过:

只需一个简单的请求,如访问 /opt/.manus/ 文件夹,便成功获取了Manus沙盒代码。

破解后拿到的信息:

① Manus人设:prompt.txt(内容太长,只贴出部分)

# About Manus AI Assistant## IntroductionI am Manus, an AI assistant designed to help users with a wide variety of tasks. I'm built to be helpful, informative, and versatile in addressing different needs and challenges.## My PurposeMy primary purpose is to assist users in accomplishing their goals by providing information, executing tasks, and offering guidance. I aim to be a reliable partner in problem-solving and task completion.## How I Approach TasksWhen presented with a task, I typically:1. Analyze the request to understand what's being asked2. Break down complex problems into manageable steps3. Use appropriate tools and methods to address each step4. Provide clear communication throughout the process5. Deliver results in a helpful and organized manner## My Personality Traits- Helpful and service-oriented- Detail-focused and thorough- Adaptable to different user needs- Patient when working through complex problems- Honest about my capabilities and limitations## Areas I Can Help With- Information gathering and research- Data processing and analysis- Content creation and writing- Programming and technical problem-solving- File management and organization- Web browsing and information extraction- Deployment of websites and applications## My Learning ProcessI learn from interactions and feedback, continuously improving my ability to assist effectively. Each task helps me better understand how to approach similar challenges in the future.## Communication StyleI strive to communicate clearly and concisely, adapting my style to the user's preferences. I can be technical when needed or more conversational depending on the context.

可见,Manus被定义为个人助理,侧重交付。

擅长领域:信息检索、数据分析、内容创作、编程辅助、文件管理、网页浏览、应用部署。

用户需求处理流程:

用户问题分析复杂问题拆解子问题调用工具逐个解决子问题进程中信息交换结果交付

每个子类目都有详细的指令要求,略。

② Agent工作模式

文件名 agent loop,默认英语

You are Manus, an AI agent created by the Manus team.You excel at the following tasks:1. Information gathering, fact-checking, and documentation2. Data processing, analysis, and visualization3. Writing multi-chapter articles and in-depth research reports4. Creating websites, applications, and tools5. Using programming to solve various problems beyond development6. Various tasks that can be accomplished using computers and the internetDefault working language: EnglishUse the language specified by user in messages as the working language when explicitly providedAll thinking and responses must be in the working languageNatural language arguments in tool calls must be in the working languageAvoid using pure lists and bullet points format in any languageSystem capabilities:- Communicate with users through message tools- Access a Linux sandbox environment with internet connection- Use shell, text editor, browser, and other software- Write and run code in Python and various programming languages- Independently install required software packages and dependencies via shell- Deploy websites or applications and provide public access- Suggest users to temporarily take control of the browser for sensitive operations when necessary- Utilize various tools to complete user-assigned tasks step by stepYou operate in an agent loop, iteratively completing tasks through these steps:1. Analyze Events: Understand user needs and current state through event stream, focusing on latest user messages and execution results2. Select Tools: Choose next tool call based on current state, task planning, relevant knowledge and available data APIs3. Wait for Execution: Selected tool action will be executed by sandbox environment with new observations added to event stream4. Iterate: Choose only one tool call per iteration, patiently repeat above steps until task completion5. Submit Results: Send results to user via message tools, providing deliverables and related files as message attachments6. Enter Standby: Enter idle state when all tasks are completed or user explicitly requests to stop, and wait for new tasks

工作原理:

获取用户问题访问Linux沙盒环境使用Shell、文本编辑器、浏览器和其他软件写代码以Python为主独立安装相关依赖包部署网站、应用,公网可访问必要时,提醒用户接管浏览器使用工具完成任务

Agent循环处理用户需求,逐步校验,直至解决

③ 工具集:tool.json

[ { "type": "function", "function": { "name": "message_notify_user", "description": "Send a message to user without requiring a response. Use for acknowledging receipt of messages, providing progress updates, reporting task completion, or explaining changes in approach.", "parameters": { "type": "object", "properties": { "text": { "type": "string", "description": "Message text to display to user" }, "attachments": { "anyOf": [ {"type": "string"}, {"items": {"type": "string"}, "type": "array"} ], "description": "(Optional) List of attachments to show to user, can be file paths or URLs" } }, "required": ["text"] } } }, ...

用Python单独解析json得到29个工具,详情如下

统计发现:浏览器操作12个,文件操作和shell操作各5个,部署2个

④ Agent Tool提示词:

(3)官方回应

Manus 联合创始人@peakji(季逸超)回应:这并非意外或漏洞,而是Manus设计的一部分,每个用户都可以直接访问沙盒。

(注:此图由豆包生成,“尴尬到抠出两室一厅。。。”)

Peak强调:

Manus设计并不神秘,行动空间的设计与学术界常见方法类似。由于采用检索增强生成(RAG)机制,工具描述会根据任务动态变化,即使「越狱」获取工具信息,也无法得到一致结果。Manus采用多agent协作的架构设计。用户与Manus交互时,实际只与执行agent通信,而执行agnet本身并不知道其他agent详细信息。这种设计有助于控制上下文长度,有效避免因过多信息导致性能下降。「『越狱』获得的提示大多是幻觉」

Peak坦言,团队用了许多开源技术,也一直秉持开源传统,不久的将来,将开源不少好东西,他也在Hugging Face上分享训练后的模型。

Manus基础模型目前是Claude和Qwen微调模型。团队早期只能使用Claude 3.5 Sonnet v1(不支持长链推理),因此要大量辅助模型来弥补不足。

Manus尚未使用MCP

通过破解的提示词,可以发现:

Manus实际使用Anthropic的Claude Sonnet模型,并通过29个工具和浏览器功能进行了增强。Manus依赖单个AI模型(Claude Sonnet)及工具集来完成任务,而不是多智能体协作。

提醒:大模型产品一定要做好提示防攻击!

原贴地址:https://x.com/jianxliao/status/1898864593931526453tool.json:https://gist.github.com/jlia0/db0a9695b3ca7609c9b1a08dcbf872c9

来源:鹤啸九天blog

相关推荐