Discover and explore top open-source AI tools and projects—updated daily.
Jia-EthanSafely manage Codex CLI local instruction files
New!
Top 65.3% on SourcePulse
Summary
This repository provides codex-keysmith, a Python CLI utility designed to safely install local Markdown instruction files for the Codex CLI. It targets users experimenting with custom instructions, offering an automated and secure workflow that prevents accidental data loss and unauthorized modifications. The tool simplifies the process of updating the model_instructions_file configuration and managing associated files.
How It Works
codex-keysmith operates as a single Python script that interacts with the Codex CLI's configuration directory (defaulting to ~/.codex). When executed, it copies a specified local Markdown instruction file into the configuration directory, names it according to user input, and updates the config.toml file to point model_instructions_file to this new file. Crucially, it defaults to a preview-only mode (--dry-run) and requires explicit confirmation (--yes) before making any writes. It also implements automatic backups for both the config.toml and any pre-existing instruction files it overwrites, ensuring a robust rollback capability.
Quick Start & Requirements
python3 codex-instruct.pyhttps://github.com/Jia-Ethan/codex-keysmithHighlighted Details
--yes for writes..bak_timestamp backups for config.toml and overwritten instruction files.--name arguments to prevent path traversal or writing outside the designated .codex directory.--file) and custom output names (--name). Includes a default gpt5.5-unrestricted.md example.Maintenance & Community
The project welcomes feedback from the "LINUX DO Community". No specific details on active maintainers, sponsorships, or formal community channels (like Discord/Slack) are provided in the README.
Licensing & Compatibility
Limitations & Caveats
The tool is currently distributed as a standalone Python script, not a pip-installable package. It lacks dedicated restore or uninstall commands, necessitating manual rollback using generated backups. The configuration management is limited to the global model_instructions_file setting, without support for profile isolation. TOML modifications are basic, targeting only top-level keys.
1 week ago
Inactive
yamadashy