Files
hakorune/tools/codex-tmux-driver/README-AUTO-BRIDGE.md
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

97 lines
2.2 KiB
Markdown
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.

# 🌉 Codex-Claude Auto Bridge
## 🎯 機能
CodexとClaudeの間で応答を自動的に橋渡しするシステムです。
### できること
- ✅ Codexの出力を自動検知
- ✅ 出力完了を判定Working状態の終了を検知
- ✅ 応答内容を抽出してファイルに保存
- ✅ Claudeが読める形式で出力
- ✅ tmux経由でCodexにメッセージ送信
## 📦 構成
1. **codex-output-watcher.js** - Codexの画面を監視
2. **codex-claude-auto-bridge.js** - 自動橋渡しシステム
3. **tmux-codex-controller.js** - tmux制御
## 🚀 使い方
### 1. Codexをtmuxで起動
```bash
./tmux-launch-only.sh
```
### 2. 自動ブリッジを起動
```bash
node codex-claude-auto-bridge.js
```
### 3. 最初のメッセージを送る
```bash
node codex-claude-auto-bridge.js "Nyashプロジェクトについて教えて"
```
### 4. Codexの応答を確認
```bash
cat codex-response.txt
```
### 5. 応答を読んで次のメッセージを送る
```bash
tmux send-keys -t codex-safe "次の質問" Enter
```
## 🔄 自動化フロー
```
Claude → メッセージ作成
tmux send-keys → Codexに送信
Codex → 処理中Working...
codex-output-watcher → 完了検知
codex-response.txt → 応答保存
Claude → ファイルを読んで返答
```
## 💡 高度な使い方
### 監視だけする
```javascript
const watcher = new CodexOutputWatcher();
watcher.on('response', (response) => {
console.log('Got response:', response);
});
watcher.start();
```
### プログラムから制御
```javascript
const bridge = new CodexClaudeAutoBridge();
await bridge.start();
await bridge.sendToCodex("質問");
// codex-response.txt に応答が保存される
```
## ⚠️ 注意事項
- Codexが勝手に動作しないよう監視が必要
- tmuxセッションは使用後に必ず終了する
- 応答ファイルは上書きされるので注意
## 🐛 トラブルシューティング
**Q: 応答が検出されない**
A: Working状態が終わるまで待ってください
**Q: 文字化けする**
A: ANSIエスケープシーケンスが含まれている可能性があります
**Q: tmuxエラー**
A: セッション名が正しいか確認してください