# Update code source with crewai

**URL:** <https://community.crewai.com/t/update-code-source-with-crewai/6566>\
**Category:** CrewAI Community Support\
**Tags:** task, crewai\
**Created:** [July 14, 2025, 6:07pm UTC](https://community.crewai.com/t/update-code-source-with-crewai/6566 "2025-07-14T18:07:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![UmeSiyah](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/umesiyah/32/4092_2.png) [@UmeSiyah](https://community.crewai.com/u/UmeSiyah)\
**Post date:** [July 14, 2025, 6:07pm UTC](https://community.crewai.com/t/update-code-source-with-crewai/6566/1 "2025-07-14T18:07:54Z")

</div>

Hello 🙂

I managed to set up a functional environment with crewai and ollama (running the template works correctly). My goal is to set up a crew that modifies code directly in a directory. For now, I just want the crew to add all missing docstrings in the code or update the existing ones. But I don’t know how to make the crew update each file. I succeeded in outputting a “smell\_code\_report.md”.

I tried using the tools `DirectoryReadTool`, `FileReadTool`, and `FileWriterTool` without success.

Could someone indicate how to get the crew to modify the files?

Is it necessary to create dynamic tasks? For example, a task that takes a Python file as input and modifies it? Or perhaps, write the path with the same name but in a different directory structure?

Thank you !
