Files
hakorune/tools/codex-tmux-driver/start-claude-tmux.sh
Moe Charm 4e1b595796 AI協調開発研究ドキュメントの完成と Phase 10.9-β 進捗
【AI協調開発研究】
- AI二重化モデルの学術論文draft完成(workshop_paper_draft.md)
- 「隠れた危機」分析とbirthの原則哲学化
- TyEnv「唯一の真実」協調会話を保存・研究資料に統合
- papers管理構造の整備(wip/under-review/published分離)

【Phase 10.9-β HostCall進捗】
- JitConfigBox: relax_numeric フラグ追加(i64→f64コアーション制御)
- HostcallRegistryBox: 署名検証・白黒リスト・コアーション対応
- JitHostcallRegistryBox: Nyash側レジストリ操作API
- Lower統合: env直読 → jit::config::current() 参照に統一
- 数値緩和設定: NYASH_JIT_HOSTCALL_RELAX_NUMERIC/Config.set_flag

【検証サンプル拡充】
- math.sin/cos/abs/min/max 関数スタイル(examples/jit_math_function_style_*.nyash)
- 境界ケース: 署名不一致・コアーション許可・mutating拒否サンプル
- E2E実証: String.length→allow, Array.push→fallback, math関数の署名一致観測

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-28 12:09:09 +09:00

51 lines
1.6 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Claude専用のtmux起動スクリプト
SESSION_NAME="${1:-claude}"
# 第2引数がなければデフォルトのClaudeバイナリを使用
if [ $# -ge 2 ]; then
CLAUDE_BINARY="$2"
shift 2
ADDITIONAL_ARGS="$@"
else
CLAUDE_BINARY="/home/tomoaki/.volta/tools/image/node/22.16.0/bin/claude"
shift 1
ADDITIONAL_ARGS=""
fi
# Hook serverのポート
HOOK_PORT=${HOOK_SERVER_PORT:-8770}
echo "🚀 Claude起動設定:"
echo " セッション名: $SESSION_NAME"
echo " Claudeバイナリ: $CLAUDE_BINARY"
echo " 追加引数: $ADDITIONAL_ARGS"
echo " Hook server: ws://localhost:$HOOK_PORT"
echo ""
# 既存セッションがあれば削除
if tmux has-session -t "$SESSION_NAME" 2>/dev/null; then
echo "⚠️ 既存セッション '$SESSION_NAME' を削除します..."
tmux kill-session -t "$SESSION_NAME"
fi
# ラッパースクリプトのパス
WRAPPER_PATH="$(cd "$(dirname "$0")" && pwd)/claude-hook-wrapper.js"
# tmuxセッションを作成
echo "📦 新しいtmuxセッションを作成中..."
tmux new-session -d -s "$SESSION_NAME" \
"export CLAUDE_REAL_BIN='$CLAUDE_BINARY'; \
export CLAUDE_HOOK_SERVER='ws://localhost:$HOOK_PORT'; \
export CLAUDE_HOOK_ENABLE=true; \
echo '🔌 Connecting to hook-server at port $HOOK_PORT...'; \
node '$WRAPPER_PATH' $ADDITIONAL_ARGS"
# 成功メッセージ
echo "✅ Claude起動完了"
echo ""
echo "📋 便利なコマンド:"
echo " 接続: tmux attach -t $SESSION_NAME"
echo " メッセージ送信: tmux send-keys -t $SESSION_NAME 'your message' Enter"
echo " セッション確認: tmux ls"
echo " 終了: tmux kill-session -t $SESSION_NAME"