Skip to main content

Docs Content Prioritization & Strategic Shrink Plan

This plan defines the prioritization scoring, duplication resolution strategy, and file merge/cut decisions to guide the docs restructuring and shrinking phase (#157).

1. Prioritization & Budget Table

Each topic/file is scored from 1 (lowest) to 5 (highest) for the primary use cases:

  • Using: Setup, integration, querying, and tool usage.
  • Understanding: Architecture, design decisions, token cost comparison.
  • Contributing: Development setup, testing, release flow, internals.
  • PR/Marketing: Initial pitch, motivation, and conversion value.
Topic/FileUsingUnderstandingContributingPR/MarketingDecisionCurrent LinesTarget Lines
index.md3332Keep (clean TOC)3220
getting-started/quickstart.md5224Condense & Merge4515
getting-started/integration.md5343Keep & Consolidate143100
getting-started/faq.md4423Condense3520
explanation/scala-semantic-vs-grep.md3525Keep7250
reference/tools.md5343Keep & Consolidate7160
usage/examples.md5334Keep (worked examples)188150
project/design.md1552Keep & Merge3945
project/development.md1351Keep & Consolidate5550
project/releasing.md1151Keep6040
project/opaque-types-design.md1431Condense & Merge390 (Delete)
research/plan.md1231Cut / Merge gotchas410 (Delete)
research/token-metrics.md2424Condense & Merge180 (Delete)
research/token-metrics-methodology.md2534Keep & Consolidate193150
research/claude-interaction-study.md2433Keep7660
research/llm-steering-investigation.md2432Condense & Merge290 (Delete)
articles/it-hurts-to-watch-ai-grep-my-scala.md2525Keep7770
README.md5435Keep & Condense7450
AGENTS.md1251Keep & Condense3425
Total~1243~795

2. Duplication Resolution Strategy

a) Install / Setup steps

b) Tool descriptions

  • Canonical Home: reference/tools.md (names, purposes, schema rules).
  • Resolution:
    • Keep the concise tools table in tools.md.
    • Remove the generic redundant JSON-RPC request example from tools.md and link directly to usage/examples.md for full worked JSON payloads.

c) Token metrics split

  • Canonical Home: research/token-metrics-methodology.md.
  • Resolution:
    • Delete research/token-metrics.md.
    • Fold the auto-generated metrics table solely into token-metrics-methodology.md under the auto-generated comment hooks. Let the metrics test suite update the methodology file directly.

3. Strategic Shrink Plan

a) File Merges & Deletions

  1. Opaque Types Design -> Merge into project/design.md:
    • Condense project/opaque-types-design.md into a single paragraph summary under ## Opaque Types Decision in design.md.
    • Delete docs/project/opaque-types-design.md.
  2. LLM Steering Investigation -> Merge into project/design.md:
    • Move key findings of research/llm-steering-investigation.md as design rationale under a new ## Agent Steering Strategy section in design.md.
    • Delete docs/research/llm-steering-investigation.md.
  3. Research Plan -> Cut and Merge:
    • Move "Known issues / gotchas" from research/plan.md to project/development.md under ## Build & test gotchas.
    • Delete docs/research/plan.md as its phase tracking is stale and historical.

b) README.md vs AGENTS.md

  • README.md:
    • Keep it high-level, marketing-thin, and conversion-focused.
    • Retain the quick setup, core value proposition (vs grep table), and links to other documentation folders.
    • Avoid detailed commands, config variants, or deep internals.
  • AGENTS.md:
    • Keep it focused only on agent instructions: workspace rules, branches, tree2m commands, and compilation sequence.
    • Link to development.md for manual compilation/test detailed variants.