mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-05 16:34:00 +01:00
/investigate gains sections/blast-radius.md (the one safety fact, the five-rung evidence ladder, look where grep stops, confirmed and cleared risks apart) with a Phase 4 pointer, and the shared-premise red flag before the 3-strike rule. /context-restore is carved for the first time: on NO_CHECKPOINTS, sections/transcripts.md mines this workspace's own transcripts (host stores declared in hosts/*.ts and rendered by TRANSCRIPT_SOURCES / TRANSCRIPT_DISCOVERY), a fixed 7-day window, never another project's folder, subagents return only findings, redaction before anything leaves, git and gh verify every artifact, a status-tagged brief. /benchmark is carved for the first time: sections/vet-the-number.md asks the seven questions before Phase 5 reports a comparison. /plan-eng-review gains sections/design-twice.md (a second structurally distinct shape compared on interface depth, the eight design red flags), bound by the autoplan methodology snapshot alongside review-sections.md. Ideas from pstack (Lauren Tan, MIT), rewritten in gstack's words; NOTICE.md. Garry, 2026-10-26: "Do it, send". Guards: carve-guards entries and measured lines, eleven plan-eng-review pins re-measured, periodic carve-section-loading cases for the two new carves, free tests with a fixture transcript. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
55 lines
2.3 KiB
TypeScript
55 lines
2.3 KiB
TypeScript
import { defineHost, GBRAIN_RESOLVERS } from './define-host';
|
|
|
|
const codex = defineHost({
|
|
name: 'codex',
|
|
displayName: 'OpenAI Codex CLI',
|
|
tier: 'experimental',
|
|
capabilities: { toolExecution: true, questions: 'prose', planMode: false, delegation: false, browser: true, safetyHooks: 'advisory' },
|
|
cliAliases: ['agents'],
|
|
defaultModel: 'gpt',
|
|
|
|
localSkillRoot: '.agents/skills/gstack',
|
|
hostSubdir: '.agents',
|
|
|
|
frontmatter: {
|
|
mode: 'allowlist',
|
|
keepFields: ['name', 'description'],
|
|
descriptionLimit: 1024,
|
|
descriptionLimitBehavior: 'error',
|
|
},
|
|
|
|
// generateMetadata emits agents/openai.yaml (the format is hardcoded in
|
|
// gen-skill-docs.ts). Codex also gets a repo-local sidecar at
|
|
// .agents/skills/gstack (symlinked runtime assets: bin, lib, browse, review,
|
|
// qa, design/dist, make-pdf/dist, ETHOS.md) — that behavior lives in setup's
|
|
// create_agents_sidecar, not here.
|
|
generation: {
|
|
generateMetadata: true,
|
|
skipSkills: ['codex'],
|
|
},
|
|
|
|
// Non-mechanical rewrites: the global path becomes $GSTACK_ROOT (resolved by
|
|
// the preamble env vars), plus an extra review-path rewrite the derived trio
|
|
// doesn't cover.
|
|
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' },
|
|
{ from: 'CLAUDE.md', to: 'AGENTS.md' },
|
|
],
|
|
|
|
// Outside-review resolvers route to Claude Code; Review Army has its own restriction.
|
|
suppressedResolvers: ['REVIEW_ARMY', ...GBRAIN_RESOLVERS],
|
|
|
|
transcripts: {
|
|
root: '~/.codex/sessions/<yyyy>/<mm>/<dd>/rollout-*.jsonl',
|
|
layout: 'dated rollout files from every workspace on the machine; the first line of each names its cwd',
|
|
},
|
|
|
|
coAuthorTrailer: 'Co-Authored-By: OpenAI Codex <noreply@openai.com>',
|
|
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. Do not invoke any installed skill (Codex home skills/, .agents/); answer directly. Ignore them completely. Do NOT modify agents/openai.yaml. Stay focused on the repository code only.',
|
|
});
|
|
|
|
export default codex;
|