Portable setup: venv, Claude Code + Codex project config
All checks were successful
Deploy Skill to OCI / deploy (push) Successful in 19s
All checks were successful
Deploy Skill to OCI / deploy (push) Successful in 19s
Makes the skill work on any laptop regardless of installed Python version or LLM harness, without per-command approval prompts or missing deps. - Makefile: auto-detect Python (venv > 3.12 > 3.11 > 3.10 > python3) and new `make venv` target that picks the best Python at creation time - .claude/settings.json: project-level Claude Code permissions (Write to examples/ and output/, common bash commands pre-authorized) - .codex/config.toml: Codex sandbox config with network_access=true, approval_policy=never, sandbox_mode=workspace-write — fixes `make venv` failing with "No matching distribution" in Codex - CLAUDE.md / AGENTS.md: document the `make venv` flow, drop all hardcoded python3.12 references in favor of make targets - CLAUDE.md: add Karpathy-style coding guidelines (think before coding, simplicity first, surgical changes, goal-driven execution) - .gitignore: add .venv/ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,10 @@
|
||||
# Navigate to the project root
|
||||
cd oci-deal-accelerator
|
||||
|
||||
# Run Codex — it auto-discovers AGENTS.md and .agents/skills/
|
||||
# One-time: create virtual environment with all dependencies
|
||||
make venv
|
||||
|
||||
# Run Codex — it auto-discovers AGENTS.md, .agents/skills/, and .codex/config.toml
|
||||
codex
|
||||
|
||||
# Or explicitly load the skill
|
||||
@@ -18,6 +21,18 @@ codex --skill oci-deal-accelerator
|
||||
Codex automatically reads:
|
||||
- `AGENTS.md` at project root (project-level instructions)
|
||||
- `.agents/skills/oci-deal-accelerator/SKILL.md` (the skill definition)
|
||||
- `.codex/config.toml` (project sandbox + approval config — **enables network for pip**)
|
||||
|
||||
### Why `.codex/config.toml` matters
|
||||
|
||||
By default Codex CLI blocks network access and prompts before every command.
|
||||
The committed `.codex/config.toml` pre-configures this project with:
|
||||
|
||||
- `approval_policy = "never"` — no per-command prompts
|
||||
- `sandbox_mode = "workspace-write"` — agent can write in the repo
|
||||
- `network_access = true` — `pip install` and `make venv` actually work
|
||||
|
||||
Without this file, `make venv` fails with `No matching distribution found for pyyaml` because PyPI is unreachable from the sandbox.
|
||||
|
||||
### Option 2: Using Codex App
|
||||
|
||||
|
||||
Reference in New Issue
Block a user