codex-slow-mode 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # codex-slow-mode
2
+
3
+ Installs the Slow Mode skill into Codex.
4
+
5
+ ```shell
6
+ npm install -g codex-slow-mode
7
+ ```
8
+
9
+ The skill lands in `~/.agents/skills/slow-mode` and `~/.codex/skills/slow-mode`. Open Codex and type `/slow-mode`.
package/bin/install.js ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ const fs = require("fs");
3
+ const os = require("os");
4
+ const path = require("path");
5
+
6
+ const home = process.env.HOME || os.homedir();
7
+ const codexHome = process.env.CODEX_HOME || path.join(home, ".codex");
8
+ const skillSrc = path.join(__dirname, "..", "skill");
9
+ const dests = [
10
+ path.join(home, ".agents", "skills", "slow-mode"),
11
+ path.join(codexHome, "skills", "slow-mode"),
12
+ ];
13
+
14
+ for (const dest of dests) {
15
+ fs.mkdirSync(dest, { recursive: true });
16
+ fs.cpSync(skillSrc, dest, { recursive: true });
17
+ console.log("Installed slow-mode skill at " + dest);
18
+ }
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "codex-slow-mode",
3
+ "version": "0.1.0",
4
+ "description": "Install the Slow Mode skill into Codex.",
5
+ "license": "Apache-2.0",
6
+ "bin": {
7
+ "codex-slow-mode": "bin/install.js"
8
+ },
9
+ "files": [
10
+ "bin",
11
+ "skill",
12
+ "README.md"
13
+ ],
14
+ "scripts": {
15
+ "postinstall": "node bin/install.js"
16
+ }
17
+ }
package/skill/SKILL.md ADDED
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: slow-mode
3
+ description: Pace this Codex session so model requests go one at a time and the limit lasts longer. Use when the user types /slow-mode, asks for slow mode, or wants the session paced. Same model, tools, and checks. This session only.
4
+ ---
5
+
6
+ # Slow Mode
7
+
8
+ This session only. Do not write the saved Codex config.
9
+
10
+ When the user types `/slow-mode`, or asks to pace this session:
11
+
12
+ 1. Keep the same model, the same tools, and the same checks.
13
+ 2. Send one model request at a time. Later requests wait. Do not drop them.
14
+ 3. Do not delay shell, tests, compilation, or file reads.
15
+ 4. Do not make a request cheaper, and do not try to get around the limit.
16
+ 5. `/slow-mode off` returns this session to the normal pace.