Skip to content

Devika is the first open-source implementation of an Agentic Software Engineer. Initially started as an open-source alternative to Devin.

Python

Fix list index out of range error (https://github.com/stitionai/devika/issues/546) (#548)

kgotte0144c1aaf71
diff --git a/src/agents/coder/coder.py b/src/agents/coder/coder.py
index 310a399..3e021d6 100644
--- a/src/agents/coder/coder.py
+++ b/src/agents/coder/coder.py
@@ -52,7 +52,7 @@ class Coder:
if line.startswith("File: "):
if current_file and current_code:
result.append({"file": current_file, "code": "\n".join(current_code)})
- current_file = line.split("`")[1].strip()
+ current_file = line.split(":")[1].strip()
current_code = []
code_block = False
elif line.startswith("```"):