{"id":30118401,"url":"https://github.com/tkellogg/arguing-opus","last_synced_at":"2025-09-09T00:38:20.853Z","repository":{"id":295652707,"uuid":"990748052","full_name":"tkellogg/arguing-opus","owner":"tkellogg","description":"2 instances of Opus 4 pitted against each other, on any topic","archived":false,"fork":false,"pushed_at":"2025-06-03T20:57:46.000Z","size":73,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-22T05:46:02.999Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tkellogg.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,"zenodo":null}},"created_at":"2025-05-26T15:14:15.000Z","updated_at":"2025-06-03T20:57:34.000Z","dependencies_parsed_at":"2025-06-03T22:11:38.297Z","dependency_job_id":null,"html_url":"https://github.com/tkellogg/arguing-opus","commit_stats":null,"previous_names":["tkellogg/arguing-opus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tkellogg/arguing-opus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellogg%2Farguing-opus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellogg%2Farguing-opus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellogg%2Farguing-opus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellogg%2Farguing-opus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkellogg","download_url":"https://codeload.github.com/tkellogg/arguing-opus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellogg%2Farguing-opus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231099,"owners_count":25245687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-08-10T11:31:18.752Z","updated_at":"2025-09-09T00:38:20.833Z","avatar_url":"https://github.com/tkellogg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arguing Opus\n\nA tool for creating and publishing AI debates where Claude models argue different positions on a topic.\n\n## Publishing Debates\n\nThe `publish.py` script allows you to publish debates to a static HTML gallery:\n\n```bash\n# Publish a debate\n./publish.py conversations/debate_123456789.html\n```\n\nThis will:\n1. Copy the HTML debate file to the `published/` directory\n2. Copy the corresponding JSON file to the `published/` directory\n3. Create or update an index page at `published/index.html`\n\nThe index page shows all published debates with:\n- Topic title\n- Model used (e.g., Claude Opus)\n- Number of turns in the debate\n- Publication date and time\n\n## Viewing Published Debates\n\nYou can view the published debates in two ways:\n\n1. **Direct file access**: Open `published/index.html` in your browser\n2. **Local web server**: Run the included server script:\n\n```bash\n./serve.py\n```\n\nThis will start a local web server on port 8000 and automatically open your browser to view the debates. The web server approach provides a better experience as it properly loads all resources and enables proper navigation between debates.\n\n## Creating Debates\n\nUse the main debate tool to create new debates:\n\n```bash\n# Create a new debate\npython debate.py --topic \"Is remote work better than office work?\" --model opus\n```\n\nThis will generate debate files in the `conversations/` directory which you can then publish.\n\n## Requirements\n\n- Python 3.6+\n- UV package manager (install with `pip install uv`)\n\n## File Structure\n\n- `debate.py` - Main script for creating debates\n- `publish.py` - Script for publishing debates to HTML gallery\n- `serve.py` - Script for starting a local web server to view debates\n- `json_to_html.py` - Utility for converting JSON debates to HTML\n- `conversations/` - Directory containing debate files\n- `published/` - Directory containing published debates and index\n\n### Deploying to GitHub Pages\n\nUse the `stage_publish.py` script to copy all finished debates from\n`conversations/` into the `published/` folder. Commit the updated `published`\ndirectory and push to trigger the GitHub Pages workflow.\n\n```bash\n./stage_publish.py\n```\n\nThe GitHub Actions workflow in `.github/workflows/static.yml` will then deploy\nthe contents of `published/` to Pages.\n\n## Quick Start\n\n```bash\n# 1. Create a debate\npython debate.py --topic \"Is AI consciousness possible?\" --model opus\n\n# 2. Publish the debate (replace with your actual filename)\n./publish.py conversations/debate_1234567890.html\n\n# 3. View the debates in a browser\n./serve.py\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkellogg%2Farguing-opus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkellogg%2Farguing-opus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkellogg%2Farguing-opus/lists"}