CoolFace
Apppublic

Aniket2692/SDLC_Agentic_Workflow

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

End to End Agentic SDLC Project

๐Ÿง  Agentic AI for Software Design Life Cycle (SDLC)

An AI-powered pipeline that automates the entire SDLC using modular LLM agents built with LangGraph and LangChain.

๐Ÿš€ Features

  • โ€”โœ… User story generation from software requirements
  • โ€”๐Ÿ“˜ Design document sectioning and authoring
  • โ€”๐Ÿง‘โ€๐Ÿ’ป Source code generation (Python)
  • โ€”๐Ÿ” Code review and feedback loops
  • โ€”๐Ÿ” Security checks
  • โ€”๐Ÿงช Test case creation (with pytest)
  • โ€”๐ŸŽฏ Human-in-the-loop approvals for each step
  • โ€”๐ŸŒ Streamlit-based UI for interactive control
  • โ€”๐Ÿ” Iterative feedback cycles supported at all stages

โš™๏ธ Architecture

The system is built using LangGraph's stateful graph model. Each phase of SDLC is a graph node, powered by a corresponding LLM agent. Here's how it works:

User Input โž User Story Generator โž Document Creator โž Document Writer โž Document Reviewer โž Code Generator โž Reviewer โž Security โž Test Writer โž Final Output

Tech Stack

  • โ€”๐Ÿงฉ LangGraph โ€“ to model the SDLC workflow as a graph
  • โ€”๐Ÿง  LLMs โ€“ OpenAI (gpt-4o, gpt-4) or Groq models (llama-3, gemma)
  • โ€”๐ŸŽ›๏ธ Streamlit โ€“ for user feedback, config, and step-wise UI
  • โ€”๐Ÿ—‚๏ธ Python โ€“ Modular, extensible structure

๐Ÿ› ๏ธ Installation

  1. 1.Clone the repo:

git clone https://github.com/your-username/agentic-sdlc.git cd agentic-sdlc

  1. 1.Install dependencies:

pip install -r requirements.txt

  1. 1.Set up environment variables in a .env file:

OPENAIAPIKEY=youropenaikey GROQAPIKEY=yourgroqkey

  1. 1.Run the app:

streamlit run app.py

๐Ÿ“ท Mermaid Diagram

mermaid
graph TD;
	__start__([<p>__start__</p>]):::first
	User_Story_Generator(User Story Generator)
	Product_Owner(Product Owner)
	Document_creator(Document creator)
	Document_writer(Document writer)
	Document_compiler(Document compiler)
	Document_Reviewer(Document Reviewer)
	Code_Generator(Code Generator)
	Code_Reviewer(Code Reviewer)
	Security_Reviewer(Security Reviewer)
	Test_Writer(Test Writer)
	Testcase_reviewer(Testcase reviewer)
	__end__([<p>__end__</p>]):::last
	Code_Generator --> Code_Reviewer;
	Document_compiler --> Document_Reviewer;
	Document_writer --> Document_compiler;
	Test_Writer --> Testcase_reviewer;
	User_Story_Generator --> Product_Owner;
	__start__ --> User_Story_Generator;
	Product_Owner -. &nbsp;Accepted&nbsp; .-> Document_creator;
	Product_Owner -. &nbsp;Feedback&nbsp; .-> User_Story_Generator;
	Document_creator -.-> Document_writer;
	Document_Reviewer -. &nbsp;Accepted&nbsp; .-> Code_Generator;
	Document_Reviewer -. &nbsp;Feedback&nbsp; .-> Document_creator;
	Code_Reviewer -. &nbsp;Accepted&nbsp; .-> Security_Reviewer;
	Code_Reviewer -. &nbsp;Reiterate&nbsp; .-> Code_Generator;
	Security_Reviewer -. &nbsp;Accepted&nbsp; .-> Test_Writer;
	Security_Reviewer -. &nbsp;Reiterate&nbsp; .-> Code_Generator;
	Testcase_reviewer -. &nbsp;Accepted&nbsp; .-> __end__;
	Testcase_reviewer -. &nbsp;Reiterate&nbsp; .-> Test_Writer;
	classDef default fill:#f2f0ff,line-height:1.2
	classDef first fill-opacity:0
	classDef last fill:#bfb6fc

โœ๏ธ Feedback Loop Support

At any stage (user stories, design, code, test), if the human reviewer provides feedback, the pipeline automatically routes back and regenerates output โ€” just like a real review cycle.

๐Ÿ“ฆ Folder Structure

src/ SDLC/ ui/ โ†’ Streamlit UI LLM/ โ†’ Model setup and orchestration graph/ โ†’ LangGraph builder nodes/ โ†’ Individual agent logic (story, doc, code, test) state/ โ†’ TypedDict + Pydantic-based state

๐Ÿงฉ Customization

You can plug in other models or modify the stages easily. Just update the LLMconfig and SDLC_Nodes to reflect new capabilities.

๐Ÿ™Œ Credits

LangGraph

LangChain

Streamlit

๐Ÿ“ฌ Contributions

PRs welcome! Please open an issue first to discuss major changes.