Search the documentation
50 pages for comments.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it. Cut at 50, so a narrower query shows the rest.
content-moderation
Claude Developer Platform · in the page
about-claude/use-case-guides/content-moderation
…> ```python Python client = anthropic.Anthropic() allowed_user_comments = [ "This movie was great, I really enjoyed it. The main actor really killed it!", "I hate Mondays.", "…
define-tools
Claude Developer Platform · in the page
agents-and-tools/tool-use/define-tools
…/Tip> ### Model responses with tools When using tools, Claude often comments on what it's doing or responds naturally to the user before calling tools. For example, given the prompt "What's the wea…
text-editor-tool
Claude Developer Platform · in the page
agents-and-tools/tool-use/text-editor-tool
…edits. * **Documentation generation:** Ask Claude to add docstrings, comments, or README files to your code base. * **Test creation:** Have Claude create unit tests for your code based on its analysi…
Log at info level
Claude Developer Platform · in the page
agents-and-tools/tool-use/tool-runner
…odified result or mutate it in place depends on the SDK. See the code comments in each tab. <Tabs> <Tab title="Python"> ```python client = anthropic.Anthropic() # ... runner = clien…
Compliance API
Claude Developer Platform · in the page
api/compliance
…h the artifact and is not part of this record. - `"claude_artifact_comments_viewed"` An artifact's comments were viewed. - `"claude_artifact_created"` An artifact was created. - `"c…
Activities
Claude Developer Platform · in the page
api/compliance/activities
…h the artifact and is not part of this record. - `"claude_artifact_comments_viewed"` An artifact's comments were viewed. - `"claude_artifact_created"` An artifact was created. - `"c…
Query compliance activities
Claude Developer Platform · in the page
api/compliance/activities/list
…h the artifact and is not part of this record. - `"claude_artifact_comments_viewed"` An artifact's comments were viewed. - `"claude_artifact_created"` An artifact was created. - `"c…
effort
Claude Developer Platform · in the page
build-with-claude/effort
…ovide detailed summaries of changes * Include more comprehensive code comments ## Effort with thinking The `thinking` parameter controls whether Claude thinks in [thinking blocks](https://platform.c…
claude-prompting-best-practices
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/claude-prompting-best-practices
…t need extra configurability. - Documentation: Don't add docstrings, comments, or type annotations to code you didn't change. Only add comments where the logic isn't self-evident. - Defensive coding…
prompting-claude-fable-5
Claude Developer Platform · in the page
build-with-claude/prompt-engineering/prompting-claude-fable-5
…s at length, producing heavily-structured PR descriptions, or writing comments that narrate what the next line does. A short brevity instruction is as effective as listing each pattern: ```text wrap…
Rewind file changes with checkpointing
Claude Code CLI · in the page
agent-sdk/file-checkpointing
…example creates a small utility file, has the agent add documentation comments, shows you the changes, then asks if you want to rewind. Before you begin, make sure you have the [Claude Agent SDK inst…
Stream responses in real-time
Claude Code CLI · in the page
agent-sdk/streaming-output
…se async for message in query( prompt="Find all TODO comments in the codebase", options=options ): if isinstance(message, StreamEvent): event = message.e…
Get structured output from agents
Claude Code CLI · in the page
agent-sdk/structured-outputs
…d outputs work with multi-step tool use. The agent needs to find TODO comments in the codebase, then look up git blame information for each one. It autonomously decides which tools to use (Grep to sea…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…heme={null} I'm designing a CLI tool that helps developers track TODO comments across their codebase. Spawn three teammates to explore this from different angles: one on UX, one on technical architect…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…fferently depending on the command Claude runs: * When Claude edits, comments on, closes, or marks a pull request ready with `gh`, Claude Code links the pull request that the command's own output nam…
Share session output as artifacts
Claude Code CLI · in the page
artifacts
…anges. Everyone with the page open sees each update live. ## Collect comments on an artifact When you share an artifact within your organization, the people you share it with can leave comments on t…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…how to use it for creating issues, opening pull requests, and reading comments. Without `gh`, Claude can still use the GitHub API, but unauthenticated requests often hit rate limits. Claude is also e…
Claude Code changelog
Claude Code CLI · in the page
changelog
…ty conversation * Fixed prompts beginning with `/--` (e.g. Lean doc comments) being rejected as an unknown slash command instead of being sent to Claude * Fixed the `@` file picker staying open af…
Use Claude Code on the web
Claude Code CLI · in the page
claude-code-on-the-web
…o-fix-pull-requests): respond automatically to CI failures and review comments * [Security and isolation](#security-and-isolation): how sessions are isolated * [Limitations](#limitations): rate limits…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…onment files and a secrets config into every worktree Claude creates. Comments start with # and blank lines are ignored, same as .gitignore.', example: `# Local environment .env .env.local #…
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…hat let Claude read issues, list pull requests, fetch diffs, and post comments without any setup. These tools authenticate through the [GitHub proxy](#github-proxy) using whichever method you configur…
Code Review
Claude Code CLI · in the page
code-review
…eview analyzes your GitHub pull requests and posts findings as inline comments on the lines of code where it found issues. A fleet of specialized agents examine the code changes in the context of your…
Commands
Claude Code CLI · in the page
commands
…current branch's PR and pushes fixes when CI fails or reviewers leave comments. Detects the open PR from your checked-out branch with `gh pr view`; to watch a different PR, check out its branch first.…
Common workflows
Claude Code CLI · in the page
common-workflows
…```text wrap theme={null} find functions without proper JSDoc comments in the auth module ``` </Step> <Step title="Generate documentation"> ```text wrap theme={null} add JSDoc…
Desktop application
Claude Code CLI · in the page
desktop
…pe your feedback and press **Enter** to add the comment. After adding comments to multiple lines, submit all comments at once: * **macOS**: press **Cmd+Enter** * **Windows**: press **Ctrl+Enter** Cl…
Get started with the desktop app
Claude Code CLI · in the page
desktop-quickstart
…ations file by file, and comment on specific lines. Claude reads your comments and revises. Click **Review code** to have Claude evaluate the diffs itself and leave inline suggestions. **Adjust how m…
Environment variables
Claude Code CLI · in the page
env-vars
…| | `CLAUDE_CODE_ARTIFACT_COMMENTS` | Set to `0` to stop Claude reading and replying to [comments on an artifact](/docs/en/artifacts…
Error reference
Claude Code CLI · in the page
errors
…ne but doesn't parse as an array of keybinding blocks, even with `//` comments and trailing commas allowed * `Couldn't back up your Zed keymap; not modifying it.`: Claude Code couldn't copy the file t…
Claude Code GitHub Actions
Claude Code CLI · in the page
github-actions
…y of the repository to work in * `if`: keeps runners from starting on comments that don't mention `@claude`. The Claude Code GitHub Action also checks the trigger phrase itself before responding Once…
Use Claude Code GitHub Actions with cloud providers
Claude Code CLI · in the page
github-actions-cloud-providers
…identity"> The Claude Code GitHub Action pushes commits and posts comments through a GitHub identity. The [quick setup](/docs/en/github-actions#quick-setup) installs the official Claude GitHub App…
Claude Code with GitHub Enterprise Server
Claude Code CLI · in the page
github-enterprise-server
…ll requests | Read and write | Creating PRs and posting review comments…
Claude Code GitLab CI/CD
Claude Code CLI · in the page
gitlab-ci-cd
…u work with code: * Create and update MRs from issue descriptions or comments * Analyze performance regressions and propose optimizations * Implement features directly in a branch, then open an MR *…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…n to force a reload. * Verify your JSON is valid: trailing commas and comments aren't allowed * Confirm the settings file is in the correct location: `.claude/settings.json` for project hooks, `~/.cla…
Interactive mode
Claude Code CLI · in the page
interactive-mode
…rn off [artifact auto-replies](/docs/en/artifacts#let-claude-reply-to-comments-on-its-own) for the rest of it. Press twice within 3 seconds to confirm | Subagent control…
Customize keyboard shortcuts
Claude Code CLI · in the page
keybindings
…rn off [artifact auto-replies](/docs/en/artifacts#let-claude-reply-to-comments-on-its-own) for the rest of it | | `chat:cycleMod…
How Claude remembers your project
Claude Code CLI · in the page
memory
…norepos and large repos](/docs/en/large-codebases). Block-level HTML comments (`<!-- maintainer notes -->`) in CLAUDE.md files are stripped before the content is injected into Claude's context. Use t…
Claude Code on mobile
Claude Code CLI · in the page
mobile
…code-on-the-web#auto-fix-pull-requests) and fix CI failures or review comments as they arrive. To connect GitHub and set up your environment, follow the [web quickstart](/docs/en/web-quickstart), and…
Enterprise network configuration
Claude Code CLI · in the page
network-config
…ucture can reach your GHES host to clone repositories and post review comments. Sessions in a [self-hosted environment](/docs/en/self-hosted-environments-deploy#configure-git) reach your GHES host fro…
Output styles
Claude Code CLI · in the page
output-styles
…oftware engineering instructions, such as how to scope changes, write comments, and verify work, unless `keep-coding-instructions` is set to `true`. Output styles apply to the main conversation only:…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…details for that recipient. PR and issue bodies, commit messages, and comments count as this kind of outbound content when the repository is outside the trust boundary or public, including your organi…
Prompt library
Claude Code CLI · in the page
prompt-library
…ent', roles: ['docs'], prompt: 'find {scope} without {format} comments and add them, matching the style already used in the file', slots: { scope: 'the public functions in src/auth/'…
Automate work with routines
Claude Code CLI · in the page
routines
…. The routine applies your team's own review checklist, leaves inline comments for security, performance, and style issues, and adds a summary comment so human reviewers can focus on design instead of…
Run prompts on a schedule
Claude Code CLI · in the page
scheduled-tasks
…at the end of each iteration. The example below checks CI and review comments, with Claude waiting longer between iterations once the PR goes quiet: ```text theme={null} /loop check whether CI passe…
Example settings files
Claude Code CLI · in the page
settings-example
…e same file with a comment above each key; Claude Code doesn't accept comments in a settings file, so copy from the first tab. ## Your own settings One developer's personal settings. It picks a mode…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…| Show Claude's last response as comments when you press [Ctrl+G](/docs/en/interactive-mode#general-controls) to edit…
Extend Claude with skills
Claude Code CLI · in the page
skills
…Bash(gh *) --- ## Pull request context - PR diff: !`gh pr diff` - PR comments: !`gh pr view --comments` - Changed files: !`gh pr diff --name-only` ## Your task Summarize this pull request... ``` Su…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…ith proper filters - Use appropriate aggregations and joins - Include comments explaining complex logic - Format results for readability - Provide data-driven recommendations For each analysis: - Exp…
Configure your terminal for Claude Code
Claude Code CLI · in the page
terminal-config
…ft+Enter binding into your keymap, keeping your other keybindings and comments * If Claude Code can't read or parse the keymap, can't back it up, or can't verify the merged result, it [leaves the file…
Find bugs with ultrareview
Claude Code CLI · in the page
ultrareview
…egrates with your repository directly and posts findings as inline PR comments without a CLI step. ## How ultrareview compares to /code-review Both reviews examine code, but you use them at differen…
Use Claude Code in VS Code
Claude Code CLI · in the page
vs-code
…y opens the plan as a full Markdown document where you can add inline comments to give feedback before Claude begins. * **Edit automatically**: Claude makes edits without asking. * **Command menu**:…