From b47d25c3d54123a5cd59d64e26c318d2df9ce8e0 Mon Sep 17 00:00:00 2001 From: Nishad Date: Tue, 28 Apr 2026 11:30:36 -0400 Subject: [PATCH 1/2] chore: update cogames mettagrid to 0.26.13 --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f9b4383db..c9ed337d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ readme = "README.md" requires-python = ">=3.12,<3.13" classifiers = ["Programming Language :: Python :: 3", "Programming Language :: Python :: 3.12"] dependencies = [ - "mettagrid==0.26.12", + "mettagrid==0.26.13", "softmax-cli==0.26.5", "packaging>=24.0.0", "pydantic>=2.11.5", @@ -75,8 +75,8 @@ testpaths = ["tests"] source = ["cogames"] [tool.uv.sources] -mettagrid = { workspace = true } -softmax-cli = { workspace = true } +mettagrid = {git = "https://github.com/Metta-AI/mettagrid.git"} +softmax-cli = {git = "https://github.com/Metta-AI/softmax-cli.git"} diplomacog = { git = "https://github.com/Metta-AI/cogame-diplomacog.git" } hungercog = { git = "https://github.com/Metta-AI/cogame-hungercog.git" } overcogged = { git = "https://github.com/Metta-AI/cogame-overcogged.git" } From 261f7701db598de2f7af3fd35538b2bd2cb6e5f2 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 2 May 2026 01:09:02 +0000 Subject: [PATCH 2/2] docs: re-sync README CLI reference with current source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Three small drifts in the rendered CLI reference. These fixes match what re-running the README generator (README.py) against current main would produce. - `cogames missions --game` and `cogames play --game` defaults: the rendered help still shows `cogs_vs_clips`. The current default is `cogsguard` (main.py:410, 655). - `cogames tutorial make-policy` summary: rendered help text was "Requires --trainable or --scripted." The current help text is "Requires exactly one policy type." (main.py:1017). - `cogames tutorial make-policy` Policy Type panel: the `--amongthem` flag (main.py:1043-1048) was missing from the rendered panel. The same edits are applied to README.md and the cached cell outputs in README.ipynb so they stay consistent under `cogames docsync check`. The Examples block (which uses `-t`/`-s` short flags) is intentionally left for a separate fix — that drift originates in the CLI epilog and is addressed in a separate PR; re-running the generator after both land will normalize everything. https://claude.ai/code/session_01LQ7Ac2JeU9EhGU2V4LyGf7 --- README.ipynb | 14 ++++++++------ README.md | 7 ++++--- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.ipynb b/README.ipynb index e3d4ee448..029ec8a2e 100644 --- a/README.ipynb +++ b/README.ipynb @@ -456,7 +456,7 @@ "data": { "text/html": [ "
╭─ Describe ──────────────────────────────────────────────────────────────────────────────────────────────────────╮\n",
-       " --game             TEXT         Game whose missions to list or describe. [default: cogs_vs_clips]               \n",
+       " --game             TEXT         Game whose missions to list or describe. [default: cogsguard]               \n",
        " --mission  -m      MISSION      Mission to describe.                                                            \n",
        " --cogs     -c      INTEGER      Override agent count (requires -m).                                             \n",
        " --variant  -v      VARIANT      Apply variant (requires -m, repeatable).                                        \n",
@@ -467,7 +467,7 @@
       ],
       "text/plain": [
        "\u001b[2m╭─\u001b[0m\u001b[2m Describe \u001b[0m\u001b[2m─────────────────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\u001b[2m─╮\u001b[0m\n",
-       "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-game\u001b[0m             \u001b[1mTEXT       \u001b[0m  Game whose missions to list or describe. \u001b[2m[default: cogs_vs_clips]\u001b[0m               \u001b[2m│\u001b[0m\n",
+       "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-game\u001b[0m             \u001b[1mTEXT       \u001b[0m  Game whose missions to list or describe. \u001b[2m[default: cogsguard]\u001b[0m               \u001b[2m│\u001b[0m\n",
        "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-mission\u001b[0m  \u001b[1m-m\u001b[0m      \u001b[1mMISSION    \u001b[0m  Mission to describe.                                                            \u001b[2m│\u001b[0m\n",
        "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-cogs\u001b[0m     \u001b[1m-c\u001b[0m      \u001b[1mINTEGER    \u001b[0m  Override agent count (requires \u001b[1m-m\u001b[0m).                                             \u001b[2m│\u001b[0m\n",
        "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-variant\u001b[0m  \u001b[1m-v\u001b[0m      \u001b[1mVARIANT    \u001b[0m  Apply variant (requires \u001b[1m-m\u001b[0m, repeatable).                                        \u001b[2m│\u001b[0m\n",
@@ -1019,7 +1019,7 @@
      "data": {
       "text/html": [
        "
╭─ Game Setup ────────────────────────────────────────────────────────────────────────────────────────────────────╮\n",
-       " --game             GAME     Game to play (default: cogs_vs_clips). [default: cogs_vs_clips]                     \n",
+       " --game             GAME     Game to play (default: cogsguard). [default: cogsguard]                     \n",
        " --mission  -m      MISSION  Mission to play (run cogames missions to list).                                     \n",
        " --variant  -v      VARIANT  Apply variant modifier (repeatable).                                                \n",
        " --cogs     -c      N        Number of cogs/agents. [default: (from mission)]                                    \n",
@@ -1028,7 +1028,7 @@
       ],
       "text/plain": [
        "\u001b[2m╭─\u001b[0m\u001b[2m Game Setup \u001b[0m\u001b[2m───────────────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\u001b[2m─╮\u001b[0m\n",
-       "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-game\u001b[0m             \u001b[1mGAME   \u001b[0m  Game to play (default: cogs_vs_clips). \u001b[2m[default: cogs_vs_clips]\u001b[0m                     \u001b[2m│\u001b[0m\n",
+       "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-game\u001b[0m             \u001b[1mGAME   \u001b[0m  Game to play (default: cogsguard). \u001b[2m[default: cogsguard]\u001b[0m                     \u001b[2m│\u001b[0m\n",
        "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-mission\u001b[0m  \u001b[1m-m\u001b[0m      \u001b[1mMISSION\u001b[0m  Mission to play (run \u001b[1mcogames missions\u001b[0m to list).                                     \u001b[2m│\u001b[0m\n",
        "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-variant\u001b[0m  \u001b[1m-v\u001b[0m      \u001b[1mVARIANT\u001b[0m  Apply variant modifier (repeatable).                                                \u001b[2m│\u001b[0m\n",
        "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-cogs\u001b[0m     \u001b[1m-c\u001b[0m      \u001b[1mN      \u001b[0m  Number of cogs/agents. \u001b[2m[default: (from mission)]\u001b[0m                                    \u001b[2m│\u001b[0m\n",
@@ -3937,12 +3937,12 @@
     {
      "data": {
       "text/html": [
-       "
 Create a new policy from a template. Requires --trainable or --scripted.                                          \n",
+       "
 Create a new policy from a template. Requires exactly one policy type.                                            \n",
        "                                                                                                                   \n",
        "
\n" ], "text/plain": [ - " Create a new policy from a template. Requires \u001b[1m-\u001b[0m\u001b[1m-trainable\u001b[0m or \u001b[1m-\u001b[0m\u001b[1m-scripted\u001b[0m. \n", + " Create a new policy from a template. Requires exactly one policy type. \n", " \n" ] }, @@ -3955,6 +3955,7 @@ "
╭─ Policy Type ───────────────────────────────────────────────────────────────────────────────────────────────────╮\n",
        " --trainable          Create a trainable (neural network) policy.                                                \n",
        " --scripted           Create a scripted (rule-based) policy.                                                     \n",
+       " --amongthem          Create an AmongThem BitWorld scripted practice policy.                                     \n",
        "╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\n",
        "
\n" ], @@ -3962,6 +3963,7 @@ "\u001b[2m╭─\u001b[0m\u001b[2m Policy Type \u001b[0m\u001b[2m──────────────────────────────────────────────────────────────────────────────────────────────────\u001b[0m\u001b[2m─╮\u001b[0m\n", "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-trainable\u001b[0m Create a trainable (neural network) policy. \u001b[2m│\u001b[0m\n", "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-scripted\u001b[0m Create a scripted (rule-based) policy. \u001b[2m│\u001b[0m\n", + "\u001b[2m│\u001b[0m \u001b[1m-\u001b[0m\u001b[1m-amongthem\u001b[0m Create an AmongThem BitWorld scripted practice policy. \u001b[2m│\u001b[0m\n", "\u001b[2m╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\u001b[0m\n" ] }, diff --git a/README.md b/README.md index 10cefa5fc..aa63e5334 100644 --- a/README.md +++ b/README.md @@ -316,7 +316,7 @@ cogames [COMMAND] --help
╭─ Describe ──────────────────────────────────────────────────────────────────────────────────────────────────────╮
- --game             TEXT         Game whose missions to list or describe. [default: cogs_vs_clips]               
+ --game             TEXT         Game whose missions to list or describe. [default: cogsguard]               
  --mission  -m      MISSION      Mission to describe.                                                            
  --cogs     -c      INTEGER      Override agent count (requires -m).                                             
  --variant  -v      VARIANT      Apply variant (requires -m, repeatable).                                        
@@ -571,7 +571,7 @@ cogames [COMMAND] --help
 
 
 
╭─ Game Setup ────────────────────────────────────────────────────────────────────────────────────────────────────╮
- --game             GAME     Game to play (default: cogs_vs_clips). [default: cogs_vs_clips]                     
+ --game             GAME     Game to play (default: cogsguard). [default: cogsguard]                     
  --mission  -m      MISSION  Mission to play (run cogames missions to list).                                     
  --variant  -v      VARIANT  Apply variant modifier (repeatable).                                                
  --cogs     -c      N        Number of cogs/agents. [default: (from mission)]                                    
@@ -1904,7 +1904,7 @@ cogames [COMMAND] --help
 
 
 
-
 Create a new policy from a template. Requires --trainable or --scripted.                                          
+
 Create a new policy from a template. Requires exactly one policy type.                                            
 
 
@@ -1914,6 +1914,7 @@ cogames [COMMAND] --help
╭─ Policy Type ───────────────────────────────────────────────────────────────────────────────────────────────────╮
  --trainable          Create a trainable (neural network) policy.                                                
  --scripted           Create a scripted (rule-based) policy.                                                     
+ --amongthem          Create an AmongThem BitWorld scripted practice policy.                                     
 ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