feat(codex): add Codex integration with generate command#3
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agents/codex/AGENTS.mdflat entry point with all@rules/imports inlinedsrc/ai_rules/generator.pywithresolve_imports()andgenerate_flat_file()ai-rules generatecommand for agents without native import support (supports_imports = false)agents.toml(install_dir = ~/.codex)tests/test_generator.pyREADME.md,CHANGELOG.md, andTODO.mdTest plan
uv run pytest -v→ 27 tests passai-rules listshowscodexentryai-rules generate codexregeneratesagents/codex/AGENTS.mdai-rules generate --dry-runprints expected output without writing filesai-rules install codexcreates symlink~/.codex/AGENTS.md🤖 Generated with Claude Code