Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent scanning containers

Disposable Docker environments for running Claude Code or Codex against a mounted codebase.

Containers Use case Guide
claude-php, codex-php PHP applications and libraries PHP
claude-ext, codex-ext PHP core and C extensions PHP extensions
claude-go, codex-go Go projects Go

Build

Each build script creates and checks both agent variants:

./php/build.sh
./ext/build.sh
./go/build.sh

Optional environment variables:

  • HARNESS_BUST: force both agent install layers to refresh.
  • CODEX_VERSION: install a specific Codex release instead of the latest.
  • GO_VERSION: set the Go version used by go/build.sh.
  • PHP_GIT_REF: select the php-src tag or branch used by php/build.sh or ext/build.sh.

Authenticate

For Claude Code, generate and export an OAuth token:

claude setup-token
export CLAUDE_CODE_OAUTH_TOKEN='...'

For Codex with a ChatGPT subscription, log in once on the host:

codex login

run.sh reads ~/.codex/auth.json, removes its refresh token, and passes the result into the disposable container. This needs jq, but no auth mount or container login. Set CODEX_AUTH_FILE to use another cache file.

Optionally set GH_TOKEN for authenticated GitHub CLI access. A read-only, fine-grained personal access token is sufficient for public repositories.

Run

run.sh mounts the current directory at /workspace, forwards credentials, and starts the selected agent.

./run.sh claude-php
./run.sh codex-php

Pass a command to replace the agent, or set WORKSPACE to mount another workspace directory:

./run.sh codex-php bash
WORKSPACE=/path/to/workspace ./run.sh claude-php

Without run.sh:

docker run --rm -it \
  -v "$PWD:/workspace" \
  -e CLAUDE_CODE_OAUTH_TOKEN \
  -e GH_TOKEN \
  claude-php

CODEX_AUTH_JSON="$(jq -c '.tokens.refresh_token = ""' ~/.codex/auth.json)" \
docker run --rm -it \
  -v "$PWD:/workspace" \
  -e CODEX_AUTH_JSON \
  -e GH_TOKEN \
  codex-php

About

No description, website, or topics provided.

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages