Skip to content

Latest commit

 

History

History
104 lines (74 loc) · 3.71 KB

CONTRIBUTING.md

File metadata and controls

104 lines (74 loc) · 3.71 KB

Contributing to Codex Debug Agent

Thanks for helping make AI-assisted debugging more evidence-driven. Focused bug fixes, runtime integrations, documentation improvements, accessibility work, and well-scoped feature proposals are welcome.

Before You Start

  • Search existing issues and discussions.
  • Open an issue before large architectural changes.
  • Keep pull requests focused on one problem.
  • Never include credentials, private logs, user attachments, or captured personal data.

Development Setup

Requirements:

  • macOS 14+
  • Xcode with Swift 5.10+
  • uv or Python 3.11+
  • Codex with local plugin support

Clone into the personal plugin directory:

git clone https://github.com/pj-workspace/codex-debug-plugin.git ~/plugins/codex-debug-plugin
cd ~/plugins/codex-debug-plugin
./scripts/install-plugin.zsh

Project Areas

Area Location Responsibility
Native dialog native/ SwiftUI interface, clipboard evidence, socket lifecycle
MCP bridge mcp/ stdio tools, structured results, 24-hour wait behavior
Debug workflow skills/evidence-debugging/ hypotheses, instrumentation, verification, cleanup
Distribution companion/, scripts/ Universal 2 app, installation, launchd, smoke tests

Native controls support English and Simplified Chinese. Keep user-provided titles, context, steps, and expected evidence in the same language selected through the MCP language field.

Validation

Run the checks relevant to your change before opening a pull request:

zsh -n scripts/*.zsh
python3 -m py_compile mcp/src/debug_dialog_mcp/*.py scripts/*.py
swift build -c release --package-path native
uv run --with 'mcp>=1.25,<2' ./scripts/smoke-test-mcp.py

For a release-quality native change, regenerate and verify the distributable app:

./scripts/build-macos-companion.zsh
codesign --verify --deep --strict "companion/Codex Debug Dialog.app"
file "companion/Codex Debug Dialog.app/Contents/MacOS/CodexDebugDialog"

The final executable must contain both arm64 and x86_64 architectures.

For native UI changes, install the rebuilt companion and inspect both language variants:

./scripts/install-macos-companion.zsh
./scripts/preview-dialog.py --language en
./scripts/preview-dialog.py --language zh-CN

Commit lossless Retina PNG screenshots for user-visible UI changes. Do not upscale or substitute generated mockups for the real app.

Pull Request Standard

A strong pull request includes:

  • the user-visible problem and expected behavior;
  • the smallest supported change;
  • pre-fix and post-fix evidence for bug fixes;
  • screenshots for native UI changes;
  • privacy and lifecycle impact;
  • validation commands and results;
  • no unrelated formatting or refactoring.

Use concise Conventional Commit-style subjects when practical, for example:

fix: dismiss the matching panel when MCP disconnects
feat: capture browser console evidence
docs: clarify personal marketplace installation

Debugging Principles

Contributions must preserve the project's core invariants:

  1. The current Codex task must invoke the Human Gate MCP tool directly.
  2. A detached shell helper is not equivalent to task suspension.
  3. Fixes require evidence from the original failing path.
  4. Temporary probes remain until post-fix verification succeeds.
  5. Attachments stay local unless the user explicitly authorizes transfer.
  6. Secrets and full private payloads must never be logged.

Reporting Security Issues

Do not open a public issue for a vulnerability. Follow SECURITY.md and use GitHub's private vulnerability reporting flow.