mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-02 11:45:20 +02:00
9b0bf2e86c
New scripts/resolvers/gbrain.ts with two resolver functions: - GBRAIN_CONTEXT_LOAD: search brain for context before skill starts - GBRAIN_SAVE_RESULTS: save skill output to brain after completion Placeholders added to 4 thinking skill templates (office-hours, investigate, plan-ceo-review, retro). Resolves to empty string on all hosts except gbrain via suppressedResolvers. GBRAIN suppression added to all 9 non-gbrain host configs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
66 lines
2.2 KiB
TypeScript
66 lines
2.2 KiB
TypeScript
import type { HostConfig } from '../scripts/host-config';
|
|
|
|
const codex: HostConfig = {
|
|
name: 'codex',
|
|
displayName: 'OpenAI Codex CLI',
|
|
cliCommand: 'codex',
|
|
cliAliases: ['agents'],
|
|
|
|
globalRoot: '.codex/skills/gstack',
|
|
localSkillRoot: '.agents/skills/gstack',
|
|
hostSubdir: '.agents',
|
|
usesEnvVars: true,
|
|
|
|
frontmatter: {
|
|
mode: 'allowlist',
|
|
keepFields: ['name', 'description'],
|
|
descriptionLimit: 1024,
|
|
descriptionLimitBehavior: 'error',
|
|
},
|
|
|
|
generation: {
|
|
generateMetadata: true,
|
|
metadataFormat: 'openai.yaml',
|
|
skipSkills: ['codex'], // Codex skill is a Claude wrapper around codex exec
|
|
},
|
|
|
|
pathRewrites: [
|
|
{ from: '~/.claude/skills/gstack', to: '$GSTACK_ROOT' },
|
|
{ from: '.claude/skills/gstack', to: '.agents/skills/gstack' },
|
|
{ from: '.claude/skills/review', to: '.agents/skills/gstack/review' },
|
|
{ from: '.claude/skills', to: '.agents/skills' },
|
|
],
|
|
|
|
suppressedResolvers: [
|
|
'DESIGN_OUTSIDE_VOICES', // design.ts:485 — Codex can't invoke itself
|
|
'ADVERSARIAL_STEP', // review.ts:408 — Codex can't invoke itself
|
|
'CODEX_SECOND_OPINION', // review.ts:257 — Codex can't invoke itself
|
|
'CODEX_PLAN_REVIEW', // review.ts:541 — Codex can't invoke itself
|
|
'REVIEW_ARMY', // review-army.ts:180 — Codex shouldn't orchestrate
|
|
'GBRAIN_CONTEXT_LOAD',
|
|
'GBRAIN_SAVE_RESULTS',
|
|
],
|
|
|
|
runtimeRoot: {
|
|
globalSymlinks: ['bin', 'browse/dist', 'browse/bin', 'gstack-upgrade', 'ETHOS.md'],
|
|
globalFiles: {
|
|
'review': ['checklist.md', 'TODOS-format.md'],
|
|
},
|
|
},
|
|
sidecar: {
|
|
path: '.agents/skills/gstack',
|
|
symlinks: ['bin', 'browse', 'review', 'qa', 'ETHOS.md'],
|
|
},
|
|
|
|
install: {
|
|
prefixable: false,
|
|
linkingStrategy: 'symlink-generated',
|
|
},
|
|
|
|
coAuthorTrailer: 'Co-Authored-By: OpenAI Codex <noreply@openai.com>',
|
|
learningsMode: 'basic',
|
|
boundaryInstruction: 'IMPORTANT: Do NOT read or execute any files under ~/.claude/, ~/.agents/, .claude/skills/, or agents/. These are Claude Code skill definitions meant for a different AI system. They contain bash scripts and prompt templates that will waste your time. Ignore them completely. Do NOT modify agents/openai.yaml. Stay focused on the repository code only.',
|
|
};
|
|
|
|
export default codex;
|