Files
gstack/hosts/factory.ts
Garry Tan 9b0bf2e86c feat: GBrain resolver — brain-first lookup and save-to-brain
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>
2026-04-14 10:52:25 -07:00

65 lines
1.8 KiB
TypeScript

import type { HostConfig } from '../scripts/host-config';
const factory: HostConfig = {
name: 'factory',
displayName: 'Factory Droid',
cliCommand: 'droid',
cliAliases: ['droid'],
globalRoot: '.factory/skills/gstack',
localSkillRoot: '.factory/skills/gstack',
hostSubdir: '.factory',
usesEnvVars: true,
frontmatter: {
mode: 'allowlist',
keepFields: ['name', 'description', 'user-invocable'],
descriptionLimit: null,
extraFields: {
'user-invocable': true,
},
conditionalFields: [
{ if: { sensitive: true }, add: { 'disable-model-invocation': true } },
],
},
generation: {
generateMetadata: false,
skipSkills: ['codex'], // Codex skill is a Claude wrapper around codex exec
},
pathRewrites: [
{ from: '~/.claude/skills/gstack', to: '$GSTACK_ROOT' },
{ from: '.claude/skills/gstack', to: '.factory/skills/gstack' },
{ from: '.claude/skills/review', to: '.factory/skills/gstack/review' },
{ from: '.claude/skills', to: '.factory/skills' },
],
toolRewrites: {
'use the Bash tool': 'run this command',
'use the Write tool': 'create this file',
'use the Read tool': 'read the file',
'use the Agent tool': 'dispatch a subagent',
'use the Grep tool': 'search for',
'use the Glob tool': 'find files matching',
},
suppressedResolvers: ['GBRAIN_CONTEXT_LOAD', 'GBRAIN_SAVE_RESULTS'],
runtimeRoot: {
globalSymlinks: ['bin', 'browse/dist', 'browse/bin', 'gstack-upgrade', 'ETHOS.md'],
globalFiles: {
'review': ['checklist.md', 'TODOS-format.md'],
},
},
install: {
prefixable: false,
linkingStrategy: 'symlink-generated',
},
coAuthorTrailer: 'Co-Authored-By: Factory Droid <droid@users.noreply.github.com>',
learningsMode: 'full',
};
export default factory;