skills: skill tool, YAML frontmatter, disable-model-invocation, argument-hint

This commit is contained in:
hermes committed 2026-10-09 14:49:38 +00:00
1 parent 7e29515821
commit 199f337662
12 files changed
+328 -121

No files matched your search

+4 -2
View File
@@ -1,6 +1,7 @@
//! Built-in tools: read, write, edit, bash.
pub mod codemode;
pub mod skill;
use async_trait::async_trait;
use hx_ai::ToolSpec;
@@ -14,7 +15,7 @@ const MAX_BYTES: usize = 20_000;
/// bash keeps this much of the start (command echo, first errors) and the rest from the end.
const HEAD_BYTES: usize = 4_000;
fn spec(name: &str, desc: &str, schema: Value) -> ToolSpec {
pub(crate) fn spec(name: &str, desc: &str, schema: Value) -> ToolSpec {
ToolSpec {
name: name.into(),
description: desc.into(),
@@ -65,7 +66,8 @@ pub fn registry() -> Registry {
.add(Bash)
.add(AskUser)
.add(MemoryWrite)
.add(MemoryForget);
.add(MemoryForget)
.add(skill::Skill);
r
}