Skip to content

feat(automations): add OpenAI Codex hook host adapter, doctor checks, shared skill, and docs (#246) - #296

Open
Sanjai-Gopal wants to merge 4 commits into
secfoo-com:mainfrom
Sanjai-Gopal:feat/automations-codex-246
Open

Sanjai-Gopal wants to merge 4 commits into
secfoo-com:mainfrom
Sanjai-Gopal:feat/automations-codex-246

Conversation

@Sanjai-Gopal

Copy link
Copy Markdown
Contributor

Fixes #246

Depends on #291.

Summary

  • Add src/secfoo/automations/hosts/codex.py supporting PreToolUse, PostToolUse (async: true), Stop, SessionStart, and SessionEnd (capped at 3 s max).
  • Update manager.py and cli.py to write .codex/hooks.json / $CODEX_HOME/hooks.json with a trust reminder (never --dangerously-bypass-hook-trust), plus secfoo automations doctor --tool codex checks for disabled [features] and dual hooks.json/config.toml.
  • Add shared .agents/skills/secfoo-fix-findings/SKILL.md, examples/automations/codex-scheduled-baseline.md, docs/CODEX_AUTOMATIONS.md, fixtures, and tests/test_automations/test_codex_automations.py.

Verified

  • pytest tests/test_automations/ tests/test_docs_consistency.py -v (32 passed)
  • ruff check . & bandit -r src/secfoo -c .bandit -ll -q

@Sanjai-Gopal
Sanjai-Gopal requested a review from vsn411 as a code owner December 6, 2026 15:35
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.

Automations for OpenAI Codex: trusted hooks, shared skills, scheduled tasks

1 participant