更多精彩内容,关注钛媒体微信号(ID:taimeiti),或者下载钛媒体App
这并非LLM的失败,而是方法固有的局限性。Grep只能进行字符串匹配。关于代码可达性、死代码、循环依赖、影响分析等结构性问题需要图遍历能力,而这超出了grep的能力范围。
,这一点在zoom下载中也有详细论述
pr.json - name: Categorize PR with Claude uses: anthropics/claude-code-action@v1 with: prompt: | Read pr.json to get the PR title. Categorize the PR into exactly ONE of: new-feature, bug-fix, documentation. Write only the category (nothing else) to category.txt. # Only allow Claude to read from, and write to specific files claude_args: "--allowedTools 'Read(./pr.json),Edit(./category.txt)'" anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} - name: Read category id: category # Don't trust and validate Claude output run: | read -r CATEGORY "$GITHUB_OUTPUT" else echo "::error::Unexpected category" exit 1 fi - name: Apply label env: PR_NUMBER: ${{ github.event.pull_request.number }} # Only inject the GitHub access token in the step that requires it GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use an environment variable to securely interpolate untrusted data # coming from Claude's output CATEGORY: ${{ steps.category.outputs.value }} run: gh pr edit "$PR_NUMBER" --add-label "kind/$CATEGORY""
If your ultimate goal is to do 100 pushups, I wouldn’t tell you to only do high-rep sets; those low-rep ones are useful too. But I’d still expect you to practice high reps for the skill, conditioning, and mental toughness that will be required to execute your goal.