Skip to content

Official Codebase of 3DCodeVerse

Python

workspace: .agents/ is harness-owned and git-ignored — the skill bundles were committed with every round

gaoypengde5c9d6614a6
diff --git a/harness/codeverse3d/agents/cli_common.py b/harness/codeverse3d/agents/cli_common.py
index 87777bc7..0169c797 100644
--- a/harness/codeverse3d/agents/cli_common.py
+++ b/harness/codeverse3d/agents/cli_common.py
@@ -301,7 +301,7 @@ def mcp_command_for(ws: Workspace, job: AgentJob) -> list[str]:
# --------------------------------------------------------------------------- session
#: paths the harness owns; never attributed to an agent session even when git sees them change
#: (`.3dcv` = `.3dcode` in a workspace made before the 2026-09-21 rename, still resumable)
-HARNESS_OWNED_DIRS = ("artifacts", "trajectories", "stages", "rounds", "_cand", "_assets", ".3dcode", ".3dcv", ".gemini", ".claude", ".git")
+HARNESS_OWNED_DIRS = ("artifacts", "trajectories", "stages", "rounds", "_cand", "_assets", ".3dcode", ".3dcv", ".gemini", ".claude", ".agents", ".git")
HARNESS_OWNED_FILES = frozenset({"events.jsonl", "run_state.json", "record.json", "AGENTS.md", "GEMINI.md", "CLAUDE.md",
".mcp.json", ".geminiignore", ".aiexclude", ".gitignore"})
#: gitignored control files git cannot revert (downstream trusts both blindly):
diff --git a/harness/codeverse3d/workspace.py b/harness/codeverse3d/workspace.py
index f5b9b531..10d66602 100644
--- a/harness/codeverse3d/workspace.py
+++ b/harness/codeverse3d/workspace.py
@@ -50,7 +50,7 @@ LAYOUT_ALIASES: tuple[tuple[str, str], ...] = (
#: harness-owned paths that never belong in the code snapshot
_GITIGNORE_LINES = (
"# harness-owned run state is never part of the code snapshot",
- "artifacts/", "trajectories/", "stages/", "rounds/", "_assets/", "_cand/", ".3dcode/", ".3dcv/", ".gemini/", ".claude/",
+ "artifacts/", "trajectories/", "stages/", "rounds/", "_assets/", "_cand/", ".3dcode/", ".3dcv/", ".gemini/", ".claude/", ".agents/",
"deliverable/", "telemetry/", "evidence", "captions.json",
"events.jsonl", "run_state.json", "record.json", "*.log", "node_modules/", "*.tmp", "__pycache__/",
)