Skip to content

feat: bridge RTK + MarkItDown as external agent tools#12

Closed
Delqhi wants to merge 1 commit into
feat/gitnexus-bridgefrom
feat/external-tools-rtk-markitdown
Closed

feat: bridge RTK + MarkItDown as external agent tools#12
Delqhi wants to merge 1 commit into
feat/gitnexus-bridgefrom
feat/external-tools-rtk-markitdown

Conversation

@Delqhi
Copy link
Copy Markdown
Contributor

@Delqhi Delqhi commented May 30, 2026

Extends the external-tool bridge pattern (introduced for GitNexus in #11) to two more upstream tools. Stacked on #11 — review/merge that first; base will retarget to main automatically once #11 merges.

MarkItDown (MIT) — document context

markitdown-mcp MCP server wired into OpenCode/Codex/Hermes via uvx markitdown-mcp. Also sin markitdown convert <file> and a markitdown_convert tool in sin serve. Lets agents read PDFs/Office/images as Markdown.

RTK (Apache-2.0) — token-saving proxy

Not an MCP server: sin rtk setup drives upstream rtk init per agent (--opencode, --codex, --agent hermes) so shell-command output is compressed 60-90% before hitting context. Adds sin rtk doctor|gain.

Also

  • sin status now reports both tools' availability.
  • New docs/EXTERNAL_TOOLS.md + README matrix.
  • Neither tool is vendored; both stay upstream-managed (bundle stays MIT).

Tests

test_markitdown.py + test_rtk.py (subprocess/PATH stubbed, CI-safe). Full suite: 36 passed.

Mirrors the GitNexus bridge pattern for two more best-in-class upstream
tools (never vendored; installed/updated independently):

- markitdown.py (MIT): wire the markitdown-mcp MCP server into OpenCode,
  Codex and Hermes (uvx markitdown-mcp), plus a 'sin markitdown convert'
  CLI wrapper and a markitdown_convert tool in 'sin serve'.
- rtk.py (Apache-2.0): drive upstream 'rtk init' per agent so shell
  commands are routed through RTK's token-saving proxy (60-90% fewer
  tokens). Adds 'sin rtk setup|doctor|gain'.
- Extend 'sin status' to report both external tools.
- docs/EXTERNAL_TOOLS.md + README section documenting the bridge matrix.
- Tests: test_markitdown.py, test_rtk.py (subprocess/which stubbed,
  CI-safe). Full suite: 36 passed.

Stacked on the GitNexus bridge (#11).
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