Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
"RUVECTOR_WASM_SIZE_LIMIT_KB": "3072",
"RUVECTOR_INTELLIGENCE_ENABLED": "true",
"RUVECTOR_LEARNING_RATE": "0.1",
"INTELLIGENCE_MODE": "treatment"
"INTELLIGENCE_MODE": "treatment",
"RUVECTOR_TELEMETRY_ENDPOINT": "",
"RUVECTOR_RETENTION_DAYS": "30",
"RUVECTOR_PERMISSION_MODE": "acceptEdits",
"RUVECTOR_SDK_INTEGRATION": "true"
},
"permissions": {
"allow": [
Expand Down Expand Up @@ -70,7 +74,7 @@
{
"type": "command",
"timeout": 1000,
"command": "/usr/local/bin/ruvector-cli hooks remember \"Reading: $TOOL_INPUT_file_path\" -t file_access --silent"
"command": "/usr/local/bin/ruvector-cli hooks remember \"Reading: $TOOL_INPUT_file_path\" -t file_access 2>/dev/null || true"
}
]
},
Expand All @@ -80,7 +84,7 @@
{
"type": "command",
"timeout": 1000,
"command": "/usr/local/bin/ruvector-cli hooks remember \"Search: $TOOL_INPUT_pattern\" -t search_pattern --silent"
"command": "/usr/local/bin/ruvector-cli hooks remember \"Search: $TOOL_INPUT_pattern\" -t search_pattern 2>/dev/null || true"
}
]
},
Expand All @@ -90,7 +94,7 @@
{
"type": "command",
"timeout": 1000,
"command": "/usr/local/bin/ruvector-cli hooks remember \"Agent: $TOOL_INPUT_subagent_type\" -t agent_spawn --silent"
"command": "/usr/local/bin/ruvector-cli hooks remember \"Agent: $TOOL_INPUT_subagent_type\" -t agent_spawn 2>/dev/null || true"
}
]
}
Expand Down
51 changes: 51 additions & 0 deletions .claude/statusline-command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,57 @@ if [ -n "$INTEL_FILE" ]; then

echo

# ═══════════════════════════════════════════════════════════════════════════════
# LINE 4: Four Attention Mechanisms
# ═══════════════════════════════════════════════════════════════════════════════
# Show attention status based on what's been learned

# Get top Q-value pattern for confidence indicator
TOP_Q=$(echo "$INTEL" | jq -r '
.patterns // {} | to_entries |
sort_by(-.value.q_value) | .[0].value.q_value // 0
' 2>/dev/null | awk '{printf "%.0f", $1 * 100}')

# Calculate attention indicators
if [ "$TOP_Q" -ge 80 ]; then
NEURAL_STATUS="${GREEN}●${RESET}"
elif [ "$TOP_Q" -ge 50 ]; then
NEURAL_STATUS="${YELLOW}◐${RESET}"
else
NEURAL_STATUS="${DIM}○${RESET}"
fi

if [ "$TRAJ_COUNT" -ge 100 ]; then
DAG_STATUS="${GREEN}●${RESET}"
elif [ "$TRAJ_COUNT" -ge 10 ]; then
DAG_STATUS="${YELLOW}◐${RESET}"
else
DAG_STATUS="${DIM}○${RESET}"
fi

if [ "$AGENT_COUNT" -gt 0 ]; then
GRAPH_STATUS="${GREEN}●${RESET}"
elif [ "$FILE_SEQ_COUNT" -gt 0 ]; then
GRAPH_STATUS="${YELLOW}◐${RESET}"
else
GRAPH_STATUS="${DIM}○${RESET}"
fi

if [ "$SESSION_COUNT" -ge 5 ]; then
SSM_STATUS="${GREEN}●${RESET}"
elif [ "$SESSION_COUNT" -ge 1 ]; then
SSM_STATUS="${YELLOW}◐${RESET}"
else
SSM_STATUS="${DIM}○${RESET}"
fi

printf "${DIM}⚡ Attention:${RESET}"
printf " ${NEURAL_STATUS}${CYAN}Neural${RESET}"
printf " ${DAG_STATUS}${YELLOW}DAG${RESET}"
printf " ${GRAPH_STATUS}${MAGENTA}Graph${RESET}"
printf " ${SSM_STATUS}${BLUE}SSM${RESET}"
echo

else
# No intelligence file - show initialization hint
printf "${DIM}🧠 RuVector: run 'npx ruvector hooks session-start' to initialize${RESET}\n"
Expand Down
Loading