Read the latest log
codex ask --file .claude/sessions/current.log "Summarise blockers and TODOs"
Use Codex for rapid code generation and refactors while staying aligned with the toolkit agents, prompts, and session logs.
AI-toolkit/). Export helpers:
export CODEX_TOOLKIT=$PWD/AI-toolkit
export CODEX_OUTPUT=$PWD/.codex
mkdir -p "$CODEX_OUTPUT"
codex config set default_workdir $(pwd) so commands use the project root..codex/agents if you prefer shorter paths.codex ask "List $CODEX_TOOLKIT/prompts".codex prompt $CODEX_TOOLKIT/prompts/create_brief.md --input kickoff.md; copy the output into your Claude session.codex agent $CODEX_TOOLKIT/agents/orchestration/tech-lead-orchestrator.md --input feature.md and file the plan in your engineering notes.codex agent $CODEX_TOOLKIT/agents/build-specialists/backend-developer.md or codex agent $CODEX_TOOLKIT/agents/build-specialists/frontend-developer.md to produce starter files, then stage them with git add.npm test, pytest) and paste it into a Makefile or GitHub Action.codex prompt $CODEX_TOOLKIT/prompts/code_review.md --diff old.patch to understand prior changes.codex agent $CODEX_TOOLKIT/agents/quality/code-refactorer.md --input refactor-notes.md to create a safe sequence of commits.npm ls --json or pipdeptree with codex agent $CODEX_TOOLKIT/agents/orchestration/project-analyst.md to surface risky libraries.reliability-commander.md for rollback steps and share with operations through Claude session updates.| Use case | Command | What you get |
|---|---|---|
| Backend feature | codex agent $CODEX_TOOLKIT/agents/frameworks/django/django-expert.md --input feature.md | Models, serializers, URL patterns, migration checklist. |
| API contract design | codex agent $CODEX_TOOLKIT/agents/build-specialists/api-architect.md --input api-spec.yaml | Versioning strategy, error shapes, integration tests. |
| User interface build | codex agent $CODEX_TOOLKIT/agents/frameworks/react/react-component-architect.md --input ui-requirements.md | Component structure, state plan, styling stub. |
| Performance tuning | codex agent $CODEX_TOOLKIT/agents/quality/performance-optimizer.md --input traces.log | Prioritised remediation steps with instrumentation tips. |
| Documentation polish | codex agent $CODEX_TOOLKIT/agents/product-docs/documentation-specialist.md --input notes/*.md | Suggested edits, structure, and missing sections. |
codex agent $CODEX_TOOLKIT/agents/orchestration/tech-lead-orchestrator.md --input epic.md to produce a sequenced plan that names each downstream agent.team-configurator.md with the orchestrator output so responsibilities, escalation paths, and required artefacts are explicit.codex agent $CODEX_TOOLKIT/agents/frameworks/react/react-component-architect.md --input plan-phase2.md).session-closer.md) and reuse that file with codex agent ... for the next specialist.code-reviewer.md, testing-expert.md, and reliability-commander.md; append their findings to /project:session-update.Keep each agent’s output under $CODEX_OUTPUT/chain/ so you can re-run or parallelise specific phases without regenerating the entire plan.
codex prompt $CODEX_TOOLKIT/prompts/create_brief.md --input legacy-notes.md followed by codex prompt $CODEX_TOOLKIT/prompts/plan_feature.md to understand scope and constraints. Paste both outputs into the Claude session.tech-lead-orchestrator.md then team-configurator.md to identify the order: code-archaeologist.md (map code), code-refactorer.md (safe sequence), testing-expert.md (coverage requirements).code-archaeologist.md summarise the module, feed that file to code-refactorer.md, and follow its step-by-step git commands. Execute recommended commands locally and paste logs into /project:session-update.codex prompt $CODEX_TOOLKIT/prompts/code_review.md --diff git.diff and let brutal-critic.md in Claude highlight remaining risks. Finish with reliability-commander.md to ensure compliance.codex prompt $CODEX_TOOLKIT/prompts/write_docs.md and attach the resulting markdown to the session log and repository docs.Keep a timeline of agent outputs (plan, refactor steps, tests, docs) in $CODEX_OUTPUT/timeline.md so reviewers can trace every decision.
codex prompt $CODEX_TOOLKIT/prompts/plan_feature.md --input new-service.md followed by codex agent $CODEX_TOOLKIT/agents/build-specialists/backend-developer.md to scaffold controllers, tests, and Dockerfiles.codex agent $CODEX_TOOLKIT/agents/build-specialists/python-expert.md --input automation.md to generate CLI tools, cron jobs, or migration scripts.devops-cicd-expert.md with codex prompt --input .github/workflows/template.yml to tailor GitHub Actions, GitLab pipelines, or Jenkinsfiles.project-analyst.md output into codex prompt $CODEX_TOOLKIT/prompts/write_docs.md --input architecture-notes.md for ADRs or system overviews.reliability-commander.md list operational steps, then let codex prompt --input runbook.md structure the content for on-call guides.codex prompt --model codex-pro --input openapi.yml to produce SDK snippets and quickstart guides.codex agent $CODEX_TOOLKIT/agents/quality/testing-expert.md --input feature-plan.md can emit targeted pytest, Jest, or rspec suites.codex prompt --input lint-report.txt --text "produce eslint rules" to generate new rule configs.reliability-commander.md with codex prompt --input chaos-plan.md to script fault-injection experiments.SetCODEX_DEFAULT_MODELin your shell to switch between models (e.g.export CODEX_DEFAULT_MODEL=codex-pro) and keep reusable command wrappers in ajustfilefor one-liners.
| Prompt | Command pattern | Maximize impact |
|---|---|---|
@plan_feature.md | codex prompt $CODEX_TOOLKIT/prompts/plan_feature.md --input feature.txt | Include links to design docs + acceptance criteria so Codex suggests precise file edits. |
@code_review.md | git diff main...HEAD > /tmp/review.patch && codex prompt $CODEX_TOOLKIT/prompts/code_review.md --diff /tmp/review.patch | Ask for severity scoring and test ideas; paste results into PR description. |
@write_docs.md | codex prompt $CODEX_TOOLKIT/prompts/write_docs.md --input release-notes.md | Feed in plan + review output for a comprehensive changelog. |
@create_brief.md | codex prompt $CODEX_TOOLKIT/prompts/create_brief.md --input kickoff-notes.md | Reuse the brief in tickets and Claude sessions to align the organisation. |
codex ask --file .claude/sessions/current.log "Summarise blockers and TODOs"
Let Codex draft remediation actions, then paste them into /project:session-update for team visibility.
Use codex prompt $CODEX_TOOLKIT/prompts/code_review.md to highlight outstanding issues and attach to Jira/GitHub.
testing-expert.md, and request devops-cicd-expert.md for deployment pipeline snippets.frontend-designer.md to translate Figma tokens, then tailwind-css-expert.md or vue-state-manager.md to wire state management.ml-data-expert.md for experimentation notebooks, data validation plans, and feature store integration steps.reliability-commander.md and performance-expert.md for postmortem-ready summaries.just or make recipes so engineers can run just codex-plan feature.eslint, flake8, go test, npm run build).$CODEX_OUTPUT/ and inspect with git apply --stat before committing.httpie or curl to gather live responses and feed them into agents for contract verification.sed -n '1,160p', rg excerpt pipelines).--explain or ask “provide reasoning and trade-offs” to ensure you understand the proposed code.