stitionai / devika

Devika is an Agentic AI Software Engineer that can understand high-level human instructions, break them down into steps, research relevant information, and write code to achieve the given objective. Devika aims to be a competitive open-source alternative to Devin by Cognition AI.
MIT License
18.49k stars 2.4k forks source link

[Bug] backticks in file names #631

Open zenitogr opened 3 months ago

zenitogr commented 3 months ago

Describe the bug

instead of running commands it creates a txt file that start and end in backticks with the commands in the file

it also creates other files with backtickes before and after in the filename

How To Reproduce

Steps to reproduce the behavior (example):

  1. setup devika to run normally
  2. create new devika project
  3. select llama3.1-8b from ollama
  4. send first message: lets create a nextjs project named trolo
  5. result image image

Expected behavior

I expected for davika at least to ask me before creating files or running commands. just ask does this command seem ok? does this file name and contents seem ok? etc

but also look at tinychatengine open source project and paper, they are running on cpu gpu and mac code assistant with great results they use technology for minimizing resources needed

Screenshots and logs

Configuration

- OS: Windows 11
- Python version: 3.11.9
- Node version: v22.5.1
- bun version: 1.1.21
- search engine: google
- Model: ollama using for this bug llama3.1:8b (it is the default so it is q4_0) should I try q8_0?
- modifications:
- - in devika.py line 26 changed to the correct localhost:port

Additional context

I really think there should be some guide for which model to use with ollama for different vram capacity gpu architecture and ram also please make devika work with local open source models I have a 4070 12gb vram and 32gb ram which is not low specs by any measure and llama3.1:8b is pretty capable

zenitogr commented 3 months ago

as you can see the first 3 steps are spot on but it doesnt do that... it searches the web for nextjs structure

EdenwareApps commented 1 month ago

Same happened here, all files were created with backticks at the beginning and/or end. Interestingly, within the subfolders, folder names were left with the initial backtick and the file name with the final backtick. File contents are OK.

J:\DEVIKA\data\projects\test>dir /s /b
J:\DEVIKA\data\projects\test\`package.json`
J:\DEVIKA\data\projects\test\`README.md`
J:\DEVIKA\data\projects\test\`src
J:\DEVIKA\data\projects\test\`test
J:\DEVIKA\data\projects\test\`src\Database.js`
J:\DEVIKA\data\projects\test\`src\FileHandler.js`
J:\DEVIKA\data\projects\test\`src\IndexManager.js`
J:\DEVIKA\data\projects\test\`test\test.js`