GetNotes Tools
sourcebot-dev/sourcebot
Tool นี้คืออะไร
Sourcebot เป็นเครื่องมือแบบ self-hosted ที่ช่วยให้นักพัฒนาเข้าใจโค้ดเบสของตนเองได้ง่ายขึ้น ด้วยความสามารถในการถามคำถามเกี่ยวกับโค้ด, ค้นหา, และนำทางโค้ดอย่างรวดเร็วและมีประสิทธิภาพ
ข้อมูลโปรเจกต์
ดาว
3.6K
Forks
324
License
ไม่ระบุ
อัปเดต GitHub ล่าสุด
18 ก.ค. 2569
เพิ่มใน GetNotes
20 ก.ค. 2569
Repository
sourcebot-dev/sourcebot
แปลและเรียบเรียงโดย AI
เนื้อหาฉบับภาษาไทย
ใช้อ่านเพื่อทำความเข้าใจเบื้องต้น โปรดตรวจสอบรายละเอียดสำคัญกับเอกสารต้นฉบับด้านล่าง
Sourcebot เป็นเครื่องมือแบบ self-hosted ที่ช่วยให้คุณเข้าใจโค้ดเบสของคุณ
- ถาม Sourcebot: ถามคำถามเกี่ยวกับโค้ดเบสของคุณ และให้ Sourcebot ให้คำตอบโดยละเอียดพร้อมการอ้างอิงแบบอินไลน์
- ค้นหาโค้ด: ค้นหาและนำทางข้ามทุก repo และ branch ของคุณ ไม่ว่าจะโฮสต์อยู่ที่ใด
ลองใช้ได้ใน เดโมสาธารณะ ของเรา!
https://github.com/user-attachments/assets/ed66a622-e38f-4947-a531-86df1e1e0218
คุณสมบัติ
ถาม Sourcebot
Ask Sourcebot ช่วยให้คุณสามารถถามคำถามที่ซับซ้อนเกี่ยวกับโค้ดเบสของคุณด้วยภาษาธรรมชาติ
มันใช้เครื่องมือค้นหาและนำทางโค้ดที่มีอยู่ของ Sourcebot เพื่อให้โมเดลการให้เหตุผลสามารถค้นหาโค้ดของคุณ, ติดตามการอ้างอิงการนำทางโค้ด, และให้คำตอบที่สมบูรณ์ด้วยการอ้างอิงแบบอินไลน์และโค้ดสนิปเปตที่สามารถนำทางได้
https://github.com/user-attachments/assets/8212cd16-683f-468f-8ea5-67455c0931e2
ค้นหาโค้ด
ค้นหาข้ามทุก repo/branch ของคุณในทุกแพลตฟอร์มโฮสต์โค้ด รวดเร็วอย่างเหลือเชื่อ และรองรับ regular expressions, ตัวกรองการค้นหา repo/ภาษา, ตรรกะแบบบูลีน และอื่นๆ
https://github.com/user-attachments/assets/3b381452-d329-4949-b6f2-2fc38952e481
การนำทางโค้ด
การนำทางโค้ดระดับ IDE (goto definition และ find references) ข้ามทุก repo ของคุณ
https://github.com/user-attachments/assets/e2da2829-71cc-40af-98b4-7ba52e945530
File Explorer ในตัว
สำรวจทุกไฟล์ในทุก repo ของคุณ UI ที่ทันสมัยพร้อมการเน้นไวยากรณ์, file tree, การนำทางโค้ด และอื่นๆ
https://github.com/user-attachments/assets/31ec0669-707d-4e03-b511-1bc33d44197a
ติดตั้ง Sourcebot
Sourcebot สามารถติดตั้งได้ในไม่กี่วินาทีโดยใช้ Docker Compose เยี่ยมชม เอกสาร ของเราสำหรับข้อมูลเพิ่มเติม
- 1ดาวน์โหลดไฟล์
docker-compose.yml
curl -o docker-compose.yml https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/docker-compose.yml- 1ในไดเรกทอรีเดียวกับไฟล์
docker-compose.ymlให้สร้าง ไฟล์การกำหนดค่า ไฟล์การกำหนดค่าเป็นไฟล์ JSON ที่กำหนดค่าพฤติกรรมของ Sourcebot รวมถึง repo ที่จะจัดทำดัชนี, ผู้ให้บริการโมเดลภาษา, ผู้ให้บริการการรับรองความถูกต้อง และอื่นๆ
echo '{
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v3/index.json",
// Comments are supported.
// This config creates a single connection to GitHub.com that
// indexes the Sourcebot repository
"connections": {
"starter-connection": {
"type": "github",
"repos": [
"sourcebot-dev/sourcebot"
]
}
}
}' > config.json- 1อัปเดต secrets ใน
docker-compose.ymlจากนั้นรัน Sourcebot โดยใช้:
docker compose up- 1เยี่ยมชม
http://localhost:3000เพื่อเริ่มใช้ Sourcebot
หากต้องการกำหนดค่า Sourcebot (จัดทำดัชนี repo ของคุณเอง, เชื่อมต่อ LLM ของคุณ ฯลฯ) โปรดดู เอกสาร ของเรา
Sourcebot รวบรวม ข้อมูลการใช้งานที่ไม่ระบุตัวตน โดยค่าเริ่มต้นเพื่อช่วยเราปรับปรุงผลิตภัณฑ์ ไม่มีการรวบรวมข้อมูลที่ละเอียดอ่อน แต่หากคุณต้องการปิดใช้งาน คุณสามารถทำได้โดยการตั้งค่าตัวแปรสภาพแวดล้อม SOURCEBOT_TELEMETRY_DISABLED เป็น true โปรดดู เอกสาร telemetry ของเราสำหรับข้อมูลเพิ่มเติม
สร้างจาก Source
การสร้างจาก source จำเป็นเฉพาะในกรณีที่คุณต้องการมีส่วนร่วม หากคุณต้องการใช้ Sourcebot เท่านั้น เราขอแนะนำให้ดู เอกสาร การโฮสต์ด้วยตนเองของเรา
หากคุณต้องการสร้างจาก source โปรดดูไฟล์ CONTRIBUTING.md สำหรับข้อมูลเพิ่มเติม
เอกสารโปรเจกต์
อ่านเอกสารต้นฉบับ
README วิธีติดตั้ง วิธีใช้งาน และข้อกำหนดจาก repository ต้นฉบับ

