Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ uv.lock
# Codex CLI generated/cached files (only the bundled model catalog is tracked)
.codex/*
!.codex/databricks-models.json

# Codex skills are generated at runtime by setup_codex.py from .claude/skills/
.agents/
17 changes: 1 addition & 16 deletions setup_codex.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,22 +120,7 @@
env_path.chmod(0o600)
print(f"Codex CLI env configured: {env_path}")

# 5. Copy Claude skills into ~/.agents/skills/ where Codex discovers them.
# Codex searches `$HOME/.agents/skills/` plus `.agents/skills/` walking up
# from cwd; both resolve to the same path on the deployed app since
# HOME == repo root, and the user-level lookup also covers local dev.
claude_skills_dir = home / ".claude" / "skills"
codex_skills_dir = home / ".agents" / "skills"
if claude_skills_dir.exists():
codex_skills_dir.parent.mkdir(exist_ok=True)
if codex_skills_dir.exists():
shutil.rmtree(codex_skills_dir)
shutil.copytree(claude_skills_dir, codex_skills_dir)
print(f"Skills copied: {claude_skills_dir} -> {codex_skills_dir}")
else:
print(f"No Claude skills found at {claude_skills_dir}, skipping copy")

# 6. Adapt CLAUDE.md to AGENTS.md for Codex
# 5. Adapt CLAUDE.md to AGENTS.md for Codex
# Look for CLAUDE.md in common locations
claude_md_locations = [
Path(__file__).parent / "CLAUDE.md", # Same directory as setup script
Expand Down
14 changes: 1 addition & 13 deletions setup_gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"""
import os
import json
import shutil
import subprocess
from pathlib import Path

Expand Down Expand Up @@ -127,18 +126,7 @@
settings_path.write_text(json.dumps(settings, indent=2))
print(f"Gemini CLI settings configured: {settings_path}")

# 5. Copy Claude skills into .gemini/skills for shared reference
claude_skills_dir = home / ".claude" / "skills"
gemini_skills_dir = gemini_dir / "skills"
if claude_skills_dir.exists():
if gemini_skills_dir.exists():
shutil.rmtree(gemini_skills_dir)
shutil.copytree(claude_skills_dir, gemini_skills_dir)
print(f"Skills copied: {claude_skills_dir} -> {gemini_skills_dir}")
else:
print(f"No Claude skills found at {claude_skills_dir}, skipping copy")

# 6. Adapt CLAUDE.md to GEMINI.md for Gemini CLI
# 5. Adapt CLAUDE.md to GEMINI.md for Gemini CLI
# Look for CLAUDE.md in common locations
claude_md_locations = [
Path(__file__).parent / "CLAUDE.md", # Same directory as setup script
Expand Down