crabtalk-runtime 0.0.20

Crabtalk agent runtime — tool dispatch, MCP, skills, and memory
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! OS hook — shell tool for agents.

use std::fmt::Write;

pub mod edit;
pub mod read;
pub mod tool;

/// Build an `<environment>` XML block with OS info.
pub fn environment_block() -> String {
    let mut buf = String::from("\n\n<environment>\n");
    let _ = writeln!(buf, "os: {}", std::env::consts::OS);
    buf.push_str("</environment>");
    buf
}