Sourcebot is a self-hosted code context layer for humans and AI agents. Index all your repos in one place so you and your agents can search and navigate them.
Get started
Run the setup wizard:
npx setup-sourcebotYou'll need Node.js (24 LTS recommended), Docker, and Docker Compose.
This wizard walks you through indexing your repos, optionally configuring a language model provider (for Ask Sourcebot), and then creates the config files for you and starts up Sourcebot.
For manual setup, use Docker Compose or the Helm chart. Check out our docs for more info on how to configure Sourcebot.
Code Context for Agents
Your agent can use Sourcebot MCP to search repos you haven't checked out locally. For example, it can find callers of an API in other services or read the implementation for dependencies that you don't have checked out locally.
The MCP server exposes code search, file reading, and symbol definitions and references for the repos you've indexed. Open Settings → MCP in Sourcebot to connect Claude Code, Codex, Cursor, or another MCP client. The MCP docs cover setup and authentication for each client.
Connect repos from GitHub, GitLab, Bitbucket, Azure DevOps, or local Git directories using the connection guides. Permission syncing controls access based on your code host's repository permissions.
Code Search
Code Search lets you search across all your indexed repos and branches in one place. Find uses of a dependency, track down a function, or look for a pattern across services without cloning each repo.
Use regular expressions and boolean queries, then narrow the results by repo, file, language, or symbol definition. Results include syntax-highlighted code, with repo and language filters alongside them.
Try it: example search in the public demo.
Ask Sourcebot
Ask Sourcebot answers questions about your codebase, including repos you haven't checked out locally. Ask how a feature works or what a migration would involve. Connectors let Ask access your apps and services with your permissions, so it can pull in context and take actions like creating a Linear or Jira issue with its findings. It searches your code and follows references using the same tools as the MCP server.
Open cited code alongside the answer, explore generated diagrams, and share the conversation with your team. Ask runs on a language model provider you configure (Bring Your Own Key), so you control where your code is sent.
Try it: explore an example Ask Sourcebot conversation in the public demo.
Try both in the public demo. See pricing for plan details.


