Skip to content

Consolidate documentation: move GEMINI.md content to AGENTS.md, expand README#11

Merged
epli2 merged 1 commit into
mainfrom
claude/readme-ai-docs-rrh3s4
Jul 15, 2026
Merged

Consolidate documentation: move GEMINI.md content to AGENTS.md, expand README#11
epli2 merged 1 commit into
mainfrom
claude/readme-ai-docs-rrh3s4

Conversation

@epli2

@epli2 epli2 commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Summary

This PR consolidates and expands the project's documentation by:

  • Removing the standalone GEMINI.md file (replacing it with a symlink to AGENTS.md)
  • Significantly expanding README.md with a comprehensive feature overview, quickstart guide, and CLI reference
  • Updating docs/how-to-use.ja.md with corrections and clarifications about Java/PHP support and the build process
  • Expanding AGENTS.md with detailed sections on Java transparent proxy injection, integration test coverage, and fault injection specifications

Key Changes

Documentation Consolidation

  • Removed GEMINI.md — replaced with a single-line symlink to AGENTS.md to avoid duplication
  • Expanded README.md from a minimal 3-line stub to a comprehensive guide including:
    • Feature highlights (TUI, JSON Lines streaming, offline queries, MCP server, zero-instrumentation capture for Node.js/PHP/Java)
    • Quickstart with build and usage examples
    • Full CLI subcommand table and flag reference
    • Links to detailed documentation and examples

Japanese Documentation Updates (docs/how-to-use.ja.md)

  • Corrected protocol support table: LD_PRELOAD now supports both HTTP and HTTPS (not just HTTP)
  • Clarified that JDK is optional (only needed for Java capture support)
  • Removed manual Java Agent build instructions; documented that build.rs handles compilation automatically
  • Added PHP curl extension support documentation with caveats about curl.cainfo and explicit CURLOPT_* overrides
  • Updated command examples to use phantom run -- syntax consistently
  • Expanded LD_PRELOAD mode description to clarify OpenSSL hooking and HTTPS support

AGENTS.md Enhancements

  • Added phantom-java-agent/ and build.rs to project layout
  • Added proxy_java_clients_integration.rs and tests/apps/java-http-clients/ to test structure
  • New "Java Transparent Proxy Injection" section documenting:
    • Automatic JAVA_TOOL_OPTIONS injection of proxy properties and -javaagent
    • build.rs compilation of Agent.java into embedded jar
    • Graceful fallback when JDK is unavailable
    • Supported libraries (JDK HttpClient, Apache HttpClient 5, OkHttp)
    • Known limitations (JVM-wide TLS verification disable, JDK 11+ requirement)
  • Expanded --fault flag documentation with concrete examples and rule ordering semantics
  • Added Java integration test documentation explaining test coverage and Maven requirement
  • Clarified that fault injection is proxy-backend-only

Implementation Details

  • GEMINI.md is now a symlink (GEMINI.mdAGENTS.md) to maintain backward compatibility while eliminating content duplication
  • All documentation now consistently references the same CLI structure, feature set, and integration patterns
  • Japanese documentation aligns with English documentation on Java/PHP/LD_PRELOAD capabilities
  • Build process documentation clarifies that build.rs handles Java Agent compilation transparently, with graceful degradation when JDK is unavailable

https://claude.ai/code/session_01D3AJ8QJXCGkqj2FgPajyNP

README.md was a 3-line stub; it now covers features, quickstart,
CLI overview, and doc links. AGENTS.md (the canonical AI-agent doc,
symlinked as CLAUDE.md) was missing the entire Java -javaagent
integration (runner.rs injection, phantom-java-agent crate, build.rs
auto-build, and its integration test) and the --fault flag details,
despite both being implemented and tested. GEMINI.md had drifted into
its own inconsistent copy (stale manual Java build steps, missing
--bind/--fault/PHP docs); it's now a symlink to AGENTS.md like
CLAUDE.md, so there's a single source of truth. docs/how-to-use.ja.md
is also fixed: missing `run` subcommand in every example, stale
manual Java Agent build steps, LD_PRELOAD listed as HTTP-only
(it now covers HTTPS too), and a missing PHP section.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D3AJ8QJXCGkqj2FgPajyNP
@epli2
epli2 merged commit 2e722ea into main Jul 15, 2026
3 checks passed
@epli2
epli2 deleted the claude/readme-ai-docs-rrh3s4 branch July 15, 2026 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants