Skip to content

docs(mecatui): organize UI contributor guidance by task - #2597

Merged
jbeda merged 2 commits into
mainfrom
docs/tui-agent-guide
Oct 29, 2026
Merged

jbeda merged 2 commits into
mainfrom
docs/tui-agent-guide

Conversation

@jbeda

@jbeda jbeda commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Summary

The UI contributor guide had accumulated unrelated rules under broad headings, making it difficult for agents working in cmd/mecatui/ui to find the right contract before editing.

  • Add a short scoped AGENTS.md entry point with essential boundaries, task routing, and focused verification guidance, plus the required CLAUDE.md symlink.
  • Reorganize docs/tui.md by implementation task: client/server boundaries, surfaces, lists/forms, geometry and safe rendering, conversation/tool presentation, and themes/terminal capabilities.
  • Preserve existing invariants, group presentation constants into tables, and link to owning contracts, representative implementations, and tests. Keep library-specific mechanics beside their code.

docs/tui.md remains the canonical cross-component UI contributor guide; the scoped instruction file is an entry point, not a second handbook. Public user-docs/mecatui/ pages continue to own client usage.

Issue relationship

No linked issue; requested contributor-documentation cleanup.

Type of change

  • Documentation

Test plan

  • Linting (task lint)
  • Pre-review race suite (task test:race)
  • Offline demo (go run ./cmd/mecademo), including tool call, permission ask/approval, and final result
  • Markdown generation/link checks (task docs), with no broken links, broken anchors, or unreachable documents
  • Site build (task site:build)
  • git diff --check
  • Independent editorial review, including comparison against the original guide for lost invariants; no actionable findings

The separate non-race task test run was omitted because the complete race suite passed. Engine API checks are not applicable to this documentation-only change.

Changes

File Change
cmd/mecatui/ui/AGENTS.md Short agent entry point linking tasks to their contracts and checks
cmd/mecatui/ui/CLAUDE.md Compatibility symlink to AGENTS.md
docs/tui.md Task-oriented handbook, ownership/presentation tables, code examples, and test map

User-facing change

None. Contributor documentation and agent instructions only; no runtime behavior changes.

API compatibility

No wire, Go API, or stored-data changes. No API major or feature identifier changes and no upgrade implications.

Special notes for reviewers

Focus on whether task routing makes the existing guidance easier to apply without weakening ownership, asynchronous-result, terminal-safety, or geometry invariants. Detailed conventions remain in the handbook rather than being copied into the scoped entry point.

jbeda and others added 2 commits October 28, 2026 18:19
Add a scoped agent entry point and reorganize the UI handbook around implementation tasks, shared contracts, and targeted verification.

Co-authored-by: Mecatl <[email protected]>
Remove duplicated routing and verification prose, keep presentation conventions explicit, and colocate test references with the relevant guidance.

Co-authored-by: Mecatl <[email protected]>
@jbeda
jbeda merged commit 22a8ce6 into main Oct 29, 2026
40 checks passed
@jbeda
jbeda deleted the docs/tui-agent-guide branch October 29, 2026 01:51
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Nov 18, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant