The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
'use strict';
function normalizeGitHubGitOrigin(value) {
if (typeof value !== 'string') return null;
const normalized = value.trim().replace(/\.git$/i, '').replace(/\/+$/, '');
const match = normalized.match(
/^(?:https:\/\/github\.com\/|ssh:\/\/git@github\.com\/|git@github\.com:)([^/]+\/[^/]+)$/i
);
return match ? match[1].toLowerCase() : null;
}
module.exports = {
normalizeGitHubGitOrigin,
};