Skip to content

[DOCS] Fix docs/ drift found by README-to-codebase audit (phantom refs, broken links, stale config) #686

Closed

Description

@edenreich

Summary

Follow-up to #685, which fixed README.md, docs/tools-reference.md, and docs/configuration-reference.md. A
README-to-codebase audit of the remaining docs/*.md found the same classes of drift: documented-but-removed
features, broken internal links, and stale/missing/mislabeled content. Every item below was verified against code
(two initial findings were disproved and excluded: /agents is a real init-seeded shortcut, and infer keybindings
exists).

Phantom / removed features

  • docs/mcp-integration.md - documents a url: server field throughout (Quick Start, config table). No such field
    exists: MCPServerEntry (config/mcp.go:26-47) uses scheme/host/port/path and builds the URL via GetURL().
    Configs using url: are silently ignored. (High)
  • docs/shortcuts-guide.md:48 - lists /config <show|get|set|reload> as a built-in shortcut; no such shortcut exists
    (not in container.go built-ins, not init-seeded). (High)
  • docs/heartbeat.md:168-169 - "give the agent permission to call the Github tool"; that tool was removed in refactor: remove built-in Github tool in favor of the gh CLI #572.
    Should use the gh CLI via Bash. (Medium)

Broken internal links (verified)

  • docs/web-terminal.md (x3) - links carry a docs/ prefix, so they resolve to docs/docs/... and 404
    (mcp-integration.md, agents-configuration.md, configuration-reference.md). Drop the prefix.
  • docs/mcp-integration.md - ../../tests/mcp-test-server/ does not exist (should be examples/mcp/).
  • docs/database-migrations.md - ./storage-architecture.md does not exist (should be conversation-storage.md).
  • docs/features/conversation-versioning.md (x3) - ../configuration/keybindings.md, ../user-guide/chat-interface.md,
    ../user-guide/agent-modes.md point to directories that do not exist.

Stale / incomplete / mislabeled

  • docs/shortcuts-guide.md - mirrors the README shortcuts gap: mislabels init-seeded /export and /env as built-in,
    omits real built-ins (/new, /conversations, /context, /cost, /diff, /explorer, /tasks,
    /init-github-action), and keeps the stale /clear description.
  • docs/conversation-storage.md - describes the legacy v1 JSONL layout ("exactly two lines") but the writer now uses v2
    append-only (jsonl.go:37-48,138-139); the d1 backend (config.go:553, StorageTypeD1) is undocumented (5 of 6 listed).
  • docs/conversation-title-generation.md:25,151 - example model anthropic/claude-4-haiku is not a valid id
    (pricing.go:82 has anthropic/claude-haiku-4-5-20251001).
  • docs/web-terminal.md - omits INFER_WEB_ENABLED.
  • docs/directory-structure.md - seeded-shortcuts file list is incomplete/misnamed (init seeds git, scm, mcp, shells,
    export, env, agents, skills - init.go:427-936).

Note on #685

/export is a real init-seeded custom shortcut (init.go:845), not "non-existent" as #685's commit wording states.
Removing it from the built-in list was correct, but README/shortcuts wording should present /export (and /env,
/agents, /skills) as created by infer init. Fold this correction in here rather than force-pushing #685.

Clean (no action)

channels, scheduling, speech-to-text, plan-mode, skills, tasks-management, features/explorer,
security/binary-verification, agents-configuration, commands-reference.

Acceptance Criteria

  • docs/mcp-integration.md: replace the phantom url: field with scheme/host/port/path in all examples and the config table; fix the tests/mcp-test-server link to examples/mcp/
  • docs/shortcuts-guide.md: drop the phantom /config; recategorize /export, /env, /agents, /skills as init-created; add the missing built-ins; fix the /clear description
  • docs/heartbeat.md: remove the Github tool reference; reference the gh CLI via Bash
  • docs/web-terminal.md: fix the three docs/-prefixed links; document INFER_WEB_ENABLED
  • docs/database-migrations.md: fix the ./storage-architecture.md link
  • docs/features/conversation-versioning.md: fix or remove the three broken ../configuration/ and ../user-guide/ links
  • docs/conversation-storage.md: update JSONL v1 -> v2 description; document the d1 backend; reconcile the Redis db/database key
  • docs/conversation-title-generation.md: fix the example model id
  • docs/directory-structure.md: complete the seeded-shortcuts file list
  • Align README/shortcuts wording so /export reads as an init-created shortcut (supersedes docs: sync README and reference docs with the codebase #685 wording)

Activity

  1. added
    documentation
    on Jun 29, 2026
  2. moved this to Done in 2026on Jun 30, 2026
  3. inference-gateway-releaser commented on Jun 30, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.126.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions