Skip to content

v2.1.0

Choose a tag to compare

@move-hoon move-hoon released this 13 Jun 16:07
· 1 commit to main since this release

🚀 What's Changed

This release adds first-class Sober launchers for Codex and Claude Code, improves Codex hook logging under sandboxed runs, and keeps the README focused on the new agent launch flow.

🧭 Sober Agent Launchers

  • Codex Launcher Added (lib/cli.js): Added sober codex as a Sober-managed Codex entrypoint.
    • Defaults to codex --sandbox workspace-write --add-dir ~/.sober/logs
    • Respects explicit Codex sandbox flags such as --sandbox read-only
  • Claude Launcher Added (lib/cli.js): Added sober claude as a pass-through Claude Code launcher.
  • Unified YOLO UX (lib/cli.js): Added shared --yolo handling across runtimes.
    • sober codex --yolo → codex --yolo
    • sober claude --yolo → claude --permission-mode bypassPermissions

🪵 Failure Log Hook Reliability

  • Sandbox-Safe Failure Logging (.sober/scripts/hooks/tool-failure-log.sh): Made tool failure logging best-effort so hook execution no longer fails when the log path is not writable.
  • Configurable Failure Log Path: Added SOBER_TOOL_FAILURE_LOG support across:
    • .sober/scripts/hooks/tool-failure-log.sh
    • .sober/scripts/analyze-failures.sh
    • .sober/scripts/hooks/session-start.sh

🧹 CLI Cleanup

  • Cleaner Agent Command Builder (lib/cli.js): Split agent launch handling into smaller parsing/build functions for readability.
  • Hook Reference Inspection Cleanup (lib/cli.js): Consolidated duplicated hook traversal logic into a shared hook reference collector.
  • Safer Symlink Detection (lib/cli.js): Improved Sober-owned symlink detection to handle relative symlink targets correctly.

📚 Documentation

  • README Launch Flow Updated: Updated English and Korean READMEs to recommend launching agents through Sober:
    • sober codex
    • sober claude
    • sober codex --yolo
    • sober claude --yolo
  • YOLO Safety Note Added: Added a concise warning that --yolo bypasses approvals/permissions and should only be used in isolated environments.

🛠️ Full Changelog

  • Added sober codex and sober claude commands in lib/cli.js.
  • Added shared --yolo runtime mapping for Codex and Claude Code.
  • Added Codex workspace-write/log-dir preset for normal sober codex runs.
  • Preserved user-provided Codex sandbox flags instead of overriding them.
  • Made Sober failure logging tolerate unwritable log paths.
  • Added SOBER_TOOL_FAILURE_LOG override support.
  • Refactored CLI launch and hook inspection helpers for readability.
  • Updated README and README.ko launch examples.
  • Bumped package version to 2.1.0 in package.json.