Skip to content

Commit 03b71e3

Browse files
committed
Fix disallowed tools alias splitting
1 parent 05d772d commit 03b71e3

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

container/.devcontainer/scripts/setup-aliases.sh

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,32 @@ else
9393
fi
9494
9595
# oh-my-claude tools to disable (memory, preferences, coworker - keep only proxy tools)
96-
# Note: no quotes around tool names - they don't contain spaces and quotes would be passed literally
97-
_OMC_DISALLOWED_TOOLS='--disallowedTools mcp__oh-my-claude__remember mcp__oh-my-claude__recall mcp__oh-my-claude__get_memory mcp__oh-my-claude__forget mcp__oh-my-claude__list_memories mcp__oh-my-claude__memory_status mcp__oh-my-claude__compact_memories mcp__oh-my-claude__clear_memories mcp__oh-my-claude__summarize_memories mcp__oh-my-claude__add_preference mcp__oh-my-claude__list_preferences mcp__oh-my-claude__get_preference mcp__oh-my-claude__update_preference mcp__oh-my-claude__delete_preference mcp__oh-my-claude__match_preferences mcp__oh-my-claude__preference_stats mcp__oh-my-claude__coworker_task'
98-
99-
alias cc='CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/main-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions \$_OMC_DISALLOWED_TOOLS'
100-
alias claude='CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/main-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions \$_OMC_DISALLOWED_TOOLS'
96+
_OMC_DISALLOWED_TOOLS=(
97+
--disallowedTools
98+
mcp__oh-my-claude__remember
99+
mcp__oh-my-claude__recall
100+
mcp__oh-my-claude__get_memory
101+
mcp__oh-my-claude__forget
102+
mcp__oh-my-claude__list_memories
103+
mcp__oh-my-claude__memory_status
104+
mcp__oh-my-claude__compact_memories
105+
mcp__oh-my-claude__clear_memories
106+
mcp__oh-my-claude__summarize_memories
107+
mcp__oh-my-claude__add_preference
108+
mcp__oh-my-claude__list_preferences
109+
mcp__oh-my-claude__get_preference
110+
mcp__oh-my-claude__update_preference
111+
mcp__oh-my-claude__delete_preference
112+
mcp__oh-my-claude__match_preferences
113+
mcp__oh-my-claude__preference_stats
114+
mcp__oh-my-claude__coworker_task
115+
)
116+
117+
alias cc='CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/main-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions "\${_OMC_DISALLOWED_TOOLS[@]}"'
118+
alias claude='CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/main-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions "\${_OMC_DISALLOWED_TOOLS[@]}"'
101119
alias ccraw='command "\$_CLAUDE_BIN"'
102-
alias ccw='CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/writing-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions \$_OMC_DISALLOWED_TOOLS'
103-
alias cc-orc='CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/orchestrator-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions \$_OMC_DISALLOWED_TOOLS'
120+
alias ccw='CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/writing-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions "\${_OMC_DISALLOWED_TOOLS[@]}"'
121+
alias cc-orc='CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 "\$_CLAUDE_WRAP" "\$_CLAUDE_BIN" --system-prompt-file "\$CLAUDE_CONFIG_DIR/orchestrator-system-prompt.md" --permission-mode plan --allow-dangerously-skip-permissions "\${_OMC_DISALLOWED_TOOLS[@]}"'
104122
alias ccr-apply='codeforge config apply && (ccr restart 2>/dev/null || ccr start) && echo "CCR config applied and restarted"'
105123
alias omc-apply='codeforge config apply && (omc proxy restart 2>/dev/null || omc proxy start) && echo "OMC config applied and proxy restarted"'
106124

0 commit comments

Comments
 (0)