Skip to content

Add reviewed task-file flow for Codex sleep runs#60

Open
Kirchberg wants to merge 1 commit into
microsoft:mainfrom
Kirchberg:codex/reviewed-task-files-cwd
Open

Add reviewed task-file flow for Codex sleep runs#60
Kirchberg wants to merge 1 commit into
microsoft:mainfrom
Kirchberg:codex/reviewed-task-files-cwd

Conversation

@Kirchberg

@Kirchberg Kirchberg commented Jun 15, 2026

Copy link
Copy Markdown

Summary

PR adds a safer Codex-oriented SkillOpt-Sleep workflow for optimizing repo-scoped skills

  • Adds a reviewed task-file flow so Codex-backed runs can replay explicitly reviewed tasks instead of mining raw archived sessions at run time
  • Adds --target-skill-path support to focus harvesting, mining, staging, and adoption on a specific repo skill.
  • Runs Codex CLI backend calls from the target project directory using codex exec -C <project> and cwd=<project>
  • Adds bounded-run controls and diagnostics, including --max-sessions, --max-tasks, --progress, rejected edit reporting, and no-edits reasons
  • Documents the Codex reviewed-task workflow for bounded and privacy-sensitive runs

Testing

  • git diff --check
  • python3 -m unittest tests.test_sleep_engine -v

@Kirchberg

Copy link
Copy Markdown
Author

The main change is moving from “mine raw archives and run immediately” to a reviewed task-file flow: export candidate tasks, inspect/redact them, mark them as reviewed, and only then run the real backend. It also lets users target a specific repo skill with --target-skill-path, runs Codex from the correct project directory, and adds bounded-run/progress diagnostics so runs are easier to control and debug

In practice, this turns SkillOpt into a scoped proposal generator for Codex skills rather than an opaque run over the full session archive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant