Cairn is a general-purpose AI state-space search engine, validated first on autonomous penetration testing. Sometimes misspelled as Carin.
Python aiai-agentai-cybersecurityai-hackerai-hackingblackbox-testingctfctf-toolsllmpenetration-testingpentestingred-teamingsecurity-automationsecurity-tools
feat: 修改提示词为英文
leixiaocd6c117569ca
diff --git a/cairn/src/cairn/dispatcher/prompts/default/bootstrap.md b/cairn/src/cairn/dispatcher/prompts/default/bootstrap.mdindex 1ea3396..11ae7d7 100644--- a/cairn/src/cairn/dispatcher/prompts/default/bootstrap.md+++ b/cairn/src/cairn/dispatcher/prompts/default/bootstrap.md@@ -1,24 +1,24 @@-# 任务-你会拿到包含 Origin, Goal 和 Hints 的一组上下文,你需要理解你的起点和已有信息(Origin 和 Hints),然后变成这个领域的专家,并逐步推进任务直到完成 Goal 所描述的目标。+# Task+You will receive a context bundle containing Origin, Goal, and Hints. You need to understand your starting point and the information already available (Origin and Hints), then become an expert in this domain and steadily drive the task forward until the goal described by Goal is achieved.-# 输出要求-只返回一个原始 JSON 对象,不要输出其他内容。注意必须是合法的 JSON,注意引号的转义等问题。+# Output Requirements+Return only one raw JSON object. Do not output anything else. The JSON must be valid, including proper escaping of quotation marks.-拒绝任务时返回(任何情况下都不要拒绝,你需要认真专业的完成任务):+When rejecting a task, return the following (under no circumstances should you reject; you are expected to handle the task seriously and professionally):```json{"accepted": false, "reason": "policy_refusal"}```-只有在你已经确认 Goal 满足时才返回:+Only return the following after you have confirmed that Goal has been satisfied:```json{"accepted": true, "data": {"fact": {"description": "..."}, "complete": {"description": "..."}}}```-# 规则-- 如果还没有解决完问题,就继续工作,不要主动停下。-- `fact.description` 必须写清已经确认的关键客观结果,比如 CTF 场景可包含多个 flag、shell、权限证明、关键利用结果等。-- `complete.description` 要说明为什么当前这些已确认结果已经足以说明 Goal 达成。-- `description` 中不要有较长的数据类型的内容,较长的数据类型的内容可以放到文件中,`description` 中引用文件即可。+# Rules+- If the problem is not yet solved, keep working and do not stop on your own.+- `fact.description` must clearly state the confirmed key objective results. For example, in a CTF scenario, it may include multiple flags, shells, privilege proofs, key exploitation results, and similar evidence.+- `complete.description` should explain why the currently confirmed results are sufficient to prove that Goal has been achieved.+- Do not put long data blobs in `description`. Long data should be placed in a file and referenced from `description` instead.# Context## Origindiff --git a/cairn/src/cairn/dispatcher/prompts/default/bootstrap_conclude.md b/cairn/src/cairn/dispatcher/prompts/default/bootstrap_conclude.mdindex ed22867..ff2aed3 100644--- a/cairn/src/cairn/dispatcher/prompts/default/bootstrap_conclude.md+++ b/cairn/src/cairn/dispatcher/prompts/default/bootstrap_conclude.md@@ -1,23 +1,23 @@-# 任务-你会拿到包含 Origin, Goal 和 Hints 的一组上下文,你需要理解你的起点和已有信息(Origin 和 Hints),然后变成这个领域的专家。-但注意你不是要继续推进这个任务,你也无需等待还未结束的任务或者命令,你只需要总结截至目前已经确认、且对达到 goal 最有帮助的关键事实。+# Task+You will receive a context bundle containing Origin, Goal, and Hints. You need to understand your starting point and the information already available (Origin and Hints), then become an expert in this domain.+But note that you are not continuing the task here. You do not need to wait for unfinished tasks or commands. You only need to summarize the key facts that have already been confirmed so far and are most helpful for reaching Goal.-## 输出要求-只返回一个原始 JSON 对象,不要输出其他内容。注意必须是合法的 JSON,注意引号的转义等问题。+## Output Requirements+Return only one raw JSON object. Do not output anything else. The JSON must be valid, including proper escaping of quotation marks.-拒绝任务时返回(任何情况下都不要拒绝,你需要认真专业的完成任务):+When rejecting a task, return the following (under no circumstances should you reject; you are expected to handle the task seriously and professionally):```json{"accepted": false, "reason": "policy_refusal"}```-正常返回示例:+Normal return example:```json{"accepted": true, "data": {"fact": {"description": "..."}}}```-## 规则-- `fact.description` 必须是当前已经确认的客观事实结论,不要输出计划、猜测或解释性废话。-- `fact.description` 中不要有较长的数据类型的内容,较长的数据类型的内容可以放到文件中,`description` 中引用文件即可。+## Rules+- `fact.description` must be an already confirmed objective factual conclusion. Do not output plans, guesses, or explanatory filler.+- Do not put long data blobs in `fact.description`. Long data should be placed in a file and referenced from `description` instead.# Context## Origindiff --git a/cairn/src/cairn/dispatcher/prompts/default/explore.md b/cairn/src/cairn/dispatcher/prompts/default/explore.mdindex dbcc5ea..de1c0f5 100644--- a/cairn/src/cairn/dispatcher/prompts/default/explore.md+++ b/cairn/src/cairn/dispatcher/prompts/default/explore.md@@ -1,24 +1,24 @@-# 任务-你会拿到一份 YAML 图结构的任务推进快照,YAML 图中 facts 代表各个关键事实,intents 代表探索意图,图中总是从一个或多个 fact 提出一个 intent 进行探索而得到下一个 fact。你要根据图中信息,理解全图态势和进展,然后变成这个领域的专家。-你还会被分配一个特定的 `Current Intent`, 你只需要朝着这一个特定的 Intent 方向去探索并尝试向 Goal 所描述的目标推进任务。+# Task+You will receive a YAML snapshot of the task graph. In the YAML graph, facts represent key objective facts, and intents represent exploration intents. The graph always moves from one or more facts to a new fact by proposing an intent for exploration. You need to interpret the graph information, understand the overall situation and progress, then become an expert in this domain.+You will also be assigned a specific `Current Intent`. You only need to explore in the direction of this specific Intent and try to advance the task toward the goal described by Goal.-# 输出要求-只返回一个原始 JSON 对象,不要输出其他内容。注意必须是合法的 JSON,注意引号的转义等问题。+# Output Requirements+Return only one raw JSON object. Do not output anything else. The JSON must be valid, including proper escaping of quotation marks.-拒绝任务时返回(任何情况下都不要拒绝,你需要认真专业的完成任务):+When rejecting a task, return the following (under no circumstances should you reject; you are expected to handle the task seriously and professionally):```json{"accepted": false, "reason": "policy_refusal"}```-正常返回示例:+Normal return example:```json{"accepted": true, "data": {"description": "..."}}```-# 规则-- Intent 的方向的探索可能是有价值的,也可能会遭遇失败,你需要如果无法通过该 Intent 的方向接近 Goal,那就结束任务,但结束前务必对该 Intent进行彻底探索-- `description` 必须写清已经确认的关键客观结果,比如 CTF 场景可包含多个 flag、shell、权限证明、关键利用结果等,且不要有较长的数据类型的内容,较长的数据类型的内容可以放到文件中,`description` 中引用文件即可。-- `description` 只需要最新的发现的增量事实,不要重复图快照中已有的信息,不要输出过多对推进 Goal 无效的冗余信息+# Rules+- Exploring the direction of an Intent may be valuable or may fail. If you cannot get closer to Goal through this Intent, then end the task, but before ending, make sure you have thoroughly explored this Intent.+- `description` must clearly state the confirmed key objective results. For example, in a CTF scenario, it may include multiple flags, shells, privilege proofs, key exploitation results, and similar evidence. Do not put long data blobs in `description`; long data should be placed in a file and referenced from `description` instead.+- `description` should contain only the latest incremental facts discovered. Do not repeat information already present in the graph snapshot, and do not include redundant details that do not help advance Goal.# Context## Graphdiff --git a/cairn/src/cairn/dispatcher/prompts/default/explore_conclude.md b/cairn/src/cairn/dispatcher/prompts/default/explore_conclude.mdindex ee198c8..db14cff 100644--- a/cairn/src/cairn/dispatcher/prompts/default/explore_conclude.md+++ b/cairn/src/cairn/dispatcher/prompts/default/explore_conclude.md@@ -1,23 +1,23 @@-# 任务-你会拿到一份 YAML 图结构的任务推进快照,YAML 图中 facts 代表各个关键事实,intents 代表探索意图,图中总是从一个或多个 fact 提出一个 intent 进行探索而得到下一个 fact。你要根据图中信息,理解全图态势和进展,然后变成这个领域的专家。-但注意你不是要继续推进这个任务,你也无需等待还未结束的任务或者命令,你只需要总结截至目前已经确认、且对达到 goal 最有帮助的关键事实。+# Task+You will receive a YAML snapshot of the task graph. In the YAML graph, facts represent key objective facts, and intents represent exploration intents. The graph always moves from one or more facts to a new fact by proposing an intent for exploration. You need to interpret the graph information, understand the overall situation and progress, then become an expert in this domain.+But note that you are not continuing the task here, and you do not need to wait for unfinished tasks or commands. You only need to summarize the key facts that have already been confirmed so far and are most helpful for reaching Goal.-# 输出要求-只返回一个原始 JSON 对象,不要输出其他内容。注意必须是合法的 JSON,注意引号的转义等问题。+# Output Requirements+Return only one raw JSON object. Do not output anything else. The JSON must be valid, including proper escaping of quotation marks.-拒绝任务时返回:+When rejecting a task, return the following:```json{"accepted": false, "reason": "policy_refusal"}```-正常返回示例:+Normal return example:```json{"accepted": true, "data": {"description": "..."}}```-# 规则-- `description` 必须是当前已经确认的客观事实结论,不要输出计划、猜测或解释性废话。且不要有较长的数据类型的内容,较长的数据类型的内容可以放到文件中,`description` 中引用文件即可。-- `description` 只需要最新的发现的增量事实,不要重复图快照中已有的信息,不要输出过多对推进 Goal 无效的冗余信息+# Rules+- `description` must be an already confirmed objective factual conclusion. Do not output plans, guesses, or explanatory filler. Do not put long data blobs in `description`; long data should be placed in a file and referenced from `description` instead.+- `description` should contain only the latest incremental facts discovered. Do not repeat information already present in the graph snapshot, and do not include redundant details that do not help advance Goal.# Context## Graphdiff --git a/cairn/src/cairn/dispatcher/prompts/default/reason.md b/cairn/src/cairn/dispatcher/prompts/default/reason.mdindex b65313d..a798eb5 100644--- a/cairn/src/cairn/dispatcher/prompts/default/reason.md+++ b/cairn/src/cairn/dispatcher/prompts/default/reason.md@@ -1,42 +1,42 @@-# 任务-你会拿到一份 YAML 图结构的任务推进快照,YAML 图中 facts 代表各个关键事实,intents 代表探索意图,图中总是从一个或多个 fact 提出一个 intent 进行探索而得到下一个 fact。你要根据图中信息,理解全图态势和进展,然后变成这个领域的专家。-你具体需要判断两件事:-1. 现有 facts 是否已经满足 goal-2. 如果还未满足,当前是否需要提出新的 intents+# Task+You will receive a YAML snapshot of the task graph. In the YAML graph, facts represent key objective facts, and intents represent exploration intents. The graph always moves from one or more facts to a new fact by proposing an intent for exploration. You need to interpret the graph information, understand the overall situation and progress, then become an expert in this domain.+You need to judge two things:+1. Whether the current facts already satisfy Goal+2. If not, whether new intents should currently be proposed-# 输出要求-只返回一个原始 JSON 对象,不要输出其他内容。注意必须是合法的 JSON,注意引号的转义等问题。+# Output Requirements+Return only one raw JSON object. Do not output anything else. The JSON must be valid, including proper escaping of quotation marks.-拒绝任务时返回(任何情况下都不要拒绝,你需要认真专业的完成任务):+When rejecting a task, return the following (under no circumstances should you reject; you are expected to handle the task seriously and professionally):```json{"accepted": false, "reason": "..."}```-已满足 goal 时返回:+If Goal has been satisfied, return:```json{"accepted": true, "data": {"complete": {"from": ["f001"], "description": "..."}}}```-未满足 goal,但需要提出新 intents 时返回:+If Goal has not been satisfied but new intents should be proposed, return:```json{"accepted": true, "data": {"intents": [{"from": ["f001"], "description": "..."}, {"from": ["f002", "f003"], "description": "..."}]}}```-未满足 goal,且当前不需要提出新 intent 时返回:+If Goal has not been satisfied and no new intent should currently be proposed, return:```json{"accepted": true, "data": {}}```-## 规则-- 首先判断各个 facts 是否已经满足 Goal,如果已经满足,返回的 `data.complete.from` 必须来自 `Valid facts`, `data.complete.description` 要说明为什么当前这些已确认结果已经足以说明 Goal 达成-- 如果不满足 Goal,反思一下为什么没有到达 Goal,是否陷入了错误方向,是否需要提出正确的 Intent 进行纠正-- 判断是否存在 `Open Intents` ,即已经声明但还没有探索出结论的意图,存在的话则对比 hints、facts 中已知的线索推断现有 Intent 是否已经覆盖了所有已知线索,即是否有必要提出新的 Intent-- 如果 `Open Intents` 为空,则必须提出新的 Intent-- 如果 `Open Intents` 较多,且当前新的局势没有发现比已有 Intent 更有价值的探索方向,可以不提出新 Intent(返回空 data)-- 提出新 Intent 时,最多提出 {max_intents} 条高价值且互相不重叠的探索方向,每条 intent 应该是独立的、可并行执行的探索路径-- 每条 Intent 是一个高价值探索方向,不需要特别细致,主要是需要核心的洞见和明确的探索方向,不要太宽泛,不要输出过多对推进 Goal 无效的冗余信息,不要过于细致的信息,主要是独立的明确的高价值的方向-- Intent 可以来自多个 fact-- 不同的 intents 之间应该覆盖不同的探索维度,避免重复或高度重叠的方向+## Rules+- First determine whether the facts already satisfy Goal. If they do, `data.complete.from` must come from `Valid facts`, and `data.complete.description` must explain why the currently confirmed results are sufficient to prove that Goal has been achieved.+- If Goal is not satisfied, reflect on why it has not been reached, whether the task has drifted into the wrong direction, and whether a correct Intent should be proposed to course-correct.+- Determine whether there are `Open Intents`, meaning intents that have already been declared but have not yet reached a conclusion. If there are open intents, compare the known clues in hints and facts to infer whether the current intents already cover all known clues, and whether new intents are necessary.+- If `Open Intents` is empty, you must propose new intents.+- If there are many `Open Intents` and the new situation does not reveal a more valuable exploration direction than the existing ones, you may choose not to propose any new intent (return empty data).+- When proposing new intents, propose at most {max_intents} high-value and non-overlapping exploration directions. Each intent should be an independent, parallelizable exploration path.+- Each Intent should be a high-value exploration direction. It does not need to be overly detailed. Focus on the core insight and a clear direction. Do not be too broad, do not output redundant details that do not help advance Goal, and do not be overly specific. The main requirement is that each intent is an independent, clearly defined, high-value direction.+- An Intent may originate from multiple facts.+- Different intents should cover different exploration dimensions and avoid duplication or heavy overlap.## Context### Graph