Aniket2692/SDLC_Agentic_Workflow
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
- Clone the repo:
git clone https://github.com/your-username/agentic-sdlc.git cd agentic-sdlc
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables in a .env file:
OPENAIAPIKEY=youropenaikey GROQAPIKEY=yourgroqkey
- Run the app:
streamlit run app.py
๐ท Mermaid Diagram
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 -. Accepted .-> Document_creator;
Product_Owner -. Feedback .-> User_Story_Generator;
Document_creator -.-> Document_writer;
Document_Reviewer -. Accepted .-> Code_Generator;
Document_Reviewer -. Feedback .-> Document_creator;
Code_Reviewer -. Accepted .-> Security_Reviewer;
Code_Reviewer -. Reiterate .-> Code_Generator;
Security_Reviewer -. Accepted .-> Test_Writer;
Security_Reviewer -. Reiterate .-> Code_Generator;
Testcase_reviewer -. Accepted .-> __end__;
Testcase_reviewer -. Reiterate .-> 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.
