Description

Self improve verify sandbox tool

Builds sandbox, runs design tests, checks tool exists in source, and invokes the tool (TOOL TEST PASSED). Uses saved spec if omitted.

Included in Version 8

Dynamically extracted tool implementation.
How to register SelfImprovementToolscsharp
registry.Register(new AgentTool(            "self_improve_verify_sandbox_tool",            "Builds sandbox, runs design tests, checks tool exists in source, and invokes the tool (TOOL TEST PASSED). Uses saved spec if omitted.",            InvokeVerifySandbox,            new            {                type = "object",                properties = new                {                    tool_name = new { type = "string", description = "Optional if set_tool_spec was called." },                },            },            ToolCategory.Self));
Helper classes for SelfImprovementToolscsharp
    private string InvokeVerifySandbox(string argumentsJson)    {        var paths = RequirePaths();        if (!Directory.Exists(paths.Sandbox))            return "Error: sandbox does not exist.";        var spec = ResolveToolSpec(argumentsJson);        if (string.IsNullOrWhiteSpace(spec.ToolName))            return "Error: No tool_name. Call self_improve_set_tool_spec first or pass tool_name.";        return SandboxVerificationService.VerifyTool(paths, spec);    }