-
Notifications
You must be signed in to change notification settings - Fork 218
feat(mcp): ask subagent #814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
4ed56af
ee6a423
865d88e
f1e264f
6b71879
e689590
f04dd33
2654454
1561c72
e8f9d29
5b89896
2f1b008
c3cf085
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -234,6 +234,32 @@ Get a list of commits for a given repository. | |||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| </details> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ### list_language_models | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| Lists the available language models configured on the Sourcebot instance. Use this to discover which models can be specified when calling `ask_codebase`. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| <details> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <summary>Parameters</summary> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| This tool takes no parameters. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| </details> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ### ask_codebase | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| Ask a natural language question about the codebase. This tool uses an AI agent to autonomously search code, read files, and find symbol references/definitions to answer your question. Returns a detailed answer in markdown format with code references, plus a link to view the full research session in the Sourcebot web UI. | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| <details> | ||||||||||||||||||||||||||||||||||||||||||||||||||
| <summary>Parameters</summary> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| | Name | Required | Description | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| |:----------------|:---------|:-----------------------------------------------------------------------------------------------------------------------------------------------| | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | `query` | yes | The query to ask about the codebase. | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | `repos` | no | The repositories that are accessible to the agent during the chat. If not provided, all repositories are accessible. | | ||||||||||||||||||||||||||||||||||||||||||||||||||
| | `languageModel` | no | The language model to use for answering the question. Object with `provider` and `model`. If not provided, defaults to the first model in the config. Use `list_language_models` to see available options. | | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+248
to
+260
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix minor doc/formatting nits (Markdown + table alignment). ✏️ Suggested doc fix-Ask a natural language question about the codebase. This tool uses an AI agent to autonomously search code, read files, and find symbol references/definitions to answer your question. Returns a detailed answer in markdown format with code references, plus a link to view the full research session in the Sourcebot web UI.
+Ask a natural language question about the codebase. This tool uses an AI agent to autonomously search code, read files, and find symbol references/definitions to answer your question. Returns a detailed answer in Markdown format with code references, plus a link to view the full research session in the Sourcebot web UI.
@@
-| Name | Required | Description |
-|:----------------|:---------|:-----------------------------------------------------------------------------------------------------------------------------------------------|
-| `query` | yes | The query to ask about the codebase. |
-| `repos` | no | The repositories that are accessible to the agent during the chat. If not provided, all repositories are accessible. |
-| `languageModel` | no | The language model to use for answering the question. Object with `provider` and `model`. If not provided, defaults to the first model in the config. Use `list_language_models` to see available options. |
+| Name | Required | Description |
+| :-------------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `query` | yes | The query to ask about the codebase. |
+| `repos` | no | The repositories that are accessible to the agent during the chat. If not provided, all repositories are accessible. |
+| `languageModel` | no | The language model to use for answering the question. Object with `provider` and `model`. If not provided, defaults to the first model in the config. Use `list_language_models` to see options. |📝 Committable suggestion
Suggested change
🧰 Tools🪛 LanguageTool[uncategorized] ~250-~250: Did you mean the formatting language “Markdown” (= proper noun)? (MARKDOWN_NNP) 🪛 markdownlint-cli2 (0.20.0)[warning] 259-259: Table column style (MD060, table-column-style) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||
| </details> | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| ## Supported Code Hosts | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Sourcebot supports the following code hosts: | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalize “Markdown” (proper noun).
Minor wording polish for the ask_codebase description.
✏️ Proposed fix
📝 Committable suggestion
🧰 Tools
🪛 LanguageTool
[uncategorized] ~220-~220: Did you mean the formatting language “Markdown” (= proper noun)?
Context: ... question. Returns a detailed answer in markdown format with code references, plus a lin...
(MARKDOWN_NNP)
🤖 Prompt for AI Agents