Skip to content

docs: sync README and reference docs with the codebase - #685

Merged
edenreich merged 1 commit into
mainfrom
docs/readme-codebase-audit
Jun 29, 2026
Merged

edenreich merged 1 commit into
mainfrom
docs/readme-codebase-audit

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

What

Fixes documentation drift surfaced by a README↔codebase audit. Documentation only — no code changes.

Changes

Phantom Github tool removed — it was removed in #572 but still documented. Deleted from the README tools table, the full section in docs/tools-reference.md, and the env vars + YAML blocks in docs/configuration-reference.md. The system prompt already directs GitHub work to the gh CLI.

README tools table rebuilt from internal/agent/tools/registry.go — all 35 registered tools, grouped by category with their config gates, plus a note that MCP tools register dynamically at runtime. (The old table listed 16 and omitted 28 real tools.)

New sections + TOC — added a Table of Contents entry for the existing Claude Code Mode (Subscription) section and four new sections: Agent Skills, Computer Use, Persistent Memory, Reminders & Command Hooks.

Features / Commands / Shortcuts

  • Linked the six orphaned docs (skills, plan-mode, database-migrations, features/explorer, tasks-management, a2a-connections).
  • Documented infer skills and infer export.
  • Shortcuts: removed the non-existent /export, corrected /clear, /model, /copy, and added the nine missing built-ins (/new, /conversations, /context, /diff, /explorer, /release-notes, /tasks, /init, /init-github-action).

Examples — referenced all 8 example directories (only telegram-channel was linked before).

Approval defaults corrected — WebSearch, WebFetch, and A2A_SubmitTask require approval under the global tools.safety.require_approval: true default; the old tables said "No". If web search/fetch needing approval is unintended, that's a code-side default rather than a docs issue.

Verification

  • markdownlint clean (pre-commit Lint hook passed)
  • All README links + in-page anchors resolve; every linked doc and example dir exists
  • Every tool in registry.go is represented; no Github row remains

Merge order

The subagent tool suite (Agent, ListSubagents, GetSubagentResult, CloseSubagent, ReadSubagentScreen, SendSubagentInput, ApproveSubagent) is documented here but lands via #684. If this merges before #684, main will briefly describe those tools ahead of the code — merge #684 first (or together) to keep them in sync.

Fix documentation drift found by a README-to-codebase audit.

- Remove the phantom `Github` tool (removed in #572) from the README tools
  table, docs/tools-reference.md, and docs/configuration-reference.md.
- Rebuild the README tools table from registry.go: every registered tool,
  grouped by category with its config gate; note that MCP tools register
  dynamically at runtime.
- Add a Table of Contents entry for the existing Claude Code Mode section and
  new sections: Agent Skills, Computer Use, Persistent Memory, and
  Reminders & Command Hooks.
- Fix Features, Commands and Shortcuts: link the six orphaned docs, document
  `infer skills` and `infer export`, drop the non-existent `/export`, correct
  `/clear`, `/model` and `/copy`, and add the nine missing built-in shortcuts.
- Reference every example directory from the Examples section.
- Correct approval defaults: WebSearch, WebFetch and A2A_SubmitTask require
  approval under the global `tools.safety.require_approval: true` default.

The subagent tool suite (Agent, ListSubagents, ...) is documented here and
lands via #684; sequence the merges accordingly.
@edenreich
edenreich requested a review from a team as a code owner June 29, 2026 18:14
@edenreich
edenreich merged commit c328423 into main Jun 29, 2026
1 check passed
@edenreich
edenreich deleted the docs/readme-codebase-audit branch June 29, 2026 18:16
edenreich added a commit that referenced this pull request Jun 29, 2026
## Summary

Follow-up to #685. That PR synced `README.md`,
`docs/tools-reference.md`, and
`docs/configuration-reference.md` with the code; this one fixes the
**same classes of
drift** across the remaining `docs/*.md` pages — documented-but-removed
features, broken
internal links, and stale/mislabeled content. Every finding was
re-verified against the
current `main` before editing.

## Changes

| File | Fix |
| --- | --- |
| `docs/mcp-integration.md` | Replace the phantom `url:` server field
with `scheme`/`host`/`port`/`path` (12 examples + the per-server table);
`MCPServerEntry` has no `url` field, so a `url:` key was silently
ignored. Fix the `tests/mcp-test-server` link to `examples/mcp/`. |
| `docs/shortcuts-guide.md` | Drop the phantom `/config` shortcut; fix
the `/clear` description; move `/export`/`/env` out of built-ins; add
the missing built-ins (`/new`, `/conversations`, `/context`, `/cost`,
`/diff`, `/explorer`, `/tasks`, `/init-github-action`); add an
**Init-Created Shortcuts** section. |
| `docs/heartbeat.md` | Drop the `Github` tool (removed in #572); read
GitHub state via the `gh` CLI through Bash. |
| `docs/web-terminal.md` | Fix the three `docs/`-prefixed links
(resolved to `docs/docs/…`); document `INFER_WEB_ENABLED`. |
| `docs/database-migrations.md` | Repoint the dead
`./storage-architecture.md` link to `./conversation-storage.md`. |
| `docs/features/conversation-versioning.md` | Replace three links to
non-existent `../configuration/` and `../user-guide/` dirs with existing
docs. |
| `docs/conversation-storage.md` | Describe the v2 append-only JSONL
format (was "exactly two lines"); document the `d1` (Cloudflare D1)
backend; fix the stale Redis example keys (`database`/`username`/`ttl` →
`db`). |
| `docs/conversation-title-generation.md` | Fix the invalid example
model id `anthropic/claude-4-haiku` →
`anthropic/claude-haiku-4-5-20251001`. |
| `docs/directory-structure.md` | Complete the seeded-shortcuts list
(add `/env`, `/skills`). |
| `README.md` | Present `/export`, `/env`, `/agents`, `/skills` as
`infer init`-created shortcuts — supersedes #685's wording that called
`/export` "non-existent" (it's a real init-seeded shortcut). |

## Notes

- Two over-cautious items from the issue were dropped after
verification: the Redis `db`
key in the **Configuration** section already matched the code, and most
`INFER_WEB_*`
vars were already documented (only `INFER_WEB_ENABLED` was missing). The
Redis `db`
fix landed instead in the **backend example**, where
`database`/`username`/`ttl` were
  genuinely wrong.
- Two findings from the original audit were disproved and excluded:
`/agents` is a real
  init-seeded shortcut, and `infer keybindings` exists.

## Verification

- `markdownlint` clean on all changed files.
- Drift greps return nothing: no config `url:` in the MCP doc, no
`/config` shortcut, no
`Github` tool ref, no
`docs/docs`/`storage-architecture`/`claude-4-haiku`/
  `mcp-test-server`/`configuration/keybindings`/`user-guide/` targets.
- Every changed/added relative link resolves to a real file on disk.

Closes #686
inference-gateway-releaser Bot added a commit that referenced this pull request Jun 30, 2026
## [0.126.0](v0.125.0...v0.126.0) (2026-06-30)

### 🚀 Features

* add persistent memory tool for agent ([#679](#679)) ([a487b13](a487b13))
* **agent:** interactive subagent management and unified background-work tracking ([#684](#684)) ([343e083](343e083))

### 🐛 Bug Fixes

* **chat:** bind opt+backspace and ctrl+backspace to delete-word-backward ([#697](#697)) ([173fe83](173fe83)), closes [#689](#689) [#576](#576)
* **a2a:** retain completed background tasks in /tasks ([#691](#691)) ([#701](#701)) ([43b8e13](43b8e13))
* **autocomplete:** surface arguments for one-of/all-optional tool schemas ([#698](#698)) ([655b2e4](655b2e4))

### ♻️ Code Refactoring

* add .gitignore by default to the projects dir ([4717deb](4717deb))
* enable memory by default ([86c2158](86c2158))
* make infer config userspace-first ([#682](#682)) ([1e77e42](1e77e42)), closes [#680](#680)
* **tui:** single event-loop ingress - one notifier, no self-rescheduling pollers ([#700](#700)) ([2ab8854](2ab8854))
* standardize comment punctuation by replacing em dashes with hyphens ([78f53a8](78f53a8))

### 📚 Documentation

* fix docs/ drift found by the README-to-codebase audit ([#687](#687)) ([413047a](413047a)), closes [#572](#572) [#686](#686)
* sync README and reference docs with the codebase ([#685](#685)) ([c328423](c328423)), closes [#572](#572) [#684](#684) [#684](#684)

### 👷 CI/CD

* **deps:** update CLAUDE workflow to version 0.14.5 ([eaba2b3](eaba2b3))

### 🧹 Maintenance

* add .infer to .gitignore ([08ef319](08ef319))
* **deps:** bump infer CLI v0.124.0 -> v0.125.0, infer-action v0.19.0 -> v0.19.1 ([#681](#681)) ([e9e7e21](e9e7e21))
* remove agent definitions ([4f7fd7d](4f7fd7d))
* remove unused configuration and shortcut files ([4c611db](4c611db))
* update claude-code to 2.1.191 ([729e81c](729e81c))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.126.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant