mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-20 15:13:47 +01:00
The Agent-tool rewrite for hermes, gbrain, openclaw and factory keyed only on "use the Agent tool", but templates mostly say "via the Agent tool", "with the Agent tool", "multiple Agent tool calls" or "Use the Agent tool", so the Claude tool name leaked into those hosts' skills and sections. Add ordered rules after the existing key (possessive, "the Agent tool", then bare "Agent tool") mapping to sessions_spawn (gbrain/openclaw), delegate_task (hermes) and delegation (factory). No goldens change. Adopts #1935 (rewritten on current main, without the new goldens). Co-authored-by: katlun-lgtm <264247399+katlun-lgtm@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
import { defineHost } from './define-host';
|
|
|
|
const factory = defineHost({
|
|
name: 'factory',
|
|
displayName: 'Factory Droid',
|
|
cliCommand: 'droid',
|
|
cliAliases: ['droid'],
|
|
|
|
frontmatter: {
|
|
mode: 'allowlist',
|
|
keepFields: ['name', 'description', 'user-invocable'],
|
|
descriptionLimit: null,
|
|
extraFields: {
|
|
'user-invocable': true,
|
|
},
|
|
conditionalFields: [
|
|
{ if: { sensitive: true }, add: { 'disable-model-invocation': true } },
|
|
],
|
|
},
|
|
|
|
// 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: '.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',
|
|
"Claude Code's Agent tool": 'delegation',
|
|
'the Agent tool': 'delegation',
|
|
'Agent tool': 'delegation',
|
|
'use the Grep tool': 'search for',
|
|
'use the Glob tool': 'find files matching',
|
|
},
|
|
|
|
coAuthorTrailer: 'Co-Authored-By: Factory Droid <droid@users.noreply.github.com>',
|
|
learningsMode: 'full',
|
|
});
|
|
|
|
export default factory;
|