Skip to content

fix: [AI-7362] canonicalize legacy URLs (sh, my, dm hosts)#1004

Merged
saravmajestic merged 2 commits into
mainfrom
fix/AI-7362-canonicalize-legacy-urls
Jul 16, 2026
Merged

fix: [AI-7362] canonicalize legacy URLs (sh, my, dm hosts)#1004
saravmajestic merged 2 commits into
mainfrom
fix/AI-7362-canonicalize-legacy-urls

Conversation

@altimate-harness-bot

@altimate-harness-bot altimate-harness-bot Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #1006

Type of change

  • Bug fix

What does this PR do?

Replaces legacy documentation hostnames with canonical equivalents across the altimate-code codebase. Part of AI-7362 (URL canonicalization project).

The previous URLs relied on 301 redirects from legacy domains. This PR makes the canonical URLs explicit in source:

  • docs.altimate.sh/*https://help.altimate.ai/code/*
  • docs.myaltimate.com/*https://help.altimate.ai/dbt-power-user/*
  • datamates-docs.myaltimate.com/*https://help.altimate.ai/datamates/*
  • altimate.sh/*https://altimate.ai/* (per page map; installer paths excluded)
  • anthropic.txt, default.txt, qwen.txt prompt files aligned to https://help.altimate.ai/code

Intentionally excluded:

  • altimate.sh/install and altimate.sh/install.ps1 installer paths — left unchanged
  • docs.altimate.ai refs — deferred pending slug→path map
  • docs/docs/CNAME and mkdocs.yml site_url — infrastructure config, not outbound links
  • .github/workflows/ — CI config

How did you verify your code works?

  • Confirmed all updated URLs resolve (help.altimate.ai/* is public)
  • Verified installer paths are untouched: grep altimate.sh/install still returns hits
  • This is a mechanical text substitution — no logic changes

Screenshots / recordings

N/A — no UI changes

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Requested by @saravmajestic via harness

- docs.altimate.sh/* -> https://help.altimate.ai/code/*
- datamates-docs.myaltimate.com/* -> https://help.altimate.ai/datamates/*
- www.altimate.sh/benchmarks -> https://altimate.ai/benchmarks/

Installer paths (altimate.sh/install, install.ps1) untouched.
docs.altimate.ai refs deferred pending slug map from MAR-268 (1 ref in CHANGELOG.md).
docs/docs/CNAME and docs/mkdocs.yml left unchanged (site self-config).
script/upstream/ excluded (intentional branding/redirect map).
@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@saravmajestic
saravmajestic marked this pull request as ready for review July 15, 2026 02:51

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.


// altimate_change start — altimate docs URL
When the user directly asks about Altimate Code (eg. "can Altimate Code do...", "does Altimate Code have..."), or asks in second person (eg. "are you able...", "can you do..."), or asks how to use a specific Altimate Code feature (eg. implement a hook, write a slash command, or install an MCP server), use the WebFetch tool to gather information to answer the question from Altimate Code docs. The list of available docs is available at https://docs.altimate.sh
When the user directly asks about Altimate Code (eg. "can Altimate Code do...", "does Altimate Code have..."), or asks in second person (eg. "are you able...", "can you do..."), or asks how to use a specific Altimate Code feature (eg. implement a hook, write a slash command, or install an MCP server), use the WebFetch tool to gather information to answer the question from Altimate Code docs. The list of available docs is available at https://help.altimate.ai/code

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider aligning the sibling prompt variants in this same pass: packages/opencode/src/session/prompt/default.txt:9 and qwen.txt:11 still instruct models to WebFetch Altimate docs from the bare marketing host https://altimate.ai (no docs index), while this file now correctly points at https://help.altimate.ai/code.

qwen.txt is a live prompt — imported as PROMPT_ANTHROPIC_WITHOUT_TODO in session/system.ts — so non-Anthropic models get a worse "ask about Altimate Code" experience than Anthropic ones after this change.

This is pre-existing (both files used altimate.ai before) and bare altimate.ai wasn't in the declared swap list, so it's a follow-up rather than a blocker. Pointing both at https://help.altimate.ai/code, plus a small test asserting all docs-instruction prompts agree, would close the gap.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in commit 3ed3f47default.txt:9 and qwen.txt:11 now both reference https://help.altimate.ai/code to match anthropic.txt. The change was surgical (one line each), leaving all other content in the files untouched.

@dev-punia-altimate

Copy link
Copy Markdown
Contributor

🤖 Code Review — OpenCodeReview (Gemini) — No Issues Found

No supported files changed.

@github-actions

Copy link
Copy Markdown

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@sahrizvi sahrizvi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving — the follow-up commit 3ed3f47 cleanly aligns default.txt and qwen.txt with anthropic.txt (docs-index instruction now identical across all three prompt files), and the core migration is complete and surgical.

One optional follow-up for consideration (not blocking this merge): a repo-wide grep surfaces three stale user-facing docs links on a legacy pattern (altimate.ai/docs/*) that wasn't in this PR's declared swap list and isn't touched here:

  • packages/core/src/v1/config/config.ts:45https://altimate.ai/docs/commands → likely https://help.altimate.ai/code/configure/commands/
  • packages/core/src/v1/config/config.ts:112https://altimate.ai/docs/agents → likely https://help.altimate.ai/code/configure/agents/
  • packages/opencode/src/cli/cmd/github.handler.ts:207https://altimate.ai/docs/github/#usage-examples → likely https://help.altimate.ai/code/usage/github/#usage-examples

These are a config-schema description and CLI output, so users see them. Your call whether to fold them into this PR or track them separately (as was done for docs.altimate.ai under MAR-268) — either is fine; worth a tracking note either way.

@saravmajestic
saravmajestic merged commit 8a50ec7 into main Jul 16, 2026
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: canonicalize legacy doc URLs across codebase [AI-7362]

3 participants