name: wicked-brain:confirm description: | Confirm or contradict a brain link, adjusting its confidence score. Increases confidence when a link is confirmed by evidence, decreases it when contradicted. Tracks evidence_count for audit purposes.
Use when: "confirm this link", "contradict this connection", "adjust link confidence", "mark link as confirmed", "this link is wrong".
wicked-brain:confirm
You adjust the confidence score of a brain link based on user feedback.
Cross-Platform Notes
This skill uses npx wicked-brain-call for all server interaction. The CLI
works on macOS, Linux, and Windows; it discovers the brain, auto-starts the
server, and writes a per-call audit record under {brain}/calls/.
For the brain path default:
- macOS/Linux: ~/.wicked-brain
- Windows: %USERPROFILE%.wicked-brain
Config
Brain discovery + server lifecycle are handled by wicked-brain-call. Pass
--brain <path> to override the auto-detected brain, or set
WICKED_BRAIN_PATH. The CLI starts the server on first call (no manual
init required) and writes an audit record to {brain}/calls/ per call.
Parameters
- source_id (required): the ID of the source document that contains the link
- target_path (required): the target path the link points to
- verdict (required):
confirmorcontradict
Process
Step 1: Validate parameters
Ensure source_id, target_path, and verdict are provided.
verdict must be exactly "confirm" or "contradict".
Step 2: Submit the verdict to the server
npx wicked-brain-call confirm_link --param source_id={source_id} --param target_path={target_path} --param verdict={verdict}
Step 3: Report the result
If the response contains a confidence value, report back to the user:
- What the verdict was (
confirmedorcontradicted) - The updated confidence score (e.g.,
0.6) - The evidence_count (how many times this link has been evaluated)
Example success response:
Link {source_id} → {target_path} {verdict}ed.
Updated confidence: {confidence} (based on {evidence_count} evaluations)
If the API returns null (link not found), report:
No link found from {source_id} to {target_path}.
Use wicked-brain:search to verify the source document ID and target path.
If the API returns an error, report the error message.
Step 4: Log the action
Append an event to {brain_path}/_meta/log.jsonl:
{"ts":"{ISO}","op":"link_{verdict}","source_id":"{source_id}","target_path":"{target_path}","confidence":{new_confidence},"evidence_count":{evidence_count},"author":"agent:confirm"}
Use your Write tool or append via shell:
- macOS/Linux:
echo '...' >> {brain_path}/_meta/log.jsonl - Windows PowerShell:
Add-Content -Path "{brain_path}\_meta\log.jsonl" -Value '...'