Devika is the first open-source implementation of an Agentic Software Engineer. Initially started as an open-source alternative to Devin.
Python
Fixed config.py - Added singleton pattern to Config class
rajakumar0503200044893c2d55ee
diff --git a/src/config.py b/src/config.pyindex 3b33721..65a4d03 100644--- a/src/config.py+++ b/src/config.py@@ -1,6 +1,15 @@import tomlclass Config:++ _instance = None++ def __new__(cls):+ if cls._instance is None:+ cls._instance = super().__new__(cls)+ cls._instance.config = toml.load("config.toml")+ return cls._instance+def __init__(self):self.config = toml.load("config.toml")