Skip to content

Releases

v1.2.0 β€” Writing Profile Extraction & Recurrence-Prevention Coaching

Choose a tag to compare

@tanaikech tanaikech released this 04 Dec 03:00

gdocumentor v1.2.0 β€” Writing Profile Extraction & Recurrence-Prevention Coaching

Highlights

  1. Feature A β€” 3-Pillar Writing & Review Profile Extraction (gdocumentor profile / MCP gdocumentor_profile)

    • Extracts pending inline suggestions (Google Docs API v1), open & resolved comments/replies with quotedFileContent (Google Drive API v3 comments.list with mandatory fields & pagination), sampled historical revision diffs (Google Drive API v3 revisions.list β†’ exportLinks["text/plain"], default --max-revisions 5), and local Decision Records across single or multiple Google Docs.
    • Outputs a canonical reusable WritingProfile v1.0 in JSON and/or Markdown (--profile-format json|md|both) separating:
      1. Recurrence Prevention Patterns (RP-01, ...) β€” recurring writer habits & weaknesses with concrete avoidance rules and grounded evidence
      2. Reviewer Criteria (RC-01, ...) β€” reviewer focus areas and evaluation standards
      3. Preserved Author Style (AS-01, ...) β€” intentional author voice traits to respect and NOT overwrite
      4. Pre-Submission Self-Check Checklist
    • Built-in resilience: bounded concurrency (3 docs / 2 revision exports), idempotent GET HTTP 429/503 exponential backoff retry, graceful degradation on HTTP 403 / 10 MB export limits, and automatic Map-Reduce (>8 docs or >200 KB) + MAX_TOKENS retry.
  2. Feature B β€” Profile-Guided Recurrence-Prevention Review (gdocumentor proofread --profile / gdocumentor advise --profile)

    • Loads JSON, Markdown, or piped CLIOutput profiles (--profile -) and reviews single or multiple target Google Docs (-d doc1,doc2) as well as --no-auth local files.
    • Prioritizes recurrence-risk passages with grounded historical evidence (recurrenceRisk, profilePatternId, historicalEvidence), deterministically validates profilePatternId against loaded profile IDs to prevent hallucinated citations, respects preservedAuthorStyle, and generates a tailored selfCheckChecklist.
  3. Flexible Composable Execution & 0-Token Host-AI MCP Integration

    • Standalone: gdocumentor profile -d <d1>,<d2> -o profile.json β†’ gdocumentor advise --profile profile.json -d <target>
    • Unix Pipeline: gdocumentor profile -d <d1>,<d2> --json | gdocumentor proofread --profile - -d <target> (with strict stdin isolation)
    • Native 1-Step Chain: gdocumentor proofread --learn-from <d1>,<d2> --save-profile profile.json -d <target>
    • MCP Server (gdocumentor mcp): Exposes 7 tools including gdocumentor_profile (0-token Host-AI 2-step & useInternalGemini fallback) and gdocumentor_proofread (profile / writingProfile / learnFrom / saveProfile / docIds).
    • Updated Agent Skills (SKILL.md, references/json_schema.md), Rules, Coach Agent, gdocumentor setup templates, TEST_COMMANDS.md (#22–#25), and TESTING_GUIDE.md (Test 14).

Pre-Compiled Binaries (CGO_ENABLED=0)

Attached below for macOS (arm64, amd64), Linux (amd64, arm64), and Windows (amd64, arm64), together with gdocumentor_SHA256SUMS.txt.

v1.1.0

Choose a tag to compare

@tanaikech tanaikech released this 14 Nov 08:17

What's New in v1.1.0

πŸ”’ Optimistic Revision Control & Context-Aware UTF-16 Re-Anchoring Engine (WriteControl.requiredRevisionId)

  • Zero-Overhead Optimistic Revision Locking:
    • Coordinate-dependent Google Docs batchUpdate payloads across proofread (--mode suggest and --mode hint insertComment), edit (including --suggest non-downgrade protection), and --summary-tab now bind WriteControl.requiredRevisionId directly from Stage 1β€”incurring zero extra documents.get API calls on uncontended runs while keeping coordinate-free addCommentReply requests unbound.
  • Two-Pass Surrogate-Pair-Safe UTF-16 Re-Anchoring on Concurrent Edits:
    • When a collaborator edits the Google Document during LLM inference or between 2-step MCP Host-AI calls (HTTP 400 FAILED_PRECONDITION or revisionId advance), gdocumentor automatically fetches the latest settled document buffer (SettledUTF16Buffer, excluding pending suggestedInsertionIds and suggestedDeletionIds), verifies exact coordinates + cross-line 32-UTF-16-unit context anchors (CtxBefore / CtxAfter), re-anchors shifted spans via length-weighted bigram Dice similarity, re-projects --range / -t selection scopes (ScopeBoundaryAnchor), and re-sorts surviving items strictly descending (StartIndex DESC).
  • Fail-Closed Lexical & Provenance Safety:
    • Sentences already rewritten or deleted by a collaborator are safely skipped (stale_superseded / stale_ambiguous / stale_out_of_scope) without corrupting surrounding UTF-16 offsets or inflating DecisionRecord.Cumulative.Issued.
    • Phase 2 figure (VISUAL_N) and table (TABLE_N) review comments re-anchor by immutable ObjectID (kix.xxx) and ordinal-invariant TableSignature (ComputeTableSignature).
  • Stateless 2-Step MCP & CLI Snapshot Continuity:
    • Added atomic 30-minute Stage 1 revision snapshots (prepared_snapshots), optional --base-revision-id (baseRevisionId), and revisionId, revisionControl, and skippedStaleSuggestions telemetry in CLI TUI and --json / MCP responses.

πŸ“¦ Pre-Compiled Static Binaries (CGO_ENABLED=0)

  • gdocumentor_darwin_arm64 (macOS Apple Silicon M1–M4)
  • gdocumentor_darwin_amd64 (macOS Intel)
  • gdocumentor_linux_amd64 (Linux x86_64 / WSL2)
  • gdocumentor_linux_arm64 (Linux ARM64)
  • gdocumentor_windows_amd64.exe (Windows x86_64)
  • gdocumentor_windows_arm64.exe (Windows ARM64)
  • gdocumentor_SHA256SUMS.txt (SHA-256 Checksums)

v1.0.1

Choose a tag to compare

@tanaikech tanaikech released this 14 Nov 06:26

What's New in v1.0.1

✨ Gemini 4 Hydrogen & Gemini 4 Carbon Support + Gemini 4 API Hardening

  • First-Class Support for gemini-4-hydrogen & gemini-4-carbon:
    • Added full CLI, environment variable (DOCUMENTOR_MODEL), and MCP internal-engine support for Gemini 4 Hydrogen (--model gemini-4-hydrogen or shorthand --model hydrogen) and Gemini 4 Carbon (--model gemini-4-carbon or shorthand --model carbon), alongside gemini-3.8-flash (default) and gemini-4-argon (--model argon).
  • Gemini 4 Thinking Response Part Filtering (thought: true):
    • Hardened /v1beta/models/{model}:generateContent response parsing (internal/gemini/client.go) to inspect all candidates[0].content.parts, automatically skip internal thought: true reasoning parts, concatenate non-thought output parts cleanly, and surface explicit finishReason (MAX_TOKENS) and promptFeedback.blockReason diagnostics.
  • Automatic temperature Omission on Gemini 4 Reasoning Models:
    • Automatically omits deprecated temperature sampling parameters in generationConfig when calling gemini-4-* models (gemini-4-hydrogen, gemini-4-carbon, gemini-4-argon) while preserving existing sampling defaults on gemini-3.8-flash.
  • Extended HTTP Timeout (600s) & Custom Override (DOCUMENTOR_HTTP_TIMEOUT):
    • Increased the default Gemini HTTP timeout from 180s to 600s for deep multi-file/PDF reasoning with gemini-4-carbon / gemini-4-hydrogen, and added DOCUMENTOR_HTTP_TIMEOUT (e.g., 900s or 15m) for custom timeout tuning.
  • Custom Gemini Base URL (--gemini-base-url / GEMINI_BASE_URL):
    • Added CLI (--gemini-base-url), environment (GEMINI_BASE_URL), and MCP (geminiBaseUrl, useInternalGemini) support for custom Gemini API endpoints and school/enterprise reverse proxies.

πŸ“¦ Pre-Compiled Static Binaries (CGO_ENABLED=0)

  • gdocumentor_darwin_arm64 (macOS Apple Silicon M1–M4)
  • gdocumentor_darwin_amd64 (macOS Intel)
  • gdocumentor_linux_amd64 (Linux x86_64 / WSL2)
  • gdocumentor_linux_arm64 (Linux ARM64)
  • gdocumentor_windows_amd64.exe (Windows x86_64)
  • gdocumentor_windows_arm64.exe (Windows ARM64)
  • gdocumentor_SHA256SUMS.txt (SHA-256 Checksums)

v1.0.0 β€” DocuMentor AI (Go CLI, Zero-GEMINI_API_KEY Host-AI MCP Server & 7-Client Skill)

Choose a tag to compare

@tanaikech tanaikech released this 08 Nov 03:28

gdocumentor v1.0.0 β€” Initial Release

gdocumentor (DocuMentor AI Go CLI, Dual-Engine MCP Server gdocumentor mcp, and Multi-Agent Skill / Plugin) turns Gemini and any MCP-compatible AI agent (Google Antigravity agy, Claude Desktop, Claude Code, Cursor, VS Code / GitHub Copilot, Windsurf, and Gemini CLI) into a Socratic writing & code review coach and 0-token Google Docs automation engine.

Highlights

  • Dual AI Execution Engine: Run as a standalone Go CLI via GEMINI_API_KEY (gemini-3.8-flash / gemini-4-argon), or as an MCP Server (gdocumentor mcp) powered by your client AI agent's own LLM (Host AI, 0 GEMINI_API_KEY required).
  • Zero-Drift Bottom-Up UTF-16 Inline Suggestions & Socratic Hints: Applies WriteMode.SUGGEST inline diffs with πŸ’‘ Reason and πŸŽ“ Learning Point replies, or withholds answers in Socratic Hint Mode (--hint) so human authors write the fix.
  • Multimodal Prose Γ— Table (TABLE_1) Γ— Figure (VISUAL_1) Verification: Cross-checks narrative claims against embedded images and tables.
  • Scoped Code & Manuscript Review (--target, --auto-deps): Restricts edits strictly to specified line/character ranges (#L1-L35, @0:2500) while automatically loading imported files as read-only context.
  • AI (πŸ€– AI) + Human (πŸ‘€ Human) Review Learning Summary (gdocumentor summary) & 4-State Decision Record: Analyzes both AI-generated and human-authored suggestions/comments on existing Google Docs to synthesize personalized learning advice, and tracks Accepted, Edited, Rejected, and Expired outcomes.
  • Zero-Token Direct Google Docs Editor (gdocumentor edit): Creates Pageless Google Docs, converts/inserts rich Markdown + tables + local images, and resizes VISUAL_1 in place with 0 LLM tokens.
  • Self-Provisioning 7-Client Installer (gdocumentor setup) & 1-Command WSL2 ↔ Windows 11 Bridge (--wsl-host): Non-destructively installs MCP server configs and native agent skills/rules across all 7 AI clients, including automatic wsl.exe --exec cross-OS bridging.