Canonical runtime-backed view of the artifact, independent from metadata governance.
{
"definition": {
"artifact_type": "tool",
"consumers": [
"hera",
"antigravity",
"vetra"
],
"description": "Generic self-improvement tool. Give it a target file, test command, metric, and goal — it autonomously optimizes through Hera IPC.",
"executor": {
"args_format": "--target {target} --test \"{test_command}\" --metric {metric} --goal \"{goal}\" --direction {direction} --max-iters {max_iterations} --metric-regex \"{metric_regex}\"",
"command": "bash /home/paulo/Programs/apps/OS/Autoresearch/scripts/autosolve.sh",
"type": "shell"
},
"name": "autosolve",
"owner_app": "OS",
"parameters": {
"properties": {
"direction": {
"default": "maximize",
"description": "Whether to maximize or minimize the metric",
"enum": [
"maximize",
"minimize"
],
"type": "string"
},
"goal": {
"description": "Natural language description of what to optimize",
"type": "string"
},
"max_iterations": {
"default": 20,
"description": "Maximum number of improvement iterations",
"type": "integer"
},
"metric": {
"description": "Name of the metric to extract from test output (e.g. 'test_pass_count', 'error_count', 'latency_ms', 'score')",
"type": "string"
},
"metric_regex": {
"description": "Optional custom regex to extract the metric value from test output",
"type": "string"
},
"target": {
"description": "Absolute path to the file to modify",
"type": "string"
},
"test_command": {
"description": "Shell command to evaluate changes (e.g. 'cargo test', 'npm test', 'python -m pytest')",
"type": "string"
}
},
"required": [
"target",
"test_command",
"metric",
"goal"
],
"type": "object"
},
"promotion_reason": "Universal code optimization capability usable by any app or agent",
"scope": "universal",
"version": "1.0.0"
},
"kind": "tool",
"summary": {
"description": "Generic self-improvement tool. Give it a target file, test command, metric, and goal — it autonomously optimizes through Hera IPC.",
"id": "autosolve",
"kind": "tool",
"path": "Tools/autosolve.json",
"title": "autosolve"
},
"validation_issues": [
"Tool 'type' should be 'function'"
]
}