{"id":24946648,"url":"https://github.com/tcsenpai/dualmind","last_synced_at":"2026-03-11T00:42:43.436Z","repository":{"id":274784287,"uuid":"868434709","full_name":"tcsenpai/DualMind","owner":"tcsenpai","description":"DualMind is an innovative AI conversation simulator that facilitates engaging dialogues between two AI models using the Ollama API.","archived":false,"fork":false,"pushed_at":"2025-01-29T10:55:47.000Z","size":1241,"stargazers_count":37,"open_issues_count":0,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T05:51:08.817Z","etag":null,"topics":["agi","ai","chat","conversation","llama","llm","mistral"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tcsenpai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-06T11:34:59.000Z","updated_at":"2025-04-08T06:48:45.000Z","dependencies_parsed_at":"2025-01-29T11:44:31.408Z","dependency_job_id":null,"html_url":"https://github.com/tcsenpai/DualMind","commit_stats":null,"previous_names":["tcsenpai/dualmind"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tcsenpai/DualMind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcsenpai%2FDualMind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcsenpai%2FDualMind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcsenpai%2FDualMind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcsenpai%2FDualMind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tcsenpai","download_url":"https://codeload.github.com/tcsenpai/DualMind/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tcsenpai%2FDualMind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30364142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agi","ai","chat","conversation","llama","llm","mistral"],"created_at":"2025-02-02T20:58:22.323Z","updated_at":"2026-03-11T00:42:43.417Z","avatar_url":"https://github.com/tcsenpai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DualMind: AI Conversation Simulator\n\n***WARNING: This repository approach has been superseeded by the [Self Conversational AI](https://github.com/tcsenpai/llms-experiments?tab=readme-ov-file#self-conversational-ai) Experiment in [LLM Experiments](https://github.com/tcsenpai/llms-experiments)***\n\nDualMind is an innovative AI conversation simulator that facilitates engaging dialogues between two AI models using the Ollama API. It offers a command-line interface (CLI) for immersive and customizable AI interactions.\n\n![Screenshot](imgs/screenshot.png)\n\n## Features\n\n- 🤖 Dual-model conversation: Engage two different AI models in a thought-provoking dialogue\n- 🎭 Customizable system prompts: Tailor the behavior and personality of each AI model\n- 🖥️ Command-line interface for quick interactions\n- 🛠️ Conversation customization:\n  - Adjust the number of exchanges\n  - Modify the initial prompt\n  - Select different AI models\n- 💾 Save conversation logs\n- 🔢 Token count display and limit: Monitor the token usage for each message and limit the conversation to a specified number of tokens.\n\n## Prerequisite: Ollama\n\nThis project is privacy oriented and for such reason it uses Ollama as a backend. You need an Ollama endpoint to use this software.\n\nPlease refer to [Ollama](https://ollama.com/download) to install Ollama on your machine.\n\n## Installation\n\n1. Clone the repository:\n\n   ```sh\n   git clone https://github.com/yourusername/DualMind.git\n   cd DualMind\n   ```\n\n2. Install the required dependencies:\n\n   ```sh\n   pip install -r requirements.txt\n   ```\n\n3. Set up your environment variables by creating a `.env` file in the project root:\n\n   ```\n   OLLAMA_ENDPOINT=http://localhost:11434\n   MODEL_1=llama2\n   MODEL_2=mistral\n   INITIAL_PROMPT=\"Let's discuss the future of AI. What are your thoughts on its potential impact on society?\"\n   MAX_TOKENS=8000\n   ```\n\n   Feel free to use the env.example file as a template.\n\n   **Note:** The INITIAL_PROMPT is the first message that will be sent and it will be send on behalf of the second AI to the first AI.\n\n## Usage\n\nTo run DualMind in CLI mode:\n\n```sh\n./start_cli.sh\n```\n\n## Customization\n\n### System Prompts\n\nYou can customize the system prompts for each AI model by editing the `system_prompt_1.txt` and `system_prompt_2.txt` files in the project root.\n\n### Options\n\nYou can customize the options for the conversation by editing the `options.json` file in the project root.\n\n\n## Project Structure\n\n- `main.py`: Entry point of the application\n- `ai_conversation.py`: Core logic for AI conversations\n- `start_cli.sh`: Shell script to run the CLI version\n\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n## Acknowledgements\n\n- This project uses the [Ollama](https://ollama.ai/) API for AI model interactions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcsenpai%2Fdualmind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftcsenpai%2Fdualmind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftcsenpai%2Fdualmind/lists"}