feat: add consult (multi-model tribunal) CLI tool

Fix NoneType bug in generate_report (counterArgument can be None).
Add consult to install.sh alongside ctx for symlink-based installation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
DexterFromLab 2026-03-13 13:17:48 +01:00
parent 55ba8d0969
commit f6b3a3e080
2 changed files with 1276 additions and 2 deletions

1268
consult Executable file

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,7 @@
set -euo pipefail
# BTerminal installer
# Installs BTerminal + ctx (Claude Code context manager)
# Installs BTerminal + ctx (context manager) + consult (multi-model tribunal)
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INSTALL_DIR="$HOME/.local/share/bterminal"
@ -40,8 +40,9 @@ mkdir -p "$INSTALL_DIR" "$BIN_DIR" "$CONFIG_DIR" "$CTX_DIR" "$ICON_DIR"
cp "$SCRIPT_DIR/bterminal.py" "$INSTALL_DIR/bterminal.py"
cp "$SCRIPT_DIR/ctx" "$INSTALL_DIR/ctx"
cp "$SCRIPT_DIR/consult" "$INSTALL_DIR/consult"
cp "$SCRIPT_DIR/bterminal.svg" "$ICON_DIR/bterminal.svg"
chmod +x "$INSTALL_DIR/bterminal.py" "$INSTALL_DIR/ctx"
chmod +x "$INSTALL_DIR/bterminal.py" "$INSTALL_DIR/ctx" "$INSTALL_DIR/consult"
# ─── Symlinks ──────────────────────────────────────────────────────────
@ -49,9 +50,11 @@ echo "[3/5] Creating symlinks in $BIN_DIR..."
ln -sf "$INSTALL_DIR/bterminal.py" "$BIN_DIR/bterminal"
ln -sf "$INSTALL_DIR/ctx" "$BIN_DIR/ctx"
ln -sf "$INSTALL_DIR/consult" "$BIN_DIR/consult"
echo " bterminal -> $INSTALL_DIR/bterminal.py"
echo " ctx -> $INSTALL_DIR/ctx"
echo " consult -> $INSTALL_DIR/consult"
# ─── Init ctx database ────────────────────────────────────────────────
@ -90,6 +93,9 @@ echo ""
echo "Context manager:"
echo " ctx --help"
echo ""
echo "Multi-model tribunal:"
echo " consult --help"
echo ""
echo "Make sure $BIN_DIR is in your PATH."
echo "If not, add to ~/.bashrc:"
echo " export PATH=\"\$HOME/.local/bin:\$PATH\""