/great-cto:board [--port N] [--no-open] [--restart]from great-cto
Opens a local admin board (kanban, cost, pipeline, inbox, memory) and starts it in the background if not already running.
Ships in great-cto. Installing the plugin adds it to Claude Code.
You are the /board command. Ensure the admin board is running on
localhost and open it in the user's default browser. Output a short
status line — under 8 lines, no preamble.
PORT=3141
NO_OPEN=false
RESTART=false
for arg in "$@"; do
case "$arg" in
--port=*) PORT="${arg#*=}" ;;
--port) shift; PORT="$1" ;;
--no-open) NO_OPEN=true ;;
--restart) RESTART=true ;;
esac
done
echo "ARGS port=$PORT no_open=$NO_OPEN restart=$RESTART"
HTTP_CODE=$(curl -sf -o /dev/null -w '%{http_code}' "http://127.0.0.1:$PORT/api/projects" 2>/dev/null || echo 000)
if [ "$HTTP_CODE" = "200" ] && [ "$RESTART" = "false" ]; then
echo "ALREADY_RUNNING port=$PORT"
# If --no-open not set, open browser
if [ "$NO_OPEN" = "false" ]; then
open "http://localhost:$PORT/" 2>/dev/null || \
xdg-open "http://localhost:$PORT/" 2>/dev/null || true
fi
exit 0
fi
If ALREADY_RUNNING was printed, stop here and report:
✓ Board already running at http://localhost:$PORT/
if [ "$RESTART" = "true" ]; then
pkill -9 -f "great_cto.*board.*--port $PORT" 2>/dev/null
pkill -9 -f "great-cto board" 2>/dev/null
# Free the port if something else holds it
PID_ON_PORT=$(lsof -ti :$PORT 2>/dev/null | head -1)
[ -n "$PID_ON_PORT" ] && kill -9 "$PID_ON_PORT" 2>/dev/null
sleep 1
echo "RESTARTED"
fi
# Find the great-cto binary — prefer the plugin's own CLI when it is BUILT,
# fall back to PATH. A marketplace install is a git clone without the build
# (dist/ is gitignored), so index.mjs being there proves nothing.
PLUGIN_DIR=${CLAUDE_PLUGIN_ROOT:-$(ls -d ~/.claude/plugins/cache/*/great_cto/*/ 2>/dev/null | awk -F'/plugins/cache/' '{split($NF,p,"/"); print p[3], $0}' | sort -V | tail -1 | cut -d' ' -f2- | sed 's|/$||')}
if [ -f "$PLUGIN_DIR/packages/cli/dist/main.js" ]; then
CLI="node $PLUGIN_DIR/packages/cli/index.mjs"
elif command -v great-cto >/dev/null 2>&1; then
CLI="great-cto"
else
echo "ERROR: the plugin copy has no built CLI and great-cto is not in PATH."
echo "Install: npm install -g great-cto"
exit 1
fi
# Detach board so it survives this command's process exit
LOG_DIR="$HOME/.great_cto"
mkdir -p "$LOG_DIR"
LOG_FILE="$LOG_DIR/board.log"
OPEN_FLAG=""
[ "$NO_OPEN" = "true" ] && OPEN_FLAG="--no-open"
nohup $CLI board --port "$PORT" $OPEN_FLAG > "$LOG_FILE" 2>&1 &
BOARD_PID=$!
# Detach so board outlives this shell
disown $BOARD_PID 2>/dev/null || true
echo "STARTED pid=$BOARD_PID port=$PORT log=$LOG_FILE"
# Poll for up to 5 seconds
for i in 1 2 3 4 5 6 7 8 9 10; do
HTTP_CODE=$(curl -sf -o /dev/null -w '%{http_code}' "http://127.0.0.1:$PORT/api/projects" 2>/dev/null || echo 000)
[ "$HTTP_CODE" = "200" ] && break
sleep 0.5
done
if [ "$HTTP_CODE" = "200" ]; then
if [ "$NO_OPEN" = "false" ]; then
open "http://localhost:$PORT/" 2>/dev/null || \
xdg-open "http://localhost:$PORT/" 2>/dev/null || true
fi
echo "READY url=http://localhost:$PORT/"
else
echo "FAILED — board did not respond after 5s. Check $LOG_FILE."
tail -10 "$LOG_FILE" 2>/dev/null
exit 1
fi
Render exactly this format (no extra prose):
✓ Board ready · http://localhost:<port>/
log: ~/.great_cto/board.log
pid: <pid>
to stop: kill <pid> (or restart: /board --restart)
If ALREADY_RUNNING and not --restart:
✓ Board already running · http://localhost:<port>/
(use /board --restart to kill + relaunch)
If FAILED:
✗ Board failed to start on port <port>.
log tail:
<last 5 lines of LOG_FILE>
Try: /board --restart
Or: /board --port 3142 (different port)
nohup ... & plus
disown keeps it alive after this command exits.~/.great_cto/projects.json for project registry, so
it serves the full multi-project view automatically.~/.great_cto/verdicts/ (verdict logs) and
docs/plans/ in each registered project.kill <pid> or
pkill -f "great-cto board" to actually stop.What the command file sets; muted values are Claude Code's defaults
haiku7-day visitors to each command page
npx claudepluginhub avelikiy/great_cto --plugin great_cto21 commands in this plugin
/agentDispatch by argumentManage an agent like an employee — review its record, generate its evals, evolve its prompt against held-out evals, or retire it./auditRun itHave an existing codebase? Run it — you get the detected stack, a gap list with severity and file:line evidence, a task per gap, and a PROJECT.md. Same as `/start audit`./crystallizeSetupAfter a session or an incident, turn what happened into reusable knowledge — `learn` captures this session's lessons, review/approve promotes incident patterns into agent improvements, `skill` turns a repeating procedure into a skill./digestStep 0 — Dispatch by modeFriday review — what shipped, what broke, what it cost; add `cost`, `slo`, `gov` or `sessions` for the detail. Weekly engineering digest (velocity, incident trend, tech debt, ADR decisions, open gates, CTO recommendation); add `board` for board-report format./doctorSetupSomething off with great_cto, or just upgraded it? Run it — you get a health report (pipeline state, missing artefacts, hooks, last run per agent, permission denials, an outdated PROJECT.md schema); `--fix` applies the safe fixes, including the schema upgrade./exceptionStep 1 — Parse the sub-commandSigned gate-exception registry — replace ad-hoc --admin / --no-verify bypasses with an auditable, signed, expiring record (who · why · gate · scope · expiry). Create / list / check exceptions.Other plugins' commands for the same job