Skip to content

feat(codex): add Codex integration with generate command#3

Merged
eviweb merged 2 commits into
mainfrom
feat/codex-integration
Mar 30, 2026
Merged

feat(codex): add Codex integration with generate command#3
eviweb merged 2 commits into
mainfrom
feat/codex-integration

Conversation

@eviweb
Copy link
Copy Markdown
Owner

@eviweb eviweb commented Mar 30, 2026

Summary

  • Add agents/codex/AGENTS.md flat entry point with all @rules/ imports inlined
  • Add src/ai_rules/generator.py with resolve_imports() and generate_flat_file()
  • Add ai-rules generate command for agents without native import support (supports_imports = false)
  • Register Codex agent in agents.toml (install_dir = ~/.codex)
  • Add 7 tests in tests/test_generator.py
  • Update README.md, CHANGELOG.md, and TODO.md

Test plan

  • uv run pytest -v → 27 tests pass
  • ai-rules list shows codex entry
  • ai-rules generate codex regenerates agents/codex/AGENTS.md
  • ai-rules generate --dry-run prints expected output without writing files
  • ai-rules install codex creates symlink ~/.codex/AGENTS.md

🤖 Generated with Claude Code

eviweb added 2 commits March 26, 2026 13:41
- Add Shell completion section to rules/cli.md
- Completion (bash/zsh/fish) is mandatory for any CLI tool
- Document --install-completion / --show-completion convention
- Reference typer built-in, argcomplete and bash-completion as
  implementation options depending on the stack

Signed-off-by: Eric Villard <dev@eviweb.fr>
- agents/codex/AGENTS.md: flat entry point with all @rules/ imports inlined
- src/ai_rules/generator.py: resolve_imports() and generate_flat_file()
- cli: add `generate` command targeting agents with supports_imports=false
- agents.toml: register Codex agent (install_dir=~/.codex)
- tests/test_generator.py: 7 tests for the generator module
- docs: update README, CHANGELOG and TODO accordingly

Signed-off-by: Eric Villard <dev@eviweb.fr>
@eviweb eviweb merged commit fc9d2fd into main Mar 30, 2026
3 checks passed
@eviweb eviweb deleted the feat/codex-integration branch March 30, 2026 07:20
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