research
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseResearch
研究
Two modes
| Mode | When | What |
|---|---|---|
| Standby executor | | Claim pending rows, research locally, PATCH complete |
| Queue for voice | | |
Park content without a thread: do not invent an inbox. Use save-to-reference (document on the shelf). Voice research pickup requires a real .
conversation_idNot this skill: planning, “help me research X” in chat without / queue. Use normal tools or save-to-reference.
/researchRepo is ambient: Cursor workspace — no GitHub connection.
两种模式
| 模式 | 使用时机 | 操作 |
|---|---|---|
| 待机执行器 | | 认领待处理记录,在本地研究,并执行 PATCH complete |
| 为语音排队 | | 基于尽力确定的项目和最近一次有实质内容的会话,POST 一个 |
在没有会话线程时暂存内容: 不要臆造收件箱。使用 save-to-reference(将文档存放到资料架)。语音研究提取需要真实的 。
conversation_id不适用于此技能: 规划、在聊天中提出“帮我研究 X”但没有 / queue 触发条件。使用常规工具或 save-to-reference。
/researchRepo 是环境上下文: Cursor 工作区——无 GitHub 连接。
Triggers
触发条件
- — start standby executor
/research - — same; explicit keep-on
/research keep on - — create pending task for voice
/research queue <query> - “queue research…”, “park this for the mentor/voice”, “for next voice session” → queue mode (or save-to-reference if no conversation)
- After a task completes, keep on / I know / similar → stay in standby
- ——启动待机执行器
/research - ——同上;显式保持开启
/research keep on - ——为语音创建 pending 任务
/research queue <query> - “queue research…”、“为导师/语音暂存此内容”、“用于下一次语音会话”→ queue 模式(如果没有会话,则使用 save-to-reference)
- 任务完成后,keep on / I know / 类似表达 → 保持待机
API
API
- Base URL:
https://api.originmind.ai - →
GET /api/v1/tasks?status=pending&task_type=research(user-wide standby){ data: [...] } - — create pending (queue mode)
POST /api/v1/tasks - ,
GET /api/v1/projectsGET /api/v1/projects/{projectId}/conversations - — flat array
GET /api/v1/messages/{conversationId} - — optional
GET /api/v1/conversations/{conversationId}/transcript - —
PATCH /api/v1/tasks/{id}|claim|complete(body requiresfail)conversation_id - Auth: or Bearer JWT
X-OriAI-Api-Key
- 基础 URL:
https://api.originmind.ai - →
GET /api/v1/tasks?status=pending&task_type=research(用户级待机范围){ data: [...] } - ——创建 pending(queue 模式)
POST /api/v1/tasks - 、
GET /api/v1/projectsGET /api/v1/projects/{projectId}/conversations - ——扁平数组
GET /api/v1/messages/{conversationId} - ——可选
GET /api/v1/conversations/{conversationId}/transcript - ——
PATCH /api/v1/tasks/{id}|claim|complete(请求体需要fail)conversation_id - 认证:或 Bearer JWT
X-OriAI-Api-Key
Bootstrap
初始化
Once per shell. Walk upward from cwd for then .
.env.env.localpowershell
. ./skills/create/scripts/bootstrap-originmind-env.ps1bash
source ./skills/create/scripts/bootstrap-originmind-env.shUser install:
. "$HOME/.cursor/skills/create/scripts/bootstrap-originmind-env.ps1"MISSING_KEY. ./skills/create/scripts/setup-oauth.ps1.envNever print full keys. PowerShell: never use for project id — use .
$pid$ProjectId每个 shell 仅执行一次。从 cwd 向上查找 ,然后查找 。
.env.env.localpowershell
. ./skills/create/scripts/bootstrap-originmind-env.ps1bash
source ./skills/create/scripts/bootstrap-originmind-env.sh用户安装:
. "$HOME/.cursor/skills/create/scripts/bootstrap-originmind-env.ps1"MISSING_KEY. ./skills/create/scripts/setup-oauth.ps1.env绝不打印完整密钥。PowerShell:切勿将 用作项目 ID——请使用 。
$pid$ProjectIdQueue for voice (Cursor → pending → mentor)
为语音排队(Cursor → pending → mentor)
When the user wants research for the voice mentor (next session / later turn), create a task — do not only answer in Cursor chat.
当用户希望为语音导师进行研究(下次会话/稍后轮次)时,创建任务——不要只在 Cursor 聊天中作答。
Resolve project_id (best effort)
解析 project_id(尽力确定)
- User names or project name →
proj_....GET /api/v1/projects - in env.
ORIGINMIND_CREATIVE_DNA_PROJECT_ID - → score
.originmind/om_project.config.jsonper search-creative-dna; use if ≥80%.projects[] - Else most recently updated project.
- 用户提供 或项目名称 →
proj_...。GET /api/v1/projects - 环境变量 。
ORIGINMIND_CREATIVE_DNA_PROJECT_ID - → 按照 search-creative-dna 对
.originmind/om_project.config.json评分;得分 ≥80% 时使用。projects[] - 否则选择最近更新的项目。
Resolve conversation_id (latest substantive)
解析 conversation_id(最近一次有实质内容的会话)
Same as fetch-recent-messages:
- → sort
GET /projects/{projectId}/conversationsdesc.updated_at - Walk first 5 rows; until
GET /messages/{id}.length > 0 - If all empty → no queue. Tell the user: start a voice session, or park the note with save-to-reference. Do not invent an inbox.
与 fetch-recent-messages 相同:
- → 按
GET /projects/{projectId}/conversations降序排列。updated_at - 遍历前 5 行;执行 ,直至
GET /messages/{id}。length > 0 - 如果全部为空 → 不排队。告知用户:启动语音会话,或使用 save-to-reference 暂存笔记。不要臆造收件箱。
Create pending
创建 pending
json
POST /api/v1/tasks
{
"project_id": "proj_...",
"conversation_id": "{uuid}",
"task_type": "research",
"params": { "query": "precise gap", "depth": "quick" }
}Use only when the user asks for thorough work.
depth: "deep"Echo: task id, project id, conversation id, query. Then either:
- enter standby and execute it now (if user also wants / keep-on), or
/research - stop after queue if they only asked to park for voice (mentor consumes completed results next session — another Cursor standby must still run to complete the row).
/research
If the user already has research results in chat and only wants them on the shelf for later: save-to-reference — not a research task.
json
POST /api/v1/tasks
{
"project_id": "proj_...",
"conversation_id": "{uuid}",
"task_type": "research",
"params": { "query": "precise gap", "depth": "quick" }
}仅当用户要求彻底开展工作时,才使用 。
depth: "deep"回显:任务 ID、项目 ID、会话 ID、查询内容。然后任选其一:
- 进入**待机(standby)**并立即执行任务(如果用户还要求 / keep-on);或
/research - 如果用户只是要求为语音暂存,则排队后停止(导师会在下次会话中读取已完成的结果——仍需另一个 Cursor standby 才能完成该记录)。
/research
如果用户已经在聊天中获得了研究结果,且只想将其暂存到资料架供以后使用:请使用 save-to-reference,而不是创建研究任务。
Standby executor
待机执行器
- Bootstrap.
- Echo: standby, poll 10s, scope = all projects (user-wide pending).
- Enter poll loop. Do not invent a default project for listing.
Optional filter only when user names / / .
task_idconversation_idproject_id- 初始化。
- 回显:待机中,每 10 秒轮询一次,范围 = 所有项目(用户级 pending)。
- 进入轮询循环。列出任务时,不要臆造默认项目。
仅当用户指定 / / 时使用可选筛选器。
task_idconversation_idproject_idPoll loop (every 10s)
轮询循环(每 10 秒)
standby:
idle_since = now
loop:
GET /api/v1/tasks?status=pending&task_type=research
if data[] non-empty:
idle_since = now
for each task → Execute task
echo one-line summary; continue (do not exit)
else:
if now - idle_since >= 3 minutes → exit ("idle timeout")
if user says stop → exit
sleep 10| Exit | When |
|---|---|
| User stop | stop, enough, quit, |
| Idle timeout | 3 minutes with no pending tasks |
| Billing | 402 / 429 |
Keep-on: stay in standby; do not treat as stop.
standby:
idle_since = now
loop:
GET /api/v1/tasks?status=pending&task_type=research
if data[] non-empty:
idle_since = now
for each task → Execute task
echo one-line summary; continue (do not exit)
else:
if now - idle_since >= 3 minutes → exit ("idle timeout")
if user says stop → exit
sleep 10| 退出条件 | 触发时机 |
|---|---|
| 用户停止 | stop、enough、quit、 |
| 空闲超时 | 连续 3 分钟没有 pending 任务 |
| 计费 | 402 / 429 |
保持开启: 保持待机;不要将其视为停止。
Execute task
执行任务
Use and from the task row.
conversation_idproject_id-
Claim:
PATCH— 409 skip.{ "conversation_id", "action": "claim" } -
Context (optional): messages/transcript for that conversation. Read,
params.query.params.depth -
Research — repo-first, then web:
Signal Action Architecture, codebase, implementation in this workspace Repo-first External docs, papers, competitors, public APIs Web (or repo then web) Ambiguous Repo-first; web if repo cannot answer Repo order: semantic search → grep → read → glob (only if path unknown). Do not answer from memory alone.Synthesize for the voice mentor — structure/decisions, path citations, no file dumps. Repouse relative paths; websources[]use URLs.sources[] -
Complete:json
{ "conversation_id": "{task.conversation_id}", "action": "complete", "results": { "content": "markdown or plain report", "sources": [{ "title": "...", "url": "...", "snippet": "..." }] } } -
Fail:
PATCH+"action": "fail"."error" -
Echo task id, project id, conversation id, scope (|
repo|web), one-line summary.repo+web
使用任务记录中的 和 。
conversation_idproject_id-
认领:
PATCH——遇到 409 时跳过。{ "conversation_id", "action": "claim" } -
上下文(可选): 获取该会话的消息/转录。读取、
params.query。params.depth -
研究——repo-first,然后 web:
信号 操作 架构、代码库、当前工作区中的实现 Repo-first 外部文档、论文、竞争对手、公共 API Web(或先 repo 后 web) 含义不明确 Repo-first;如果 repo 无法回答,则使用 web Repo 顺序:semantic search → grep → read → glob(仅当路径未知时)。不要仅凭记忆作答。为语音导师综合整理结果——呈现结构/决策和路径引用,不要转储文件。Repo 的使用相对路径;web 的sources[]使用 URL。sources[] -
完成:json
{ "conversation_id": "{task.conversation_id}", "action": "complete", "results": { "content": "markdown or plain report", "sources": [{ "title": "...", "url": "...", "snippet": "..." }] } } -
失败:
PATCH+"action": "fail"。"error" -
回显任务 ID、项目 ID、会话 ID、范围(|
repo|web)及一行摘要。repo+web
Errors
错误
| Code | Action |
|---|---|
| MISSING_KEY / 401 | Fix API key |
| 404 | Wrong ids |
| 409 | Skip; re-list next poll |
| 402 / 429 | Stop — https://app.originmind.ai/ |
| No conversation | Do not POST; redirect to voice session or save-to-reference |
| 代码 | 操作 |
|---|---|
| MISSING_KEY / 401 | 修复 API key |
| 404 | ID 错误 |
| 409 | 跳过;在下一次轮询时重新列出任务 |
| 402 / 429 | 停止——https://app.originmind.ai/ |
| 无会话 | 不要 POST;引导用户前往语音会话或使用 save-to-reference |
More detail
更多细节
- HTTP examples, stuck tasks, repo output: reference.md
- HTTP 示例、卡住的任务、repo 输出:reference.md