codex-multi-auth 0.1.0 → 0.1.2
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/LICENSE +1 -1
- package/README.md +223 -98
- package/assets/readme-hero.svg +31 -31
- package/config/README.md +30 -87
- package/config/{opencode-legacy.json → codex-legacy.json} +571 -571
- package/config/{opencode-modern.json → codex-modern.json} +241 -239
- package/config/{minimal-opencode.json → minimal-codex.json} +15 -13
- package/config/schema/config.schema.json +21 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -20
- package/dist/index.js.map +1 -1
- package/dist/lib/accounts.d.ts +1 -1
- package/dist/lib/accounts.d.ts.map +1 -1
- package/dist/lib/auth/auth.d.ts +1 -1
- package/dist/lib/auth/auth.js +1 -1
- package/dist/lib/cli.d.ts +1 -1
- package/dist/lib/cli.js +4 -4
- package/dist/lib/cli.js.map +1 -1
- package/dist/lib/codex-manager/settings-hub.d.ts +6 -0
- package/dist/lib/codex-manager/settings-hub.d.ts.map +1 -0
- package/dist/lib/codex-manager/settings-hub.js +1786 -0
- package/dist/lib/codex-manager/settings-hub.js.map +1 -0
- package/dist/lib/codex-manager.d.ts.map +1 -1
- package/dist/lib/codex-manager.js +5 -1637
- package/dist/lib/codex-manager.js.map +1 -1
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +20 -11
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/context-overflow.d.ts +1 -1
- package/dist/lib/context-overflow.js +11 -11
- package/dist/lib/oauth-success.html +1 -1
- package/dist/lib/prompts/codex-host-bridge.d.ts +19 -0
- package/dist/lib/prompts/codex-host-bridge.d.ts.map +1 -0
- package/dist/lib/prompts/{codex-opencode-bridge.js → codex-host-bridge.js} +143 -143
- package/dist/lib/prompts/codex-host-bridge.js.map +1 -0
- package/dist/lib/prompts/codex.d.ts +2 -2
- package/dist/lib/prompts/codex.d.ts.map +1 -1
- package/dist/lib/prompts/codex.js +3 -3
- package/dist/lib/prompts/host-codex-prompt.d.ts +25 -0
- package/dist/lib/prompts/host-codex-prompt.d.ts.map +1 -0
- package/dist/lib/prompts/{opencode-codex.js → host-codex-prompt.js} +136 -47
- package/dist/lib/prompts/host-codex-prompt.js.map +1 -0
- package/dist/lib/recovery/storage.d.ts +2 -2
- package/dist/lib/recovery/storage.js +2 -2
- package/dist/lib/recovery/types.d.ts +1 -1
- package/dist/lib/recovery/types.js +1 -1
- package/dist/lib/recovery.d.ts +1 -1
- package/dist/lib/recovery.d.ts.map +1 -1
- package/dist/lib/recovery.js +1 -4
- package/dist/lib/recovery.js.map +1 -1
- package/dist/lib/request/fetch-helpers.d.ts +3 -3
- package/dist/lib/request/fetch-helpers.d.ts.map +1 -1
- package/dist/lib/request/fetch-helpers.js +6 -2
- package/dist/lib/request/fetch-helpers.js.map +1 -1
- package/dist/lib/request/helpers/input-utils.d.ts +2 -2
- package/dist/lib/request/helpers/input-utils.d.ts.map +1 -1
- package/dist/lib/request/helpers/input-utils.js +14 -14
- package/dist/lib/request/helpers/input-utils.js.map +1 -1
- package/dist/lib/request/helpers/model-map.d.ts +2 -2
- package/dist/lib/request/helpers/model-map.js +2 -2
- package/dist/lib/request/request-transformer.d.ts +12 -12
- package/dist/lib/request/request-transformer.d.ts.map +1 -1
- package/dist/lib/request/request-transformer.js +23 -24
- package/dist/lib/request/request-transformer.js.map +1 -1
- package/dist/lib/runtime-paths.d.ts +4 -4
- package/dist/lib/runtime-paths.d.ts.map +1 -1
- package/dist/lib/runtime-paths.js +57 -13
- package/dist/lib/runtime-paths.js.map +1 -1
- package/dist/lib/storage/paths.d.ts +11 -0
- package/dist/lib/storage/paths.d.ts.map +1 -1
- package/dist/lib/storage/paths.js +167 -5
- package/dist/lib/storage/paths.js.map +1 -1
- package/dist/lib/storage.d.ts +1 -0
- package/dist/lib/storage.d.ts.map +1 -1
- package/dist/lib/storage.js +290 -81
- package/dist/lib/storage.js.map +1 -1
- package/dist/lib/tools/hashline-tools.d.ts +1 -1
- package/dist/lib/tools/hashline-tools.d.ts.map +1 -1
- package/dist/lib/tools/hashline-tools.js +1 -1
- package/dist/lib/tools/hashline-tools.js.map +1 -1
- package/dist/lib/types.d.ts +1 -1
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/ui/copy.d.ts +6 -6
- package/dist/lib/ui/copy.js +6 -6
- package/dist/lib/ui/copy.js.map +1 -1
- package/node_modules/@codex-ai/plugin/dist/index.d.ts +2 -0
- package/node_modules/@codex-ai/plugin/dist/index.js +2 -0
- package/node_modules/@codex-ai/plugin/dist/tool.d.ts +42 -0
- package/node_modules/@codex-ai/plugin/dist/tool.js +29 -0
- package/node_modules/@codex-ai/plugin/package.json +9 -0
- package/package.json +30 -16
- package/scripts/audit-dev-allowlist.js +128 -128
- package/scripts/bench-format/{opencode.mjs → codex-host.mjs} +206 -205
- package/scripts/bench-format/hashline-v2.mjs +642 -642
- package/scripts/bench-format/models.mjs +111 -105
- package/scripts/bench-format/render.mjs +496 -496
- package/scripts/bench-format/stats.mjs +54 -54
- package/scripts/bench-format/tasks.mjs +151 -151
- package/scripts/benchmark-edit-formats.mjs +1162 -1161
- package/scripts/benchmark-render-dashboard.mjs +49 -49
- package/scripts/codex.js +40 -2
- package/scripts/copy-oauth-success.js +37 -37
- package/scripts/install-codex-auth-utils.js +49 -0
- package/scripts/{install-opencode-codex-auth.js → install-codex-auth.js} +220 -193
- package/scripts/repo-hygiene.js +320 -0
- package/scripts/test-all-models.sh +7 -7
- package/scripts/test-model-matrix.js +475 -423
- package/scripts/validate-model-map.sh +7 -7
- package/vendor/codex-ai-plugin/dist/index.d.ts +2 -0
- package/vendor/codex-ai-plugin/dist/index.js +2 -0
- package/vendor/codex-ai-plugin/dist/tool.d.ts +42 -0
- package/vendor/codex-ai-plugin/dist/tool.js +29 -0
- package/vendor/codex-ai-plugin/package.json +9 -0
- package/vendor/codex-ai-sdk/dist/index.d.ts +4 -0
- package/vendor/codex-ai-sdk/dist/index.js +2 -0
- package/vendor/codex-ai-sdk/package.json +8 -0
- package/assets/opencode-logo-ornate-dark.svg +0 -18
- package/dist/lib/prompts/codex-opencode-bridge.d.ts +0 -19
- package/dist/lib/prompts/codex-opencode-bridge.d.ts.map +0 -1
- package/dist/lib/prompts/codex-opencode-bridge.js.map +0 -1
- package/dist/lib/prompts/opencode-codex.d.ts +0 -25
- package/dist/lib/prompts/opencode-codex.d.ts.map +0 -1
- package/dist/lib/prompts/opencode-codex.js.map +0 -1
package/dist/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAmC/C,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAU3D,wBAAgB,iCAAiC,IAAI,IAAI,CAExD;AA+DD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,YA4CnC,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,IAAI,YAAY,CAErD;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,IAAI,YAAY,CA+D/C;AAgID;;;;;;;;;;;;GAYG;AACH,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAyBxF;AAqGD,wBAAgB,YAAY,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAEhE;AAED,wBAAgB,aAAa,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAEjE;AAED,wBAAgB,uBAAuB,CACtC,YAAY,EAAE,YAAY,GACxB,WAAW,GAAG,QAAQ,GAAG,SA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;;;;;;GASG;AACH,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAO5E;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAO3E;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAM3E;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAM7E;AAED;;;;;GAKG;AACH,wBAAgB,oCAAoC,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAOvF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oCAAoC,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAOvF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,+BAA+B,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAOlF"}
|
package/dist/lib/config.js
CHANGED
|
@@ -2,13 +2,17 @@ import { readFileSync, existsSync, promises as fs } from "node:fs";
|
|
|
2
2
|
import { dirname, join } from "node:path";
|
|
3
3
|
import { logWarn } from "./logger.js";
|
|
4
4
|
import { PluginConfigSchema, getValidationErrors } from "./schemas.js";
|
|
5
|
-
import { getCodexHomeDir, getCodexMultiAuthDir,
|
|
5
|
+
import { getCodexHomeDir, getCodexMultiAuthDir, getLegacyCodexDir } from "./runtime-paths.js";
|
|
6
6
|
import { getUnifiedSettingsPath, loadUnifiedPluginConfigSync, saveUnifiedPluginConfig, } from "./unified-settings.js";
|
|
7
7
|
const CONFIG_DIR = getCodexMultiAuthDir();
|
|
8
8
|
const CONFIG_PATH = join(CONFIG_DIR, "config.json");
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
9
|
+
const CODEX_HOME_DIR = getCodexHomeDir();
|
|
10
|
+
const LEGACY_CODEX_DIR = getLegacyCodexDir();
|
|
11
|
+
const IS_CUSTOM_CODEX_HOME = CODEX_HOME_DIR !== LEGACY_CODEX_DIR;
|
|
12
|
+
const LEGACY_CODEX_HOME_CONFIG_PATH = join(CODEX_HOME_DIR, "codex-multi-auth-config.json");
|
|
13
|
+
const LEGACY_CODEX_HOME_AUTH_CONFIG_PATH = join(CODEX_HOME_DIR, "openai-codex-auth-config.json");
|
|
14
|
+
const LEGACY_CODEX_CONFIG_PATH = join(LEGACY_CODEX_DIR, "codex-multi-auth-config.json");
|
|
15
|
+
const LEGACY_CODEX_AUTH_CONFIG_PATH = join(LEGACY_CODEX_DIR, "openai-codex-auth-config.json");
|
|
12
16
|
const TUI_COLOR_PROFILES = new Set(["truecolor", "ansi16", "ansi256"]);
|
|
13
17
|
const TUI_GLYPH_MODES = new Set(["ascii", "unicode", "auto"]);
|
|
14
18
|
const UNSUPPORTED_CODEX_POLICIES = new Set(["strict", "fallback"]);
|
|
@@ -31,7 +35,7 @@ export function __resetConfigWarningCacheForTests() {
|
|
|
31
35
|
* The lookup order is:
|
|
32
36
|
* 1. `CODEX_MULTI_AUTH_CONFIG_PATH` environment variable (if set and non-empty)
|
|
33
37
|
* 2. current CONFIG_PATH
|
|
34
|
-
* 3. legacy
|
|
38
|
+
* 3. legacy config locations (with a one-time migration warning)
|
|
35
39
|
*
|
|
36
40
|
* Concurrency: the function is synchronous and relies on the filesystem state at call time; callers should handle concurrent config writes externally.
|
|
37
41
|
*
|
|
@@ -49,20 +53,25 @@ function resolvePluginConfigPath() {
|
|
|
49
53
|
if (existsSync(CONFIG_PATH)) {
|
|
50
54
|
return CONFIG_PATH;
|
|
51
55
|
}
|
|
56
|
+
if (IS_CUSTOM_CODEX_HOME && existsSync(LEGACY_CODEX_HOME_CONFIG_PATH)) {
|
|
57
|
+
logConfigWarnOnce(`Using legacy config path ${LEGACY_CODEX_HOME_CONFIG_PATH}. ` +
|
|
58
|
+
`Please migrate to ${CONFIG_PATH}.`);
|
|
59
|
+
return LEGACY_CODEX_HOME_CONFIG_PATH;
|
|
60
|
+
}
|
|
52
61
|
if (existsSync(LEGACY_CODEX_CONFIG_PATH)) {
|
|
53
62
|
logConfigWarnOnce(`Using legacy config path ${LEGACY_CODEX_CONFIG_PATH}. ` +
|
|
54
63
|
`Please migrate to ${CONFIG_PATH}.`);
|
|
55
64
|
return LEGACY_CODEX_CONFIG_PATH;
|
|
56
65
|
}
|
|
57
|
-
if (existsSync(
|
|
58
|
-
logConfigWarnOnce(`Using legacy
|
|
66
|
+
if (IS_CUSTOM_CODEX_HOME && existsSync(LEGACY_CODEX_HOME_AUTH_CONFIG_PATH)) {
|
|
67
|
+
logConfigWarnOnce(`Using legacy config path ${LEGACY_CODEX_HOME_AUTH_CONFIG_PATH}. ` +
|
|
59
68
|
`Please migrate to ${CONFIG_PATH}.`);
|
|
60
|
-
return
|
|
69
|
+
return LEGACY_CODEX_HOME_AUTH_CONFIG_PATH;
|
|
61
70
|
}
|
|
62
|
-
if (existsSync(
|
|
63
|
-
logConfigWarnOnce(`Using legacy
|
|
71
|
+
if (existsSync(LEGACY_CODEX_AUTH_CONFIG_PATH)) {
|
|
72
|
+
logConfigWarnOnce(`Using legacy config path ${LEGACY_CODEX_AUTH_CONFIG_PATH}. ` +
|
|
64
73
|
`Please migrate to ${CONFIG_PATH}.`);
|
|
65
|
-
return
|
|
74
|
+
return LEGACY_CODEX_AUTH_CONFIG_PATH;
|
|
66
75
|
}
|
|
67
76
|
return null;
|
|
68
77
|
}
|
package/dist/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE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ACH,MAAM,UAAU,uBAAuB,CAAC,YAA0B;IACjE,OAAO,qBAAqB,CAC3B,mCAAmC,EACnC,YAAY,CAAC,oBAAoB,EACjC,IAAI,CACJ,CAAC;AACH,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,yBAAyB,CAAC,YAA0B;IACnE,OAAO,qBAAqB,CAC3B,qCAAqC,EACrC,YAAY,CAAC,sBAAsB,EACnC,IAAI,CACJ,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,oCAAoC,CAAC,YAA0B;IAC9E,OAAO,oBAAoB,CAC1B,8CAA8C,EAC9C,YAAY,CAAC,iCAAiC,EAC9C,CAAC,EACD,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CACpB,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,oCAAoC,CAAC,YAA0B;IAC9E,OAAO,oBAAoB,CAC1B,8CAA8C,EAC9C,YAAY,CAAC,iCAAiC,EAC9C,CAAC,EACD,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CACpB,CAAC;AACH,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,+BAA+B,CAAC,YAA0B;IACzE,OAAO,oBAAoB,CAC1B,6CAA6C,EAC7C,YAAY,CAAC,4BAA4B,EACzC,CAAC,GAAG,EAAE,GAAG,MAAM,EACf,EAAE,GAAG,EAAE,KAAK,EAAE,CACd,CAAC;AACH,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Handles "Prompt too long" / context length exceeded errors by returning
|
|
5
5
|
* a synthetic SSE response that advises the user to use /compact or /clear.
|
|
6
|
-
* This prevents the
|
|
6
|
+
* This prevents the host session from getting locked on 400 errors.
|
|
7
7
|
*/
|
|
8
8
|
/**
|
|
9
9
|
* Check if an error body indicates context overflow
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Handles "Prompt too long" / context length exceeded errors by returning
|
|
5
5
|
* a synthetic SSE response that advises the user to use /compact or /clear.
|
|
6
|
-
* This prevents the
|
|
6
|
+
* This prevents the host session from getting locked on 400 errors.
|
|
7
7
|
*/
|
|
8
8
|
import { logDebug } from "./logger.js";
|
|
9
9
|
/**
|
|
@@ -32,16 +32,16 @@ export function isContextOverflowError(status, bodyText) {
|
|
|
32
32
|
/**
|
|
33
33
|
* The message shown to users when context overflow occurs
|
|
34
34
|
*/
|
|
35
|
-
const CONTEXT_OVERFLOW_MESSAGE = `[Plugin Notice] Context is too long for this model.
|
|
36
|
-
|
|
37
|
-
Please use one of these commands to reduce context size:
|
|
38
|
-
|
|
39
|
-
• **/compact** - Compress conversation history (recommended)
|
|
40
|
-
• **/clear** - Start fresh with empty context
|
|
41
|
-
• **/undo** - Remove recent messages
|
|
42
|
-
|
|
43
|
-
Then retry your request.
|
|
44
|
-
|
|
35
|
+
const CONTEXT_OVERFLOW_MESSAGE = `[Plugin Notice] Context is too long for this model.
|
|
36
|
+
|
|
37
|
+
Please use one of these commands to reduce context size:
|
|
38
|
+
|
|
39
|
+
• **/compact** - Compress conversation history (recommended)
|
|
40
|
+
• **/clear** - Start fresh with empty context
|
|
41
|
+
• **/undo** - Remove recent messages
|
|
42
|
+
|
|
43
|
+
Then retry your request.
|
|
44
|
+
|
|
45
45
|
Alternatively, you can switch to a model with a larger context window.`;
|
|
46
46
|
/**
|
|
47
47
|
* Creates a synthetic SSE response for context overflow errors.
|
|
@@ -318,7 +318,7 @@
|
|
|
318
318
|
|
|
319
319
|
<aside class="right" aria-label="Terminal status">
|
|
320
320
|
<div class="terminal">
|
|
321
|
-
<pre class="prompt"><span class="ok">[ok]</span> callback received on
|
|
321
|
+
<pre class="prompt"><span class="ok">[ok]</span> callback received on 127.0.0.1:1455
|
|
322
322
|
<span class="ok">[ok]</span> secure token flow complete
|
|
323
323
|
<span class="ok">[ok]</span> account saved
|
|
324
324
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Codex Host Bridge Prompt
|
|
3
|
+
*
|
|
4
|
+
* This prompt bridges Codex CLI instructions to the host runtime environment.
|
|
5
|
+
* It incorporates critical tool mappings, available tools list, substitution rules,
|
|
6
|
+
* and verification checklist to ensure proper tool usage.
|
|
7
|
+
*
|
|
8
|
+
* Token Count: ~450 tokens (~90% reduction vs full host prompt)
|
|
9
|
+
*/
|
|
10
|
+
export declare const CODEX_HOST_BRIDGE = "# Codex Host Bridge\n\nYou are running Codex through a host terminal coding runtime. The host provides specific tools to help you work efficiently.\n\n## CRITICAL: Tool Usage\n\n<critical_rule priority=\"0\">\napply_patch/applyPatch are Codex names, but host tool names vary by version.\n- Inspect the actual tool list before editing.\n- If `edit` exists: use `edit` for precise in-place string replacements and hashline edits.\n- If `edit` is absent and `apply_patch` exists: use `apply_patch` for those precise/hashline edits in this plugin.\n- For diff-style or multi-line structural edits: use `patch` if available, otherwise use `apply_patch`.\n- In this plugin, `edit` / `apply_patch` also support hashline refs (`lineRef`, `endLineRef`, `operation`, `content`)\n</critical_rule>\n\n<critical_rule priority=\"0\">\nUPDATE_PLAN DOES NOT EXIST -> USE \"todowrite\" INSTEAD\n- NEVER use: update_plan, updatePlan, read_plan, readPlan\n- ALWAYS use: todowrite for task/plan updates, todoread to read plans\n- Before plan operations: Verify you're using \"todowrite\", NOT \"update_plan\"\n</critical_rule>\n\n## Available Host Tools\n\n**File Operations:**\n- `write` - Create new files\n - Overwriting existing files requires a prior Read in this session; default to ASCII unless the file already uses Unicode.\n- `edit` - Modify existing files with string replacement (version-dependent)\n - Requires a prior Read in this session; preserve exact indentation; ensure `oldString` uniquely matches or use `replaceAll`; edit fails if ambiguous or missing.\n - Never pass unresolved template placeholders in `oldString` (e.g. `${TARGET_SNIPPET}`); `oldString` must be literal text copied from the current file.\n - For complex multi-line changes: break into multiple sequential edit calls, each with unique oldString context.\n- `apply_patch` - May be the edit/patch tool name in newer host builds (version-dependent)\n - In this plugin, `apply_patch` also accepts hashline edit args (`path`, `lineRef`, `endLineRef`, `operation`, `content`) when `edit` is not available.\n- `hashline_read` - Read file with hashline refs (`L<line>#<hash>`) for deterministic edits\n- `patch` - Apply diff-style patches for multi-line updates (version-dependent)\n- `read` - Read file contents\n\nNote: Tool naming is version-dependent. If `edit` is unavailable but `apply_patch` exists, use `apply_patch`.\n\nWhen available, prefer hashline workflow for reliability:\n1. Call `hashline_read` for target file and capture refs.\n2. Call `edit` or `apply_patch` with `lineRef` (and optional `endLineRef`) plus `operation` and `content`.\n3. Use legacy `oldString` / `newString` only when hashline refs are unavailable, and only with literal file text (no template placeholders).\n\n**Search/Discovery:**\n- `grep` - Search file contents (tool, not bash grep); use `include` to filter patterns; set `path` only when not searching workspace root; for cross-file match counts use bash with `rg`.\n- `glob` - Find files by pattern; defaults to workspace cwd unless `path` is set.\n- `list` - List directories (requires absolute paths)\n\n**Execution:**\n- `bash` - Run shell commands\n - No workdir parameter; do not include it in tool calls.\n - Always include a short description for the command.\n - Do not use cd; use absolute paths in commands.\n - Quote paths containing spaces with double quotes.\n - Chain multiple commands with ';' or '&&'; avoid newlines.\n - Use Grep/Glob tools for searches; only use bash with `rg` when you need counts or advanced features.\n - Do not use `ls`/`cat` in bash; use `list`/`read` tools instead.\n - For deletions (rm), verify by listing parent dir with `list`.\n\n**Network:**\n- `webfetch` - Fetch web content\n - Use fully-formed URLs (http/https; http auto-upgrades to https).\n - Always set `format` to one of: text | markdown | html; prefer markdown unless otherwise required.\n - Read-only; short cache window.\n\n**Task Management:**\n- `todowrite` - Manage tasks/plans (REPLACES update_plan)\n- `todoread` - Read current plan\n\n## Substitution Rules\n\nBase instruction says: You MUST use instead:\napply_patch -> patch (preferred if available), otherwise edit/apply_patch based on actual tool list\nupdate_plan -> todowrite\nread_plan -> todoread\n\n**Path Usage:** Use per-tool conventions to avoid conflicts:\n- Tool calls: `read`, `edit`, `write`, `list` require absolute paths.\n- Searches: `grep`/`glob` default to the workspace cwd; prefer relative include patterns; set `path` only when a different root is needed.\n- Presentation: In assistant messages, show workspace-relative paths; use absolute paths only inside tool calls.\n- Tool schema overrides general path preferences-do not convert required absolute paths to relative.\n\n## Verification Checklist\n\nBefore file/plan modifications:\n1. Am I using the actual available edit tool name (`edit`, `patch`, or `apply_patch`)?\n2. Am I using \"todowrite\" NOT \"update_plan\"?\n3. Is this tool in the approved list above?\n4. Am I following each tool's path requirements?\n\nIf ANY answer is NO -> STOP and correct before proceeding.\n\n## Host Working Style\n\n**Communication:**\n- Send brief preambles (8-12 words) before tool calls, building on prior context\n- Provide progress updates during longer tasks\n\n**Execution:**\n- Keep working autonomously until query is fully resolved before yielding\n- Don't return to user with partial solutions\n\n**Code Approach:**\n- New projects: Be ambitious and creative\n- Existing codebases: Surgical precision - modify only what's requested unless explicitly instructed to do otherwise\n\n**Testing:**\n- If tests exist: Start specific to your changes, then broader validation\n\n## Advanced Tools\n\n**Task Tool (Sub-Agents):**\n- Use the Task tool (functions.task) to launch sub-agents\n- Check the Task tool description for current agent types and their capabilities\n- Useful for complex analysis, specialized workflows, or tasks requiring isolated context\n- The agent list is dynamically generated - refer to tool schema for available agents\n\n**Parallelization:**\n- When multiple independent tool calls are needed, use multi_tool_use.parallel to run them concurrently.\n- Reserve sequential calls for ordered or data-dependent steps.\n\n**MCP Tools:**\n- Model Context Protocol servers provide additional capabilities\n- MCP tools are prefixed: `mcp__<server-name>__<tool-name>`\n- Check your available tools for MCP integrations\n- Use when the tool's functionality matches your task needs\n\n## What Remains from Codex\n \nSandbox policies, approval mechanisms, final answer formatting, git commit protocols, and file reference formats all follow Codex instructions. In approval policy \"never\", never request escalations.\n\n## Approvals & Safety\n- Assume workspace-write filesystem, network enabled, approval on-failure unless explicitly stated otherwise.\n- When a command fails due to sandboxing or permissions, retry with escalated permissions if allowed by policy, including a one-line justification.\n- Treat destructive commands (e.g., `rm`, `git reset --hard`) as requiring explicit user request or approval.\n- Never run `git reset --hard`, `git checkout --`, or force deletes unless the user explicitly asked for that exact action.\n- `request_user_input` is Plan-mode only; do not call it in Default mode.\n- When uncertain, prefer non-destructive verification first (e.g., confirm file existence with `list`, then delete with `bash`).";
|
|
11
|
+
export interface CodexHostBridgeMeta {
|
|
12
|
+
estimatedTokens: number;
|
|
13
|
+
reductionVsCurrent: string;
|
|
14
|
+
reductionVsToolRemap: string;
|
|
15
|
+
protects: string[];
|
|
16
|
+
omits: string[];
|
|
17
|
+
}
|
|
18
|
+
export declare const CODEX_HOST_BRIDGE_META: CodexHostBridgeMeta;
|
|
19
|
+
//# sourceMappingURL=codex-host-bridge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-host-bridge.d.ts","sourceRoot":"","sources":["../../../lib/prompts/codex-host-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,iBAAiB,y5OA0IuG,CAAC;AAEtI,MAAM,WAAW,mBAAmB;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,eAAO,MAAM,sBAAsB,EAAE,mBAmBpC,CAAC"}
|
|
@@ -1,152 +1,152 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Codex
|
|
2
|
+
* Codex Host Bridge Prompt
|
|
3
3
|
*
|
|
4
|
-
* This prompt bridges Codex CLI instructions to the
|
|
4
|
+
* This prompt bridges Codex CLI instructions to the host runtime environment.
|
|
5
5
|
* It incorporates critical tool mappings, available tools list, substitution rules,
|
|
6
6
|
* and verification checklist to ensure proper tool usage.
|
|
7
7
|
*
|
|
8
|
-
* Token Count: ~450 tokens (~90% reduction vs full
|
|
8
|
+
* Token Count: ~450 tokens (~90% reduction vs full host prompt)
|
|
9
9
|
*/
|
|
10
|
-
export const
|
|
11
|
-
|
|
12
|
-
You are running Codex through
|
|
13
|
-
|
|
14
|
-
## CRITICAL: Tool Usage
|
|
15
|
-
|
|
16
|
-
<critical_rule priority="0">
|
|
17
|
-
apply_patch/applyPatch are Codex names, but
|
|
18
|
-
- Inspect the actual tool list before editing.
|
|
19
|
-
- If \`edit\` exists: use \`edit\` for precise in-place string replacements and hashline edits.
|
|
20
|
-
- If \`edit\` is absent and \`apply_patch\` exists: use \`apply_patch\` for those precise/hashline edits in this plugin.
|
|
21
|
-
- For diff-style or multi-line structural edits: use \`patch\` if available, otherwise use \`apply_patch\`.
|
|
22
|
-
- In this plugin, \`edit\` / \`apply_patch\` also support hashline refs (\`lineRef\`, \`endLineRef\`, \`operation\`, \`content\`)
|
|
23
|
-
</critical_rule>
|
|
24
|
-
|
|
25
|
-
<critical_rule priority="0">
|
|
26
|
-
UPDATE_PLAN DOES NOT EXIST -> USE "todowrite" INSTEAD
|
|
27
|
-
- NEVER use: update_plan, updatePlan, read_plan, readPlan
|
|
28
|
-
- ALWAYS use: todowrite for task/plan updates, todoread to read plans
|
|
29
|
-
- Before plan operations: Verify you're using "todowrite", NOT "update_plan"
|
|
30
|
-
</critical_rule>
|
|
31
|
-
|
|
32
|
-
## Available
|
|
33
|
-
|
|
34
|
-
**File Operations:**
|
|
35
|
-
- \`write\` - Create new files
|
|
36
|
-
- Overwriting existing files requires a prior Read in this session; default to ASCII unless the file already uses Unicode.
|
|
37
|
-
- \`edit\` - Modify existing files with string replacement (version-dependent)
|
|
38
|
-
- Requires a prior Read in this session; preserve exact indentation; ensure \`oldString\` uniquely matches or use \`replaceAll\`; edit fails if ambiguous or missing.
|
|
39
|
-
- Never pass unresolved template placeholders in \`oldString\` (e.g. \`\${TARGET_SNIPPET}\`); \`oldString\` must be literal text copied from the current file.
|
|
40
|
-
- For complex multi-line changes: break into multiple sequential edit calls, each with unique oldString context.
|
|
41
|
-
- \`apply_patch\` - May be the edit/patch tool name in newer
|
|
42
|
-
- In this plugin, \`apply_patch\` also accepts hashline edit args (\`path\`, \`lineRef\`, \`endLineRef\`, \`operation\`, \`content\`) when \`edit\` is not available.
|
|
43
|
-
- \`hashline_read\` - Read file with hashline refs (\`L<line>#<hash>\`) for deterministic edits
|
|
44
|
-
- \`patch\` - Apply diff-style patches for multi-line updates (version-dependent)
|
|
45
|
-
- \`read\` - Read file contents
|
|
46
|
-
|
|
47
|
-
Note: Tool naming is version-dependent. If \`edit\` is unavailable but \`apply_patch\` exists, use \`apply_patch\`.
|
|
48
|
-
|
|
49
|
-
When available, prefer hashline workflow for reliability:
|
|
50
|
-
1. Call \`hashline_read\` for target file and capture refs.
|
|
51
|
-
2. Call \`edit\` or \`apply_patch\` with \`lineRef\` (and optional \`endLineRef\`) plus \`operation\` and \`content\`.
|
|
52
|
-
3. Use legacy \`oldString\` / \`newString\` only when hashline refs are unavailable, and only with literal file text (no template placeholders).
|
|
53
|
-
|
|
54
|
-
**Search/Discovery:**
|
|
55
|
-
- \`grep\` - Search file contents (tool, not bash grep); use \`include\` to filter patterns; set \`path\` only when not searching workspace root; for cross-file match counts use bash with \`rg\`.
|
|
56
|
-
- \`glob\` - Find files by pattern; defaults to workspace cwd unless \`path\` is set.
|
|
57
|
-
- \`list\` - List directories (requires absolute paths)
|
|
58
|
-
|
|
59
|
-
**Execution:**
|
|
60
|
-
- \`bash\` - Run shell commands
|
|
61
|
-
- No workdir parameter; do not include it in tool calls.
|
|
62
|
-
- Always include a short description for the command.
|
|
63
|
-
- Do not use cd; use absolute paths in commands.
|
|
64
|
-
- Quote paths containing spaces with double quotes.
|
|
65
|
-
- Chain multiple commands with ';' or '&&'; avoid newlines.
|
|
66
|
-
- Use Grep/Glob tools for searches; only use bash with \`rg\` when you need counts or advanced features.
|
|
67
|
-
- Do not use \`ls\`/\`cat\` in bash; use \`list\`/\`read\` tools instead.
|
|
68
|
-
- For deletions (rm), verify by listing parent dir with \`list\`.
|
|
69
|
-
|
|
70
|
-
**Network:**
|
|
71
|
-
- \`webfetch\` - Fetch web content
|
|
72
|
-
- Use fully-formed URLs (http/https; http auto-upgrades to https).
|
|
73
|
-
- Always set \`format\` to one of: text | markdown | html; prefer markdown unless otherwise required.
|
|
74
|
-
- Read-only; short cache window.
|
|
75
|
-
|
|
76
|
-
**Task Management:**
|
|
77
|
-
- \`todowrite\` - Manage tasks/plans (REPLACES update_plan)
|
|
78
|
-
- \`todoread\` - Read current plan
|
|
79
|
-
|
|
80
|
-
## Substitution Rules
|
|
81
|
-
|
|
82
|
-
Base instruction says: You MUST use instead:
|
|
83
|
-
apply_patch -> patch (preferred if available), otherwise edit/apply_patch based on actual tool list
|
|
84
|
-
update_plan -> todowrite
|
|
85
|
-
read_plan -> todoread
|
|
86
|
-
|
|
87
|
-
**Path Usage:** Use per-tool conventions to avoid conflicts:
|
|
88
|
-
- Tool calls: \`read\`, \`edit\`, \`write\`, \`list\` require absolute paths.
|
|
89
|
-
- Searches: \`grep\`/\`glob\` default to the workspace cwd; prefer relative include patterns; set \`path\` only when a different root is needed.
|
|
90
|
-
- Presentation: In assistant messages, show workspace-relative paths; use absolute paths only inside tool calls.
|
|
91
|
-
- Tool schema overrides general path preferences-do not convert required absolute paths to relative.
|
|
92
|
-
|
|
93
|
-
## Verification Checklist
|
|
94
|
-
|
|
95
|
-
Before file/plan modifications:
|
|
96
|
-
1. Am I using the actual available edit tool name (\`edit\`, \`patch\`, or \`apply_patch\`)?
|
|
97
|
-
2. Am I using "todowrite" NOT "update_plan"?
|
|
98
|
-
3. Is this tool in the approved list above?
|
|
99
|
-
4. Am I following each tool's path requirements?
|
|
100
|
-
|
|
101
|
-
If ANY answer is NO -> STOP and correct before proceeding.
|
|
102
|
-
|
|
103
|
-
##
|
|
104
|
-
|
|
105
|
-
**Communication:**
|
|
106
|
-
- Send brief preambles (8-12 words) before tool calls, building on prior context
|
|
107
|
-
- Provide progress updates during longer tasks
|
|
108
|
-
|
|
109
|
-
**Execution:**
|
|
110
|
-
- Keep working autonomously until query is fully resolved before yielding
|
|
111
|
-
- Don't return to user with partial solutions
|
|
112
|
-
|
|
113
|
-
**Code Approach:**
|
|
114
|
-
- New projects: Be ambitious and creative
|
|
115
|
-
- Existing codebases: Surgical precision - modify only what's requested unless explicitly instructed to do otherwise
|
|
116
|
-
|
|
117
|
-
**Testing:**
|
|
118
|
-
- If tests exist: Start specific to your changes, then broader validation
|
|
119
|
-
|
|
120
|
-
## Advanced Tools
|
|
121
|
-
|
|
122
|
-
**Task Tool (Sub-Agents):**
|
|
123
|
-
- Use the Task tool (functions.task) to launch sub-agents
|
|
124
|
-
- Check the Task tool description for current agent types and their capabilities
|
|
125
|
-
- Useful for complex analysis, specialized workflows, or tasks requiring isolated context
|
|
126
|
-
- The agent list is dynamically generated - refer to tool schema for available agents
|
|
127
|
-
|
|
128
|
-
**Parallelization:**
|
|
129
|
-
- When multiple independent tool calls are needed, use multi_tool_use.parallel to run them concurrently.
|
|
130
|
-
- Reserve sequential calls for ordered or data-dependent steps.
|
|
131
|
-
|
|
132
|
-
**MCP Tools:**
|
|
133
|
-
- Model Context Protocol servers provide additional capabilities
|
|
134
|
-
- MCP tools are prefixed: \`mcp__<server-name>__<tool-name>\`
|
|
135
|
-
- Check your available tools for MCP integrations
|
|
136
|
-
- Use when the tool's functionality matches your task needs
|
|
137
|
-
|
|
138
|
-
## What Remains from Codex
|
|
139
|
-
|
|
140
|
-
Sandbox policies, approval mechanisms, final answer formatting, git commit protocols, and file reference formats all follow Codex instructions. In approval policy "never", never request escalations.
|
|
141
|
-
|
|
142
|
-
## Approvals & Safety
|
|
143
|
-
- Assume workspace-write filesystem, network enabled, approval on-failure unless explicitly stated otherwise.
|
|
144
|
-
- When a command fails due to sandboxing or permissions, retry with escalated permissions if allowed by policy, including a one-line justification.
|
|
145
|
-
- Treat destructive commands (e.g., \`rm\`, \`git reset --hard\`) as requiring explicit user request or approval.
|
|
146
|
-
- Never run \`git reset --hard\`, \`git checkout --\`, or force deletes unless the user explicitly asked for that exact action.
|
|
147
|
-
- \`request_user_input\` is Plan-mode only; do not call it in Default mode.
|
|
10
|
+
export const CODEX_HOST_BRIDGE = `# Codex Host Bridge
|
|
11
|
+
|
|
12
|
+
You are running Codex through a host terminal coding runtime. The host provides specific tools to help you work efficiently.
|
|
13
|
+
|
|
14
|
+
## CRITICAL: Tool Usage
|
|
15
|
+
|
|
16
|
+
<critical_rule priority="0">
|
|
17
|
+
apply_patch/applyPatch are Codex names, but host tool names vary by version.
|
|
18
|
+
- Inspect the actual tool list before editing.
|
|
19
|
+
- If \`edit\` exists: use \`edit\` for precise in-place string replacements and hashline edits.
|
|
20
|
+
- If \`edit\` is absent and \`apply_patch\` exists: use \`apply_patch\` for those precise/hashline edits in this plugin.
|
|
21
|
+
- For diff-style or multi-line structural edits: use \`patch\` if available, otherwise use \`apply_patch\`.
|
|
22
|
+
- In this plugin, \`edit\` / \`apply_patch\` also support hashline refs (\`lineRef\`, \`endLineRef\`, \`operation\`, \`content\`)
|
|
23
|
+
</critical_rule>
|
|
24
|
+
|
|
25
|
+
<critical_rule priority="0">
|
|
26
|
+
UPDATE_PLAN DOES NOT EXIST -> USE "todowrite" INSTEAD
|
|
27
|
+
- NEVER use: update_plan, updatePlan, read_plan, readPlan
|
|
28
|
+
- ALWAYS use: todowrite for task/plan updates, todoread to read plans
|
|
29
|
+
- Before plan operations: Verify you're using "todowrite", NOT "update_plan"
|
|
30
|
+
</critical_rule>
|
|
31
|
+
|
|
32
|
+
## Available Host Tools
|
|
33
|
+
|
|
34
|
+
**File Operations:**
|
|
35
|
+
- \`write\` - Create new files
|
|
36
|
+
- Overwriting existing files requires a prior Read in this session; default to ASCII unless the file already uses Unicode.
|
|
37
|
+
- \`edit\` - Modify existing files with string replacement (version-dependent)
|
|
38
|
+
- Requires a prior Read in this session; preserve exact indentation; ensure \`oldString\` uniquely matches or use \`replaceAll\`; edit fails if ambiguous or missing.
|
|
39
|
+
- Never pass unresolved template placeholders in \`oldString\` (e.g. \`\${TARGET_SNIPPET}\`); \`oldString\` must be literal text copied from the current file.
|
|
40
|
+
- For complex multi-line changes: break into multiple sequential edit calls, each with unique oldString context.
|
|
41
|
+
- \`apply_patch\` - May be the edit/patch tool name in newer host builds (version-dependent)
|
|
42
|
+
- In this plugin, \`apply_patch\` also accepts hashline edit args (\`path\`, \`lineRef\`, \`endLineRef\`, \`operation\`, \`content\`) when \`edit\` is not available.
|
|
43
|
+
- \`hashline_read\` - Read file with hashline refs (\`L<line>#<hash>\`) for deterministic edits
|
|
44
|
+
- \`patch\` - Apply diff-style patches for multi-line updates (version-dependent)
|
|
45
|
+
- \`read\` - Read file contents
|
|
46
|
+
|
|
47
|
+
Note: Tool naming is version-dependent. If \`edit\` is unavailable but \`apply_patch\` exists, use \`apply_patch\`.
|
|
48
|
+
|
|
49
|
+
When available, prefer hashline workflow for reliability:
|
|
50
|
+
1. Call \`hashline_read\` for target file and capture refs.
|
|
51
|
+
2. Call \`edit\` or \`apply_patch\` with \`lineRef\` (and optional \`endLineRef\`) plus \`operation\` and \`content\`.
|
|
52
|
+
3. Use legacy \`oldString\` / \`newString\` only when hashline refs are unavailable, and only with literal file text (no template placeholders).
|
|
53
|
+
|
|
54
|
+
**Search/Discovery:**
|
|
55
|
+
- \`grep\` - Search file contents (tool, not bash grep); use \`include\` to filter patterns; set \`path\` only when not searching workspace root; for cross-file match counts use bash with \`rg\`.
|
|
56
|
+
- \`glob\` - Find files by pattern; defaults to workspace cwd unless \`path\` is set.
|
|
57
|
+
- \`list\` - List directories (requires absolute paths)
|
|
58
|
+
|
|
59
|
+
**Execution:**
|
|
60
|
+
- \`bash\` - Run shell commands
|
|
61
|
+
- No workdir parameter; do not include it in tool calls.
|
|
62
|
+
- Always include a short description for the command.
|
|
63
|
+
- Do not use cd; use absolute paths in commands.
|
|
64
|
+
- Quote paths containing spaces with double quotes.
|
|
65
|
+
- Chain multiple commands with ';' or '&&'; avoid newlines.
|
|
66
|
+
- Use Grep/Glob tools for searches; only use bash with \`rg\` when you need counts or advanced features.
|
|
67
|
+
- Do not use \`ls\`/\`cat\` in bash; use \`list\`/\`read\` tools instead.
|
|
68
|
+
- For deletions (rm), verify by listing parent dir with \`list\`.
|
|
69
|
+
|
|
70
|
+
**Network:**
|
|
71
|
+
- \`webfetch\` - Fetch web content
|
|
72
|
+
- Use fully-formed URLs (http/https; http auto-upgrades to https).
|
|
73
|
+
- Always set \`format\` to one of: text | markdown | html; prefer markdown unless otherwise required.
|
|
74
|
+
- Read-only; short cache window.
|
|
75
|
+
|
|
76
|
+
**Task Management:**
|
|
77
|
+
- \`todowrite\` - Manage tasks/plans (REPLACES update_plan)
|
|
78
|
+
- \`todoread\` - Read current plan
|
|
79
|
+
|
|
80
|
+
## Substitution Rules
|
|
81
|
+
|
|
82
|
+
Base instruction says: You MUST use instead:
|
|
83
|
+
apply_patch -> patch (preferred if available), otherwise edit/apply_patch based on actual tool list
|
|
84
|
+
update_plan -> todowrite
|
|
85
|
+
read_plan -> todoread
|
|
86
|
+
|
|
87
|
+
**Path Usage:** Use per-tool conventions to avoid conflicts:
|
|
88
|
+
- Tool calls: \`read\`, \`edit\`, \`write\`, \`list\` require absolute paths.
|
|
89
|
+
- Searches: \`grep\`/\`glob\` default to the workspace cwd; prefer relative include patterns; set \`path\` only when a different root is needed.
|
|
90
|
+
- Presentation: In assistant messages, show workspace-relative paths; use absolute paths only inside tool calls.
|
|
91
|
+
- Tool schema overrides general path preferences-do not convert required absolute paths to relative.
|
|
92
|
+
|
|
93
|
+
## Verification Checklist
|
|
94
|
+
|
|
95
|
+
Before file/plan modifications:
|
|
96
|
+
1. Am I using the actual available edit tool name (\`edit\`, \`patch\`, or \`apply_patch\`)?
|
|
97
|
+
2. Am I using "todowrite" NOT "update_plan"?
|
|
98
|
+
3. Is this tool in the approved list above?
|
|
99
|
+
4. Am I following each tool's path requirements?
|
|
100
|
+
|
|
101
|
+
If ANY answer is NO -> STOP and correct before proceeding.
|
|
102
|
+
|
|
103
|
+
## Host Working Style
|
|
104
|
+
|
|
105
|
+
**Communication:**
|
|
106
|
+
- Send brief preambles (8-12 words) before tool calls, building on prior context
|
|
107
|
+
- Provide progress updates during longer tasks
|
|
108
|
+
|
|
109
|
+
**Execution:**
|
|
110
|
+
- Keep working autonomously until query is fully resolved before yielding
|
|
111
|
+
- Don't return to user with partial solutions
|
|
112
|
+
|
|
113
|
+
**Code Approach:**
|
|
114
|
+
- New projects: Be ambitious and creative
|
|
115
|
+
- Existing codebases: Surgical precision - modify only what's requested unless explicitly instructed to do otherwise
|
|
116
|
+
|
|
117
|
+
**Testing:**
|
|
118
|
+
- If tests exist: Start specific to your changes, then broader validation
|
|
119
|
+
|
|
120
|
+
## Advanced Tools
|
|
121
|
+
|
|
122
|
+
**Task Tool (Sub-Agents):**
|
|
123
|
+
- Use the Task tool (functions.task) to launch sub-agents
|
|
124
|
+
- Check the Task tool description for current agent types and their capabilities
|
|
125
|
+
- Useful for complex analysis, specialized workflows, or tasks requiring isolated context
|
|
126
|
+
- The agent list is dynamically generated - refer to tool schema for available agents
|
|
127
|
+
|
|
128
|
+
**Parallelization:**
|
|
129
|
+
- When multiple independent tool calls are needed, use multi_tool_use.parallel to run them concurrently.
|
|
130
|
+
- Reserve sequential calls for ordered or data-dependent steps.
|
|
131
|
+
|
|
132
|
+
**MCP Tools:**
|
|
133
|
+
- Model Context Protocol servers provide additional capabilities
|
|
134
|
+
- MCP tools are prefixed: \`mcp__<server-name>__<tool-name>\`
|
|
135
|
+
- Check your available tools for MCP integrations
|
|
136
|
+
- Use when the tool's functionality matches your task needs
|
|
137
|
+
|
|
138
|
+
## What Remains from Codex
|
|
139
|
+
|
|
140
|
+
Sandbox policies, approval mechanisms, final answer formatting, git commit protocols, and file reference formats all follow Codex instructions. In approval policy "never", never request escalations.
|
|
141
|
+
|
|
142
|
+
## Approvals & Safety
|
|
143
|
+
- Assume workspace-write filesystem, network enabled, approval on-failure unless explicitly stated otherwise.
|
|
144
|
+
- When a command fails due to sandboxing or permissions, retry with escalated permissions if allowed by policy, including a one-line justification.
|
|
145
|
+
- Treat destructive commands (e.g., \`rm\`, \`git reset --hard\`) as requiring explicit user request or approval.
|
|
146
|
+
- Never run \`git reset --hard\`, \`git checkout --\`, or force deletes unless the user explicitly asked for that exact action.
|
|
147
|
+
- \`request_user_input\` is Plan-mode only; do not call it in Default mode.
|
|
148
148
|
- When uncertain, prefer non-destructive verification first (e.g., confirm file existence with \`list\`, then delete with \`bash\`).`;
|
|
149
|
-
export const
|
|
149
|
+
export const CODEX_HOST_BRIDGE_META = {
|
|
150
150
|
estimatedTokens: 550,
|
|
151
151
|
reductionVsCurrent: "88%",
|
|
152
152
|
reductionVsToolRemap: "10%",
|
|
@@ -166,4 +166,4 @@ export const CODEX_OPENCODE_BRIDGE_META = {
|
|
|
166
166
|
"Git protocols (in Codex)",
|
|
167
167
|
],
|
|
168
168
|
};
|
|
169
|
-
//# sourceMappingURL=codex-
|
|
169
|
+
//# sourceMappingURL=codex-host-bridge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codex-host-bridge.js","sourceRoot":"","sources":["../../../lib/prompts/codex-host-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qIA0IoG,CAAC;AAUtI,MAAM,CAAC,MAAM,sBAAsB,GAAwB;IAC1D,eAAe,EAAE,GAAG;IACpB,kBAAkB,EAAE,KAAK;IACzB,oBAAoB,EAAE,KAAK;IAC3B,QAAQ,EAAE;QACT,mCAAmC;QACnC,wBAAwB;QACxB,iCAAiC;QACjC,oBAAoB;QACpB,4BAA4B;QAC5B,oCAAoC;QACpC,uBAAuB;KACvB;IACD,KAAK,EAAE;QACN,4BAA4B;QAC5B,6BAA6B;QAC7B,8BAA8B;QAC9B,0BAA0B;KAC1B;CACD,CAAC"}
|
|
@@ -35,7 +35,7 @@ export declare function getCodexInstructions(normalizedModel?: string): Promise<
|
|
|
35
35
|
*/
|
|
36
36
|
export declare function prewarmCodexInstructions(models?: string[]): void;
|
|
37
37
|
/**
|
|
38
|
-
* Tool remapping instructions for
|
|
38
|
+
* Tool remapping instructions for host runtime tools
|
|
39
39
|
*/
|
|
40
|
-
export declare const TOOL_REMAP_MESSAGE = "<user_instructions priority=\"0\">\n<environment_override priority=\"0\">\nYOU ARE IN A DIFFERENT ENVIRONMENT. These instructions override ALL previous tool references.\n</environment_override>\n\n<tool_replacements priority=\"0\">\n<critical_rule priority=\"0\">\napply_patch/applyPatch are Codex names, but
|
|
40
|
+
export declare const TOOL_REMAP_MESSAGE = "<user_instructions priority=\"0\">\n<environment_override priority=\"0\">\nYOU ARE IN A DIFFERENT ENVIRONMENT. These instructions override ALL previous tool references.\n</environment_override>\n\n<tool_replacements priority=\"0\">\n<critical_rule priority=\"0\">\napply_patch/applyPatch are Codex names, but host tool names vary by version.\n- Inspect the actual tool list before editing.\n- If edit exists: use edit for precise in-place string replacements and hashline edits.\n- If edit is absent and apply_patch exists: use apply_patch for those precise/hashline edits in this plugin.\n- For diff-style or multi-line structural edits: use patch if available, otherwise use apply_patch.\n- In this plugin, edit/apply_patch support hashline refs (lineRef, endLineRef, operation, content)\n</critical_rule>\n\n<critical_rule priority=\"0\">\nUPDATE_PLAN DOES NOT EXIST -> USE \"todowrite\" INSTEAD\n- NEVER use: update_plan, updatePlan\n- ALWAYS use: todowrite for ALL task/plan operations\n- Use todoread to read current plan\n- Before plan operations: Verify you're using \"todowrite\", NOT \"update_plan\"\n</critical_rule>\n</tool_replacements>\n\n<available_tools priority=\"0\">\nFile Operations:\n - write - Create new files (if available)\n - edit - Modify existing files with string replacement (version-dependent)\n - oldString must be literal text from the current file; never pass unresolved placeholders like ${TARGET_SNIPPET}\n - apply_patch - May be the edit/patch tool name in newer host builds (version-dependent)\n - hashline_read - Read lines with hashline refs (L<line>#<hash>) for deterministic edits\n - patch - Apply diff patches (version-dependent)\n - read - Read file contents\n\nSearch/Discovery:\n - grep - Search file contents\n - glob - Find files by pattern\n - list - List directories (if available)\n\nExecution:\n - bash - Run shell commands\n\nNetwork:\n - webfetch - Fetch web content\n\nTask Management:\n - todowrite - Manage tasks/plans (REPLACES update_plan)\n - todoread - Read current plan\n</available_tools>\n\n<substitution_rules priority=\"0\">\nBase instruction says: You MUST use instead:\napply_patch -> patch (preferred if available), otherwise edit/apply_patch based on actual tool list\nupdate_plan -> todowrite\nread_plan -> todoread\nabsolute paths -> relative paths\n</substitution_rules>\n\n<verification_checklist priority=\"0\">\nBefore file/plan modifications:\n1. Am I using the actual available edit tool name (edit, patch, or apply_patch)?\n2. Am I using \"todowrite\" NOT \"update_plan\"?\n3. Is this tool in the approved list above?\n4. Am I using relative paths?\n\nIf ANY answer is NO -> STOP and correct before proceeding.\n</verification_checklist>\n\n<hashline_workflow priority=\"0\">\nWhen hashline_read is available:\n1. call hashline_read on the file\n2. edit/apply_patch using lineRef/endLineRef + operation + content\n3. use oldString/newString only as fallback, and only with literal file text (no template placeholders)\n</hashline_workflow>\n\n<safety_rules priority=\"0\">\n- Never run destructive git commands (`git reset --hard`, `git checkout --`) unless explicitly requested by the user.\n- Never call `request_user_input` unless collaboration mode is explicitly Plan mode.\n</safety_rules>\n</user_instructions>";
|
|
41
41
|
//# sourceMappingURL=codex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../lib/prompts/codex.ts"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAI7C;AAWD;;;GAGG;AACH,MAAM,MAAM,WAAW,GACpB,aAAa,GACb,WAAW,GACX,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEb;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAMvC,CAAC;AAyBX;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,eAAe,EAAE,MAAM,GAAG,WAAW,CA4BnE;AAwED;;;;;;;;;GASG;AACH,wBAAsB,oBAAoB,CACzC,eAAe,SAAgB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAuFjB;AAsGD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,GAAE,MAAM,EAAO,GAAG,IAAI,CAUpE;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../../lib/prompts/codex.ts"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAI7C;AAWD;;;GAGG;AACH,MAAM,MAAM,WAAW,GACpB,aAAa,GACb,WAAW,GACX,OAAO,GACP,SAAS,GACT,SAAS,CAAC;AAEb;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,WAAW,EAMvC,CAAC;AAyBX;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,eAAe,EAAE,MAAM,GAAG,WAAW,CA4BnE;AAwED;;;;;;;;;GASG;AACH,wBAAsB,oBAAoB,CACzC,eAAe,SAAgB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAuFjB;AAsGD;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,GAAE,MAAM,EAAO,GAAG,IAAI,CAUpE;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,ozGA+EV,CAAC"}
|