Inspiration

DocuRight was inspired by the crucial need for up-to-date and comprehensive documentation in software development. Observing how often documentation lags behind during rapid development cycles, we sought to create a tool that could keep up with the pace of changes without adding to developers' burdens. By leveraging advanced AI technologies like OpenAI's GPT-3.5, we aimed to revolutionize how documentation is generated and maintained, ensuring it remains as dynamic and agile as the development process itself.

What it does

DocuRight integrates a powerful AI-driven GitHub bot with a VSCode extension to automate documentation tasks. When developers push new code, the GitHub bot, powered by OpenAI's GPT-3.5 and orchestrated by LangChain, analyzes the changes and automatically generates or updates documentation. This documentation is then crafted into pull requests that the VSCode extension fetches, allowing developers to review, adjust, and merge directly within their IDE, ensuring that documentation keeps pace with development without disrupting workflow.

How we built it

We built DocuRight using OpenAI's GPT-3.5 for generating the documentation text, relying on its advanced natural language understanding capabilities. LangChain was used to orchestrate the flow between the AI's output and our application's logic, facilitating seamless interaction with GitHub's API for code analysis and pull request management. The VSCode extension was developed with TypeScript, creating a user-friendly interface that connects directly with the GitHub bot for real-time updates.

Challenges we ran into

Integrating complex AI models like GPT-3.5 smoothly with GitHub's API presented a unique set of challenges, particularly in ensuring the AI accurately interprets code changes and generates useful documentation. Another significant challenge was maintaining the extension's performance and reliability, ensuring that it updates documentation in real-time without introducing lag or errors in the developer's environment.

Accomplishments that we're proud of

We are particularly proud of how well DocuRight integrates cutting-edge AI technology into a tool that fits naturally into developers' workflows. The use of GPT-3.5 and LangChain has enabled us to push the boundaries of automated documentation, providing developers with an almost real-time assistant that understands and documents their code as it evolves.

What we learned

This project deepened our understanding of the capabilities and potential applications of large language models like GPT-3.5 in real-world software development. We also gained valuable insights into the challenges of AI and API integration, particularly in how AI can be effectively used to enhance productivity tools without compromising user experience since we were completely new to developing VS Code extensions.

What's next for DocuRight

The next steps for DocuRight include expanding its language support to encompass more programming languages and refining its AI model to better understand more complex code structures. We also plan to incorporate more interactive features that allow developers to provide feedback directly on the generated documentation, helping the AI to learn and improve over time.

Built With

  • langchain
  • openai
Share this project:

Updates