@thehammerrr/gpt
v0.1.4
Published
CLI and library to install Codex command prompts for Hammer on Windows
Readme
This project was inspired by the library @tupe12334/claude.
@hammer/gpt
Install and manage Codex CLI slash command prompts for Hammer. The library copies bundled prompt markdowns into the location
expected by Codex on Windows: %USERPROFILE%\\.codex\\prompts.
Installation
npm install @hammer/gpt --save-devYou can also install the CLI globally if you prefer to run it outside a project context:
npm install -g @hammer/gptUsage
CLI
Run the sync command to install the prompts Codex expects on Windows. On other platforms the command is a no-op.
npx gpt sync
# or, if installed globally
gpt sync
# hammer-gpt is available as an alias
hammer-gpt syncProgrammatic
import { loadAllCommands } from "@hammer/gpt";
// Generates the command markdown in %USERPROFILE%\.codex\prompts when running on Windows.
const commands = loadAllCommands();Adding a new command
- Create a new file in
src/commands/exporting aCodexCommand. - Add the command export to
allCommandsinsrc/commands/index.ts. - Rebuild and run
gpt syncto update the prompts directory.
Development
- Build:
npm run build - Test:
npm test
