sessions
Discover Codex sessions and produce confirmation-gated attach plans for a Devflow Native repo through read-only CLI or MCP probes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Discover Codex sessions and produce confirmation-gated attach plans for a Devflow Native repo through read-only CLI or MCP probes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Initialize or bootstrap a repository with Devflow Native presets by calling devflow init and interpreting the result.
Load Devflow Native execution rules and repeated-mistake memory before running shell, browser, MCP, or test commands.
Run configured Devflow Native verification gates and record pass or fail evidence for a work item.
Inspect, install, verify, or repair native Devflow harness files for Codex, Claude Code, MCP, hooks, skills, gates, and review requirements.
Request, perform, or record Devflow Native review evidence before a task can be claimed done.
Inspect Devflow Native project truth, including repo state, work items, sessions, gates, review requirements, and latest handoff context.
| name | sessions |
| description | Discover Codex sessions and produce confirmation-gated attach plans for a Devflow Native repo through read-only CLI or MCP probes. |
Use this when the maintainer asks to inspect Codex session history, find recent agent sessions, connect session context to the current repo, plan which session belongs to which work item, or understand what an agent did before resuming work.
.devflow state from this skill.%USERPROFILE%\.codex.devflow sessions codex --repo "<repo>" --codex-home "<codexHome>" --json.
If the executable is not installed, use
node packages/cli/src/index.js sessions codex.devflow.sessions_codex with repo and codexHome arguments.workItems, sessions, and
optional warnings, then run
devflow sessions attach-plan --input "<jsonFile>" --json. If the
executable is not installed, use
node packages/cli/src/index.js sessions attach-plan --input "<jsonFile>" --json.devflow.sessions_attach_plan with explicit workItems, sessions, and
optional warnings arguments.devflow sessions attach --input "<jsonFile>" --session "<sessionId>" --confirm --json.
In MCP hosts, use devflow.sessions_attach with confirm: true and the
selected proposal. If the link already exists, treat the existing: true
response as a no-op success.devflow sessions list --repo "<repo>" --json.
Add --agent "<name>" for one agent, --work "<workId>" for one work item,
--since "<iso-date>" for recently observed sessions, and positive-integer
--limit <n> when only the most recent matches are useful. Add
--sort observedAt:asc|observedAt:desc when the order must be explicit
before limiting. In MCP hosts, use
devflow.sessions_list with the same repo argument and optional agent,
work / workItemId, since, sort, and positive-integer limit.
Without explicit sort, keep relying on the default recorded order and
recent-match limit behavior. For maintainer-facing terminal checks, omit
--json to render a short text summary with active filters, session ids,
changed-file counts, limit totals, sort choice, or manual note summaries.
Treat a non-zero warning count as something to inspect in --json output
before relying on the list.devflow sessions note --repo "<repo>" --work "<workId>" --agent manual --summary "<text>" --json.
In MCP hosts, use devflow.sessions_note with work, agent, and summary.Return:
session.attached event only when an approved proposal is confirmed