Add support for morph-edit
This commit is contained in:
@@ -369,7 +369,7 @@ EOF
|
||||
echo ""
|
||||
if [[ "$NO_INTEGRATE" != "true" ]]; then
|
||||
echo "Step 2: Claude CLI integration"
|
||||
echo " claude -p <integration-prompt> --allowedTools Read,Edit,Write --permission-mode acceptEdits"
|
||||
echo " claude -p <integration-prompt> --allowedTools Read,Edit,Write,mcp__morph-fast-tools__edit_file --permission-mode acceptEdits"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
@@ -419,13 +419,13 @@ $(cat "$PLAN_FILE")"
|
||||
The original plan is at: ${PLAN_FILE}
|
||||
ChatGPT's feedback is at: ${FEEDBACK_FILE}
|
||||
|
||||
You have Read and Edit tools. Edit the plan file directly — do NOT output the plan content to stdout.
|
||||
You have Read, Edit, and the Morph edit_file MCP tool. Prefer the Morph edit_file tool (mcp__morph-fast-tools__edit_file) for edits — it's faster and handles large changes better than legacy Edit. Edit the plan file directly — do NOT output the plan content to stdout.
|
||||
- Preserve the YAML frontmatter block (between the --- delimiters) at the top unchanged.
|
||||
- Only modify the content below the frontmatter.
|
||||
- Print a brief summary to stdout as you work: which changes you're accepting, rejecting, or modifying, and why. Keep it concise — bullet points, not essays."
|
||||
|
||||
local CLAUDE_STREAM_ARGS=(claude -p "$CLAUDE_PROMPT"
|
||||
--allowedTools "Read,Edit,Write"
|
||||
--allowedTools "Read,Edit,Write,mcp__morph-fast-tools__edit_file,mcp__morph-fast-tools__warpgrep_codebase_search"
|
||||
--permission-mode acceptEdits
|
||||
--add-dir "$PLAN_DIR"
|
||||
--output-format stream-json
|
||||
|
||||
Reference in New Issue
Block a user