มีด Swiss Army ที่ขับเคลื่อนด้วย CHATGPT สำหรับนักพัฒนาสมัยใหม่! เราให้บริการ wrapper CLI Git ที่ขับเคลื่อนด้วย AI, เครื่องกำเนิดรหัสหม้อไอน้ำ, เครื่องมือค้นหารหัส, ผู้จัดการประวัติการสนทนาและอีกมากมาย!

สิ่งที่ต้องทำล่วงหน้า:
chat with documents brew tap mindflowai/homebrew-mindflow && brew install mindflow
pip install mindflow
pip install -e path/to/mindflow
mf login : กำหนดค่ารุ่นที่ใช้สำหรับการสร้างการตอบสนองโดยเรียกใช้ mf config และเลือก GPT 3.5 Turbo (ค่าเริ่มต้น) หรือ GPT 4 เพื่อใช้ GPT 4 คุณจะต้องเข้าถึง API เป็นพิเศษ หากคุณมีการเข้าถึงคุณสามารถเรียกใช้ mf config และเลือก GPT 4 หากคุณไม่มีการเข้าถึงคุณจะได้รับข้อความแสดงข้อผิดพลาด
มีหลายระดับในการใช้คุณสมบัติการแชทของ Mindflow
mf chat "explain what a programming language is"mf chat path/to/code.py "please summarize what this code does"mf chat สำหรับไฟล์ขนาดเล็กที่เพียงพอ (ดู: CHATGPT Token Limits) สิ่งนี้จะใช้งานได้และยังคงรักษาประวัติการแชทmf chat path/to/submodule1/ path/to/submodule2/ "what are these submodules responsible for?"mf index path/to/subdir/file1.txt path/to/file2.txtmf chat -s ./ "How do all of my classes relate to one another?"-s จะข้ามการจัดทำดัชนีอัตโนมัติและจะเลื่อนไปที่ดัชนีที่มีอยู่ในปัจจุบันแทน ดัชนีนี้ถูกสร้างขึ้นใน mf index ขั้นตอนแรกที่จะรวมเฉพาะไฟล์/subdirs เหล่านั้น คุณสามารถใช้ MindFlow เพื่อสร้างรหัส Boilerplate ได้ทันทีโดยใช้ mf gen ! ควรสร้างรหัสและความคิดเห็นเท่านั้นและจะบันทึกไฟล์ในเส้นทางที่กำหนด
นี่คือตัวอย่างสองสามอย่าง:
mf gen setup.py "write me a setup.py file for my python package 'foobar'"mf gen main.py "write me a python script with a main if block that prints the first 10 fibonacci numbers"โดยค่าเริ่มต้นข้อความแชทง่าย ๆ (เมื่ออ้างอิงไม่มีไฟล์หรือไฟล์ขนาดเล็กมาก) จะถูกจัดเก็บในเครื่องเพื่อให้คุณสามารถรักษาความคงอยู่ของการแชทได้
หากต้องการดูสถิติเกี่ยวกับประวัติการแชทของคุณคุณสามารถเรียกใช้ mf history stats ได้
หากคุณต้องการล้างประวัติการแชทของคุณคุณสามารถเรียกใช้ mf history clear และจะลืมข้อความก่อนหน้าทั้งหมดที่คุณส่งมา
หากคุณลองเพิ่มไดเรกทอรีลงในข้อความแชทของคุณการคงอยู่ของการแชทจะถูกปิดใช้งานและจะไม่มีการใช้บริบทก่อนหน้านี้ สิ่งนี้จะเปลี่ยนไปเมื่อ Mindflow ครบกำหนดและ OpenAI API รองรับระดับโทเค็น/ประวัติการสนทนามากขึ้น
หมายเหตุ: บทสรุป Git Diff ยังไม่สนับสนุนการคงอยู่ของการแชท
ทำการเปลี่ยนแปลงบางอย่างกับ GIT repo ของคุณโดยไม่ต้องจัดเตรียม/กระทำ จากนั้นเรียกใช้ mf diff ! คุณควรได้รับคำตอบที่มีลักษณะเช่นนี้:
`mindflow/commands/diff.py` changes:
- Added import statement for `List` and `Tuple` from the `typing` module.
- Added a function `parse_git_diff` that takes in the output of a `git diff` command and returns a list of tuples containing the file name and the diff content.
- Added a function `batch_git_diffs` that takes in the list of tuples returned by `parse_git_diff` and batches them into smaller chunks of diffs that are less than 3000 characters long.
- Modified the `diff` function to use the new `parse_git_diff` and `batch_git_diffs` functions to batch the diffs and send them to the GPT model for processing.
`mindflow/commands/inspect.py` changes:
- Removed the `print` statement used to output the result of a database query. The git diff shows changes in two files: `mindflow/commands/diff.py` and `mindflow/commands/inspect.py`.
`mindflow/commands/diff.py` changes:
- Added import statement for `List` and `Tuple` from the `typing` module.
- Added a function `parse_git_diff` that takes in the output of a `git diff` command and returns a list of tuples containing the file name and the diff content.
- Added a function `batch_git_diffs` that takes in the list of tuples returned by `parse_git_diff` and batches them into smaller chunks of diffs that are less than 3000 characters long.
- Modified the `diff` function to use the new `parse_git_diff` and `batch_git_diffs` functions to batch the diffs and send them to the GPT model for processing.
`mindflow/commands/inspect.py` changes:
- Removed the `print` statement used to output the result of a database query.
ทำการเปลี่ยนแปลงบางอย่างกับ Git repo ของคุณและจัดเวที จากนั้นเรียกใช้ mf commit ! คุณควรได้รับคำตอบที่มีลักษณะเช่นนี้:
[formatting 7770179] Add needs_push() function and check in run_pr() function.
1 file changed, 14 insertions(+)
ทำการเปลี่ยนแปลงสาขาและเวทีของคุณจากนั้นจึงกระทำ จากนั้นเรียกใช้ mf pr สำหรับ GitHub หรือ mf mr สำหรับ Gitlab! คำขอดึง/การผสานแบบดึงควรถูกสร้างขึ้นด้วยชื่อและร่างกายที่สร้างขึ้นโดย GPT และลิงค์ไปยัง PR ควรพิมพ์ไปยังคอนโซล



