Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.githits.com/llms.txt

Use this file to discover all available pages before exploring further.

Feedback lets you report whether GitHits results helped. You can anchor feedback to a specific Code Examples result with a solution_id, or submit generic session feedback for any GitHits tool.

How agents use it

Agents can call the feedback MCP tool after a result is accepted, rejected, or found to be missing important context. You can also submit feedback directly from the CLI.
npx githits@latest feedback <solution_id> --accept
npx githits@latest feedback <solution_id> --reject --message "Example used an outdated API"
For generic tool feedback, omit the solution_id and include the tool name:
npx githits@latest feedback --reject --tool code_grep --message "Missed the debounce overload in npm:lodash"

Parameters

solution_id
string
The solution_id from a prior get_example response. Pass it to anchor feedback to that specific result. Omit it for generic session or tool feedback.
accepted
boolean
required
true for positive feedback. false for negative feedback.
feedback_text
string
Optional context about what worked or did not work. Strongly recommended when solution_id is omitted.
tool_name
string
Optional name of the GitHits tool or CLI command that produced the result being rated, such as get_example, search, or code_grep.

MCP tool reference

MCP toolCLI commandPurpose
feedbacknpx githits@latest feedbackSubmit thumbs up or thumbs down for a result, tool, or session