Home > Web Front-end > JS Tutorial > folderxt - code context for LLM

folderxt - code context for LLM

Barbara Streisand
Release: 2024-12-01 01:51:12
Original
787 people have browsed it

I made a tool, folder2text.

?You are using a LLM to write or help with your code, this is gonna be a very important tool for you.

Most LLM like OpenAI's chatGPT(4,4o) or claude (3,3.5) has a limited context window. When you are writing a lot of code, it's nearly impossible to provide proper context without copying all of your code into the LLM chatbox. And copy pasting also has limitations due to token size.

folder2text turns all of your code from a specific folder into one .txt file. Its properly formatted with the exact information your AI friend need to understand the entire context of your project. And it also makes sure only the code you wrote is a part of it, packages and vendor files are ignored.

? It has already been published on NPM,

https://github.com/oritromax/folder2text

https://www.npmjs.com/package/folder2text

npm install -g folder2text

To run the tool, simply point towards your folder

folder2text /path/to/your/folder

folderxt - code context for LLM

Hope it helps in your AI-fueled development.

The above is the detailed content of folderxt - code context for LLM. For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template