hematite-cli 0.11.0

Senior SysAdmin, Network Admin, Data Analyst, and Software Engineer living in your terminal. A high-precision local AI agent harness for LM Studio, Ollama, and other local OpenAI-compatible runtimes that runs 100% on your own silicon. Reads repos, edits files, runs builds, inspects full network state and workstation telemetry, and runs real Python/JS for data analysis.
Documentation
use serde_json::{json, Value};

pub fn get_scoping_definitions() -> Vec<Value> {
    vec![
        json!({
            "name": "auto_pin_context",
            "description": "Select 1-3 core files to 'Lock' into prioritized memory. \
                             Use this to ensure the most important architecture files \
                             are always visible during complex refactorings.",
            "parameters": {
                "type": "object",
                "properties": {
                    "paths": {
                        "type": "array",
                        "items": { "type": "string" },
                        "description": "List of relative paths to pin (max 3)."
                    },
                    "reason": {
                        "type": "string",
                        "description": "Brief explanation of why these files are the project's 'Core' for the current task."
                    }
                },
                "required": ["paths", "reason"]
            }
        }),
        json!({
            "name": "list_pinned",
            "description": "List all files currently pinned in the model's active context.",
            "parameters": {
                "type": "object",
                "properties": {}
            }
        }),
    ]
}