mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-01 14:34:42 +01:00
* wip: gstack-harness registrar (GSTA-135) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * wip: harness registration in setup, uninstall, tests Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * wip: harness hosts experimental, troubleshooting codes, kit Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: agent harness registration (GSTA-135) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: harness hosts run in place from the checkout in --status Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test: bun-free ledger reader Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: CHANGELOG for harness registration (Unreleased) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(harness): keep edits beside themselves, never follow symlinks, cut only gstack's own context block Review blockers on #3526: uninstall deleted the edit backups under the state root; unregister followed a symlinked folder below the destination; a lone or edited context marker made the cut eat user lines; a re-register adding --context left an unrecorded block. Also: ledger written before the files, --refresh-registered no longer re-runs harness hosts through setup (gstack-harness refresh keeps their mode), bash goes through runBashSync, and setup tests follow openclaw/hermes becoming installs. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(harness): a ledger with no destination row touches nothing (no hang) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: harness registration in README, install and hosts (document-release audit) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --------- Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
57 lines
2.1 KiB
TypeScript
57 lines
2.1 KiB
TypeScript
import { defineHost, CROSS_MODEL_RESOLVERS, preambleToolGlossary } from './define-host';
|
|
|
|
const hermes = defineHost({
|
|
name: 'hermes',
|
|
displayName: 'Hermes',
|
|
tier: 'experimental',
|
|
capabilities: { toolExecution: true, questions: 'native', planMode: false, delegation: true, browser: true, safetyHooks: 'advisory' },
|
|
|
|
// Hermes indexes skills by frontmatter name, first match wins (#2825).
|
|
frontmatter: {
|
|
mode: 'allowlist',
|
|
keepFields: ['name', 'description'],
|
|
descriptionLimit: null,
|
|
nameMatchesDirectory: true,
|
|
},
|
|
|
|
extraPathRewrites: [
|
|
{ from: 'CLAUDE.md', to: 'AGENTS.md' },
|
|
],
|
|
toolRewrites: {
|
|
'use the Bash tool': 'use the terminal tool',
|
|
'use the Write tool': 'use the patch tool',
|
|
'use the Read tool': 'use the read_file tool',
|
|
'use the Edit tool': 'use the patch tool',
|
|
'use the Agent tool': 'use delegate_task',
|
|
"Claude Code's Agent tool": 'delegate_task',
|
|
'the Agent tool': 'delegate_task',
|
|
'Agent tool': 'delegate_task',
|
|
'use the Grep tool': 'search for',
|
|
'use the Glob tool': 'find files matching',
|
|
'the Bash tool': 'the terminal tool',
|
|
'the Read tool': 'the read_file tool',
|
|
'the Write tool': 'the patch tool',
|
|
'the Edit tool': 'the patch tool',
|
|
// #2015: Hermes asks through clarify.
|
|
...preambleToolGlossary('**Hermes tool names:** `AskUserQuestion` means your `clarify` tool (one question per call, options as choices); there is no `mcp__*__AskUserQuestion` variant.'),
|
|
},
|
|
|
|
suppressedResolvers: [
|
|
...CROSS_MODEL_RESOLVERS,
|
|
// GBRAIN_CONTEXT_LOAD and GBRAIN_SAVE_RESULTS are NOT suppressed.
|
|
// The resolvers handle GBrain-not-installed gracefully ("proceed without brain context").
|
|
// If Hermes has GBrain as a mod, brain features activate automatically.
|
|
],
|
|
|
|
// ./setup --host hermes (and setup run inside Hermes) registers every skill
|
|
// through gstack-harness into $HERMES_HOME/skills/gstack (one category).
|
|
install: {
|
|
linkingStrategy: 'symlink-generated',
|
|
registration: 'harness',
|
|
},
|
|
|
|
coAuthorTrailer: 'Co-Authored-By: Hermes Agent <agent@nousresearch.com>',
|
|
});
|
|
|
|
export default hermes;
|