mirror of
https://github.com/mikeyobrien/ralph-orchestrator.git
synced 2026-04-25 07:05:57 +03:00
[PR #124] [CLOSED] feat: add claude session controls #149
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ralph-orchestrator#149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/mikeyobrien/ralph-orchestrator/pull/124
Author: @starworld
Created: 1/27/2026
Status: ❌ Closed
Base:
main← Head:feature/claude-session-controls📝 Commits (1)
c648816feat: add claude session controls📊 Changes
4 files changed (+185 additions, -2 deletions)
View changed files
📝
README.md(+16 -0)📝
crates/ralph-adapters/Cargo.toml(+1 -0)📝
crates/ralph-adapters/src/cli_backend.rs(+137 -2)📝
crates/ralph-core/src/config.rs(+31 -0)📄 Description
概要
Ralph Orchestrator が Claude CLI セッションを構成するための設定機能を追加します。
Ralph 側に独自のプラグイン/Skills 機構を実装することなく、Claude Code の既存機能(Plugins, MCP, Tools)を安全かつ柔軟に制御できるようになります。
主な変更点
cli.claudeセクションにて以下を設定可能になりましたplugin_dirs:--plugin-dirで読み込むディレクトリ(~展開対応)mcp_configs:--mcp-configで読み込む設定ファイル(~展開対応)allowed_tools:--allowedToolsで許可するツールリストappend_system_prompts:--append-system-promptで直接渡す文字列append_system_prompt_files: ポリシーファイルを読み込んで system prompt として渡す(読み込み失敗時は Warn)command == "claude") に依存せず、バックエンドの種類を型安全に判定するようにしました。これにより、コマンドをフルパスやラッパーに変更しても Claude 特有の処理(temp file, system prompt append)が正しく動作します。cli.command設定により、Claude CLI のパスやラッパーコマンドを変更可能になりました。cli.argsを最後に結合するため、既存のカスタム引数設定を壊しません。互換性の保証
既存の設定ファイルで
cli.claudeを指定しない場合、Claude backend の起動引数は従来のデフォルトと同等で動作します(破壊的変更はありません)。設計上の留意点
cli.argsは互換性維持のため最後に結合されていますが、cli.claude.allowed_toolsなどで設定したフラグ(例:--allowedTools)と重複する引数をcli.argsで追加した場合、挙動が不明確になる可能性があります。基本はcli.claude.*設定をご利用ください。🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.