Repository navigation
Releases
v1.2.0 β Writing Profile Extraction & Recurrence-Prevention Coaching
gdocumentor v1.2.0 β Writing Profile Extraction & Recurrence-Prevention Coaching
Highlights
-
Feature A β 3-Pillar Writing & Review Profile Extraction (
gdocumentor profile/ MCPgdocumentor_profile)- Extracts pending inline suggestions (Google Docs API v1), open & resolved comments/replies with
quotedFileContent(Google Drive API v3comments.listwith mandatoryfields& pagination), sampled historical revision diffs (Google Drive API v3revisions.listβexportLinks["text/plain"], default--max-revisions 5), and local Decision Records across single or multiple Google Docs. - Outputs a canonical reusable
WritingProfilev1.0 in JSON and/or Markdown (--profile-format json|md|both) separating:- Recurrence Prevention Patterns (
RP-01, ...) β recurring writer habits & weaknesses with concrete avoidance rules and grounded evidence - Reviewer Criteria (
RC-01, ...) β reviewer focus areas and evaluation standards - Preserved Author Style (
AS-01, ...) β intentional author voice traits to respect and NOT overwrite - Pre-Submission Self-Check Checklist
- Recurrence Prevention Patterns (
- Built-in resilience: bounded concurrency (3 docs / 2 revision exports), idempotent
GETHTTP 429/503 exponential backoff retry, graceful degradation on HTTP 403 / 10 MB export limits, and automatic Map-Reduce (>8 docs or >200 KB) +MAX_TOKENSretry.
- Extracts pending inline suggestions (Google Docs API v1), open & resolved comments/replies with
-
Feature B β Profile-Guided Recurrence-Prevention Review (
gdocumentor proofread --profile/gdocumentor advise --profile)- Loads JSON, Markdown, or piped
CLIOutputprofiles (--profile -) and reviews single or multiple target Google Docs (-d doc1,doc2) as well as--no-authlocal files. - Prioritizes recurrence-risk passages with grounded historical evidence (
recurrenceRisk,profilePatternId,historicalEvidence), deterministically validatesprofilePatternIdagainst loaded profile IDs to prevent hallucinated citations, respectspreservedAuthorStyle, and generates a tailoredselfCheckChecklist.
- Loads JSON, Markdown, or piped
-
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 includinggdocumentor_profile(0-token Host-AI 2-step &useInternalGeminifallback) andgdocumentor_proofread(profile/writingProfile/learnFrom/saveProfile/docIds). - Updated Agent Skills (
SKILL.md,references/json_schema.md), Rules, Coach Agent,gdocumentor setuptemplates,TEST_COMMANDS.md(#22β#25), andTESTING_GUIDE.md(Test 14).
- Standalone:
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
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
batchUpdatepayloads acrossproofread(--mode suggestand--mode hintinsertComment),edit(including--suggestnon-downgrade protection), and--summary-tabnow bindWriteControl.requiredRevisionIddirectly from Stage 1βincurring zero extradocuments.getAPI calls on uncontended runs while keeping coordinate-freeaddCommentReplyrequests unbound.
- Coordinate-dependent Google Docs
- 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_PRECONDITIONorrevisionIdadvance),gdocumentorautomatically fetches the latest settled document buffer (SettledUTF16Buffer, excluding pendingsuggestedInsertionIdsandsuggestedDeletionIds), 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/-tselection scopes (ScopeBoundaryAnchor), and re-sorts surviving items strictly descending (StartIndexDESC).
- When a collaborator edits the Google Document during LLM inference or between 2-step MCP Host-AI calls (
- 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 inflatingDecisionRecord.Cumulative.Issued. - Phase 2 figure (
VISUAL_N) and table (TABLE_N) review comments re-anchor by immutableObjectID(kix.xxx) and ordinal-invariantTableSignature(ComputeTableSignature).
- Sentences already rewritten or deleted by a collaborator are safely skipped (
- Stateless 2-Step MCP & CLI Snapshot Continuity:
- Added atomic 30-minute Stage 1 revision snapshots (
prepared_snapshots), optional--base-revision-id(baseRevisionId), andrevisionId,revisionControl, andskippedStaleSuggestionstelemetry in CLI TUI and--json/ MCP responses.
- Added atomic 30-minute Stage 1 revision snapshots (
π¦ Pre-Compiled Static Binaries (CGO_ENABLED=0)
gdocumentor_darwin_arm64(macOS Apple Silicon M1βM4)gdocumentor_darwin_amd64(macOS Intel)gdocumentor_linux_amd64(Linuxx86_64/ WSL2)gdocumentor_linux_arm64(LinuxARM64)gdocumentor_windows_amd64.exe(Windowsx86_64)gdocumentor_windows_arm64.exe(WindowsARM64)gdocumentor_SHA256SUMS.txt(SHA-256 Checksums)
v1.0.1
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-hydrogenor shorthand--model hydrogen) and Gemini 4 Carbon (--model gemini-4-carbonor shorthand--model carbon), alongsidegemini-3.8-flash(default) andgemini-4-argon(--model argon).
- Added full CLI, environment variable (
- Gemini 4 Thinking Response Part Filtering (
thought: true):- Hardened
/v1beta/models/{model}:generateContentresponse parsing (internal/gemini/client.go) to inspect allcandidates[0].content.parts, automatically skip internalthought: truereasoning parts, concatenate non-thought output parts cleanly, and surface explicitfinishReason(MAX_TOKENS) andpromptFeedback.blockReasondiagnostics.
- Hardened
- Automatic
temperatureOmission on Gemini 4 Reasoning Models:- Automatically omits deprecated
temperaturesampling parameters ingenerationConfigwhen callinggemini-4-*models (gemini-4-hydrogen,gemini-4-carbon,gemini-4-argon) while preserving existing sampling defaults ongemini-3.8-flash.
- Automatically omits deprecated
- Extended HTTP Timeout (
600s) & Custom Override (DOCUMENTOR_HTTP_TIMEOUT):- Increased the default Gemini HTTP timeout from
180sto600sfor deep multi-file/PDF reasoning withgemini-4-carbon/gemini-4-hydrogen, and addedDOCUMENTOR_HTTP_TIMEOUT(e.g.,900sor15m) for custom timeout tuning.
- Increased the default Gemini HTTP timeout from
- 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.
- Added CLI (
π¦ Pre-Compiled Static Binaries (CGO_ENABLED=0)
gdocumentor_darwin_arm64(macOS Apple Silicon M1βM4)gdocumentor_darwin_amd64(macOS Intel)gdocumentor_linux_amd64(Linuxx86_64/ WSL2)gdocumentor_linux_arm64(LinuxARM64)gdocumentor_windows_amd64.exe(Windowsx86_64)gdocumentor_windows_arm64.exe(WindowsARM64)gdocumentor_SHA256SUMS.txt(SHA-256 Checksums)
v1.0.0 β DocuMentor AI (Go CLI, Zero-GEMINI_API_KEY Host-AI MCP Server & 7-Client Skill)
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, 0GEMINI_API_KEYrequired). - Zero-Drift Bottom-Up UTF-16 Inline Suggestions & Socratic Hints: Applies
WriteMode.SUGGESTinline 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 tracksAccepted,Edited,Rejected, andExpiredoutcomes. - Zero-Token Direct Google Docs Editor (
gdocumentor edit): Creates Pageless Google Docs, converts/inserts rich Markdown + tables + local images, and resizesVISUAL_1in 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 automaticwsl.exe --execcross-OS bridging.