Mindflow ใช้วิธีการที่ทันสมัยสำหรับการแบ่งส่วนความเร็วสูงการประมวลผลการจัดเก็บและการดึงเอกสารโดยใช้การสรุปลำดับชั้นแบบเรียกซ้ำและเทคนิคการฝังเพื่อเก็บข้อมูลการฝังของคุณ นอกจากนี้ประวัติการแชทจะคงอยู่หากสามารถพอดีกับบริบทสำหรับการสอบถามเกี่ยวกับเอกสารที่จัดทำดัชนีหรือสำหรับการแชทปกติ
ในอนาคต MindFlow วางแผนที่จะกลายเป็นส่วนหนึ่งของชุดเครื่องมือของนักพัฒนาสมัยใหม่ เราวางแผนที่จะเพิ่มความสามารถในการจัดทำเอกสารแบบดั้งเดิมและแทนที่จะรวมเข้ากับเอกสารส่วนตัวและช่องทางการสื่อสารโดยตรงเพื่อให้ได้รับประสบการณ์ที่ราบรื่นและใช้งานง่ายมากขึ้น ด้วย MindFlow คุณสามารถมี "กระแสแห่งจิตสำนึก" ที่แท้จริงด้วยรหัสเอกสารและช่องทางการสื่อสารของคุณทำให้ง่ายขึ้นกว่าเดิมที่จะอยู่ด้านบนของโครงการของคุณและร่วมมือกับทีมของคุณ เรารู้สึกตื่นเต้นที่จะผลักดันขอบเขตของสิ่งที่เป็นไปได้ด้วยแบบจำลองภาษาและปฏิวัติวิธีการทำงานของนักพัฒนา