[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"workflow-amp-by-sourcegraph-whole-repo-ai-coding-agent-bb158873":3,"seo:featured-workflow:bb158873-5e3a-4f74-be9b-5660b33303b9:es":88,"workflow-related-amp-by-sourcegraph-whole-repo-ai-coding-agent-bb158873-bb158873-5e3a-4f74-be9b-5660b33303b9":89},{"id":4,"uuid":5,"slug":6,"title":7,"description":8,"author_id":9,"author_name":10,"author_avatar":11,"token_estimate":12,"time_saved":12,"model_used":13,"fork_count":12,"vote_count":12,"view_count":14,"parent_id":12,"parent_uuid":13,"lang_type":15,"steps":16,"files":23,"tags":24,"has_voted":30,"visibility":19,"share_token":13,"is_featured":12,"content_hash":31,"asset_kind":32,"target_tools":33,"install_mode":37,"entrypoint":20,"risk_profile":38,"dependencies":42,"verification":48,"agent_metadata":51,"agent_fit":63,"trust":75,"provenance":84,"created_at":86,"updated_at":87},2778,"bb158873-5e3a-4f74-be9b-5660b33303b9","amp-by-sourcegraph-whole-repo-ai-coding-agent","Amp by Sourcegraph — Whole-Repo AI Coding Agent","Sourcegraph's Amp reads the entire repo's symbol graph before editing. Symbol-aware retrieval, no hallucinated imports, type-respecting refactors.","9ad55b56-afc0-4c0a-a2c9-0eeae4f2b948","Sourcegraph","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3979584?v=4",0,"",9,"en",[17],{"id":18,"step_order":19,"title":20,"description":13,"prompt_template":21,"variables":13,"depends_on":22,"expected_output":13},3341,1,"Asset","## Quick Use\n\n1. Sign up at sourcegraph.com (free tier available)\n2. Install: `brew install sourcegraph\u002Famp\u002Famp`\n3. `amp auth login`, then `amp \"\u003Cyour task>\"` in any indexed repo\n\n---\n\n## Intro\n\nAmp is Sourcegraph's AI coding agent that reads the *whole* repo before it edits. Where Cursor and Claude Code rely on per-file context windows, Amp queries Sourcegraph's pre-indexed code graph — symbol references, type hierarchies, dependency maps — to ground every edit. Best for: monorepo refactors and codebases too large for any single context window. Works with: terminal CLI + VS Code extension + Sourcegraph web. Setup time: 5 minutes (Sourcegraph account + API token).\n\n---\n\n### What Amp does differently\n\nMost AI coding tools approximate \"see the whole codebase\" by stuffing files into the context window. Amp doesn't approximate — Sourcegraph already indexes your repo (symbols, references, types, history) and Amp queries that index.\n\nConcretely:\n- When you ask \"rename `getUser` to `fetchUser` everywhere\", Amp uses *symbol references*, not text search. No false positives in comments or strings.\n- When you ask \"where is this called\", Amp returns actual call sites from the graph, not regex matches.\n- When you ask for a refactor, Amp reads the type hierarchy first and proposes changes that respect interfaces and overrides.\n\n### CLI usage\n\n```bash\n# Install\nbrew install sourcegraph\u002Famp\u002Famp\n\n# Authenticate (opens browser)\namp auth login\n\n# Run a task in the current repo\namp \"Refactor the User type to add a 'plan' field. Update all call sites.\"\n\n# Run on a specific Sourcegraph-indexed repo (no need to clone)\namp --repo github.com\u002Fsourcegraph\u002Fsourcegraph \"List all uses of the deprecated AuthService\"\n```\n\n### Connect Amp to Claude Code or Cursor\n\nAmp ships an MCP server. Add to your MCP config:\n\n```json\n{\n  \"mcpServers\": {\n    \"sourcegraph\": {\n      \"command\": \"amp\",\n      \"args\": [\"mcp\"],\n      \"env\": { \"SRC_ACCESS_TOKEN\": \"your-token\" }\n    }\n  }\n}\n```\n\nNow Claude Code \u002F Cursor \u002F Codex CLI can call `sourcegraph_search`, `sourcegraph_symbol_references`, `sourcegraph_blame` — using your repo graph as a tool.\n\n### When to choose Amp over Cursor \u002F Claude Code\n\n- Your codebase is >1M LOC and doesn't fit any context window\n- You need refactors that respect actual symbol references, not regex\n- You want consistent answers across teammates (everyone queries the same indexed graph)\n\n---\n\n### FAQ\n\n**Q: Is Amp free?**\nA: Sourcegraph offers a free tier with limited indexed repos. Pro plans (and the Amp coding agent itself) are subscription-based. Pricing on sourcegraph.com\u002Fpricing.\n\n**Q: Does Amp work without a Sourcegraph account?**\nA: No — Amp queries the Sourcegraph code graph, which requires Sourcegraph to index your repo. For single-repo work without indexing, Cursor or Claude Code is simpler.\n\n**Q: Can I use Amp on private repos?**\nA: Yes. Sourcegraph self-hosted and Sourcegraph Cloud both support private repos. Amp authenticates via SRC_ACCESS_TOKEN scoped to repos you have access to.\n\n---\n\n## Source & Thanks\n\n> Built by [Sourcegraph](https:\u002F\u002Fgithub.com\u002Fsourcegraph). Commercial product with free tier.\n>\n> [sourcegraph\u002Famp](https:\u002F\u002Fsourcegraph.com\u002Famp) — Sourcegraph code graph required\n\n---\n\n\u003C!-- ZH -->\n\n## 快速使用\n\n1. 在 sourcegraph.com 注册（有免费档）\n2. 装：`brew install sourcegraph\u002Famp\u002Famp`\n3. `amp auth login`，然后在已索引的仓库里跑 `amp \"\u003C你的任务>\"`\n\n---\n\n## 简介\n\nAmp 是 Sourcegraph 的 AI 编码 agent，编辑之前先读 *整个* 仓库。Cursor 和 Claude Code 靠单文件上下文窗口，Amp 查 Sourcegraph 预索引的代码图谱 —— 符号引用、类型层级、依赖关系 —— 给每次编辑做接地。适合 monorepo 重构和任何单上下文窗口装不下的代码库。兼容终端 CLI + VS Code 扩展 + Sourcegraph 网页版。装机时间 5 分钟（Sourcegraph 账号 + API token）。\n\n---\n\n### Amp 跟其他工具的根本区别\n\n多数 AI 编码工具靠\"把文件塞进上下文窗口\"来近似\"看到整个代码库\"。Amp 不近似 —— Sourcegraph 本身已经把你的仓库索引好了（符号、引用、类型、历史），Amp 直接查这个索引。\n\n具体说：\n- 你说\"把 `getUser` 重命名成 `fetchUser`\"，Amp 用 *符号引用*，不是文本搜索。注释和字符串里的 `getUser` 不会被误改。\n- 你问\"这个函数在哪被调用\"，Amp 从图谱返回真实调用点，不是 regex 匹配。\n- 你要求重构，Amp 先读类型层级再提改动，尊重接口和覆盖关系。\n\n### CLI 用法\n\n```bash\n# 装\nbrew install sourcegraph\u002Famp\u002Famp\n\n# 认证（弹浏览器）\namp auth login\n\n# 在当前仓库跑任务\namp \"Refactor the User type to add a 'plan' field. Update all call sites.\"\n\n# 在某个 Sourcegraph 已索引的仓库跑（不用 clone）\namp --repo github.com\u002Fsourcegraph\u002Fsourcegraph \"List all uses of the deprecated AuthService\"\n```\n\n### 把 Amp 接到 Claude Code 或 Cursor\n\nAmp 自带 MCP server。加到你的 MCP 配置：\n\n```json\n{\n  \"mcpServers\": {\n    \"sourcegraph\": {\n      \"command\": \"amp\",\n      \"args\": [\"mcp\"],\n      \"env\": { \"SRC_ACCESS_TOKEN\": \"your-token\" }\n    }\n  }\n}\n```\n\n之后 Claude Code \u002F Cursor \u002F Codex CLI 就能调用 `sourcegraph_search` \u002F `sourcegraph_symbol_references` \u002F `sourcegraph_blame` —— 把你的仓库图谱当成工具用。\n\n### 什么时候选 Amp 而不是 Cursor \u002F Claude Code\n\n- 你的代码库 >100 万行，任何上下文窗口都装不下\n- 你需要尊重真实符号引用的重构，不是 regex\n- 你要团队成员答案一致（大家查同一个索引图谱）\n\n---\n\n### FAQ\n\n**Q: Amp 免费吗？**\nA: Sourcegraph 有免费档（限索引仓库数）。Pro 套餐和 Amp coding agent 是订阅制。价格见 sourcegraph.com\u002Fpricing。\n\n**Q: 没 Sourcegraph 账号能用 Amp 吗？**\nA: 不能。Amp 查的是 Sourcegraph 代码图谱，需要 Sourcegraph 先索引你的仓库。单仓库不需要索引时，Cursor \u002F Claude Code 更简单。\n\n**Q: 私有仓库能用 Amp 吗？**\nA: 可以。Sourcegraph 自托管和云版本都支持私有仓库。Amp 通过 SRC_ACCESS_TOKEN 鉴权，只能访问你有权限的仓库。\n\n---\n\n## 来源与感谢\n\n> Built by [Sourcegraph](https:\u002F\u002Fgithub.com\u002Fsourcegraph). Commercial product with free tier.\n>\n> [sourcegraph\u002Famp](https:\u002F\u002Fsourcegraph.com\u002Famp) — Sourcegraph code graph required\n","0",[],[25],{"id":26,"name":27,"slug":28,"icon":29},14,"CLI Tools","cli","🖥️",false,"12a5e52aa1719275038b21e38ee98ac6b88ebb74f674ef9e872fc0396e1d4e80","mcp_config",[34,35,36],"claude_code","codex","cursor","stage_only",{"executes_code":30,"modifies_global_config":39,"requires_secrets":40,"uses_absolute_paths":30,"network_access":30},true,[41],"SRC_ACCESS_TOKEN",{"npm":43,"pip":44,"brew":45,"system":47},[],[],[46],"sourcegraph\u002Famp\u002Famp",[],{"commands":49,"expected_files":50},[],[20],{"asset_kind":32,"target_tools":52,"install_mode":37,"entrypoint":20,"risk_profile":53,"dependencies":55,"content_hash":31,"verification":60,"inferred":39},[34,35,36],{"executes_code":30,"modifies_global_config":39,"requires_secrets":54,"uses_absolute_paths":30,"network_access":30},[41],{"npm":56,"pip":57,"brew":58,"system":59},[],[],[46],[],{"commands":61,"expected_files":62},[],[20],{"target":35,"score":64,"status":37,"policy":37,"why":65,"asset_kind":32,"install_mode":37},5,[66,67,68,69,70,71,72,73,74],"target_tools includes codex","asset_kind mcp_config","install_mode stage_only","policy stage_only","asset_kind mcp_config is not activated directly for Codex","install_mode is stage_only","risk_profile.modifies_global_config is true","risk_profile.requires_secrets is not empty","trust new",{"author_trust_level":76,"verified_publisher":30,"asset_signed_hash":31,"signature_status":77,"install_count":12,"report_count":12,"dangerous_capability_badges":78,"review_status":81,"signals":82},"new","hash_only",[32,79,80,37],"modifies_global_config","requires_secrets","unreviewed",[83],"content hash available",{"owner_uuid":9,"owner_name":10,"source_url":85,"content_hash":31,"visibility":19,"created_at":86,"updated_at":87},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Famp-by-sourcegraph-whole-repo-ai-coding-agent","2026-05-07 21:24:24","2026-05-14 10:45:10",null,[90,153,209,259],{"id":91,"uuid":92,"slug":93,"title":94,"description":95,"author_id":96,"author_name":97,"author_avatar":98,"token_estimate":99,"time_saved":12,"model_used":100,"fork_count":12,"vote_count":12,"view_count":101,"parent_id":12,"parent_uuid":13,"lang_type":15,"steps":102,"files":88,"tags":103,"has_voted":30,"visibility":19,"share_token":13,"is_featured":12,"content_hash":105,"asset_kind":32,"target_tools":106,"install_mode":37,"entrypoint":94,"risk_profile":108,"dependencies":110,"verification":115,"agent_metadata":118,"agent_fit":130,"trust":135,"provenance":141,"created_at":143,"updated_at":144,"__relatedScore":145,"__relatedReasons":146,"__sharedTags":151},795,"926633bc-d041-486a-bda3-5a3cecabc0a8","gemini-cli-google-ai-coding-agent-terminal-926633bc","Gemini CLI — Google AI Coding Agent in Terminal","Google's official CLI coding agent powered by Gemini 2.5 Pro. Free 60 requests\u002Fmin for Gemini users with 1M token context, MCP support, and Google ecosystem integration.","8a911193-3180-11f1-9bc6-00163e2b0d79","AI Open Source","https:\u002F\u002Ftokrepo.com\u002Fapple-touch-icon.png",4200,"mixed",94,[],[104],{"id":26,"name":27,"slug":28,"icon":29},"34d6f311ae34106173de64fafc226dba072c26683ce3ca23734de69603b8017d",[34,35,107],"gemini_cli",{"executes_code":39,"modifies_global_config":39,"requires_secrets":109,"uses_absolute_paths":30,"network_access":30},[],{"npm":111,"pip":112,"brew":113,"system":114},[],[],[],[],{"commands":116,"expected_files":117},[],[94],{"asset_kind":32,"target_tools":119,"install_mode":37,"entrypoint":94,"risk_profile":120,"dependencies":122,"content_hash":105,"verification":127},[34,35,107],{"executes_code":39,"modifies_global_config":39,"requires_secrets":121,"uses_absolute_paths":30,"network_access":30},[],{"npm":123,"pip":124,"brew":125,"system":126},[],[],[],[],{"commands":128,"expected_files":129},[],[94],{"target":35,"score":131,"status":37,"policy":37,"why":132,"asset_kind":32,"install_mode":37},17,[66,67,68,69,70,71,133,72,134],"risk_profile.executes_code is true","trust established",{"author_trust_level":136,"verified_publisher":30,"asset_signed_hash":105,"signature_status":77,"install_count":12,"report_count":12,"dangerous_capability_badges":137,"review_status":81,"signals":139},"established",[138,32,79,37],"executes_code",[140,83],"author has published assets",{"owner_uuid":96,"owner_name":97,"source_url":142,"content_hash":105,"visibility":19,"created_at":143,"updated_at":144},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fgemini-cli-google-ai-coding-agent-terminal-926633bc","2026-04-08 14:13:20","2026-05-13 16:02:44",138.96658540793328,[147,148,149,150],"shared-tag","topic-match","same-kind","same-target",[28,152],"cli-tools",{"id":154,"uuid":155,"slug":156,"title":157,"description":158,"author_id":159,"author_name":160,"author_avatar":98,"token_estimate":12,"time_saved":12,"model_used":13,"fork_count":12,"vote_count":12,"view_count":161,"parent_id":12,"parent_uuid":13,"lang_type":15,"steps":162,"files":88,"tags":163,"has_voted":30,"visibility":19,"share_token":13,"is_featured":12,"content_hash":165,"asset_kind":28,"target_tools":166,"install_mode":167,"entrypoint":168,"risk_profile":169,"dependencies":170,"verification":175,"agent_metadata":178,"agent_fit":189,"trust":198,"provenance":202,"created_at":204,"updated_at":205,"__relatedScore":206,"__relatedReasons":207,"__sharedTags":208},3604,"42bb7d1b-7879-54af-b319-83ecb7d9b53a","reasonix-deepseek-native-coding-agent-cli","Reasonix — DeepSeek-Native Coding Agent CLI","Reasonix is a DeepSeek-native coding agent CLI for the terminal; README reports a 99.82% cache hit in a real-day case study.","8a910e34-3180-11f1-9bc6-00163e2b0d79","Script Depot",21,[],[164],{"id":26,"name":27,"slug":28,"icon":29},"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",[34,35,107],"npx","npx reasonix code # paste a DeepSeek API key on first run; persists after",{"executes_code":30,"modifies_global_config":30,"requires_secrets":88,"uses_absolute_paths":30,"network_access":30},{"npm":171,"pip":172,"brew":173,"system":174},[],[],[],[],{"commands":176,"expected_files":177},[],[],{"asset_kind":28,"target_tools":179,"install_mode":167,"entrypoint":168,"risk_profile":180,"dependencies":181,"content_hash":165,"verification":186},[34,35,107],{"executes_code":30,"modifies_global_config":30,"requires_secrets":88,"uses_absolute_paths":30,"network_access":30},{"npm":182,"pip":183,"brew":184,"system":185},[],[],[],[],{"commands":187,"expected_files":188},[],[],{"target":35,"score":101,"status":190,"policy":191,"why":192,"asset_kind":28,"install_mode":167},"native","allow",[66,193,194,195,196,197,134],"asset_kind cli","install_mode npx","markdown-only","policy allow","safe markdown-only Codex install",{"author_trust_level":136,"verified_publisher":30,"asset_signed_hash":165,"signature_status":77,"install_count":12,"report_count":12,"dangerous_capability_badges":199,"review_status":81,"signals":200},[],[140,83,201],"no dangerous capability badges",{"owner_uuid":159,"owner_name":160,"source_url":203,"content_hash":165,"visibility":19,"created_at":204,"updated_at":205},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Freasonix-deepseek-native-coding-agent-cli","2026-05-13 20:46:05","2026-05-14 11:13:07",122.01363402123332,[147,148,150],[28,152],{"id":210,"uuid":211,"slug":212,"title":213,"description":214,"author_id":159,"author_name":160,"author_avatar":98,"token_estimate":12,"time_saved":12,"model_used":13,"fork_count":12,"vote_count":12,"view_count":215,"parent_id":12,"parent_uuid":13,"lang_type":15,"steps":216,"files":88,"tags":217,"has_voted":30,"visibility":19,"share_token":13,"is_featured":12,"content_hash":165,"asset_kind":219,"target_tools":220,"install_mode":221,"entrypoint":222,"risk_profile":223,"dependencies":224,"verification":229,"agent_metadata":232,"agent_fit":243,"trust":249,"provenance":252,"created_at":254,"updated_at":255,"__relatedScore":256,"__relatedReasons":257,"__sharedTags":258},3118,"0f4b8ec6-2063-4f50-a9e0-0158863e0943","kilo-code-ai-coding-assistant-cli","Kilo Code — AI Coding Assistant + CLI","An AI coding assistant for VS Code with an optional CLI. The repo documents an npm-installable CLI and mentions MCP server discovery as an extension path.",16,[],[218],{"id":26,"name":27,"slug":28,"icon":29},"cli_tool",[34,35,107],"single","README.md",{"executes_code":30,"modifies_global_config":30,"requires_secrets":88,"uses_absolute_paths":30,"network_access":30},{"npm":225,"pip":226,"brew":227,"system":228},[],[],[],[],{"commands":230,"expected_files":231},[],[],{"asset_kind":219,"target_tools":233,"install_mode":221,"entrypoint":222,"risk_profile":234,"dependencies":235,"content_hash":165,"verification":240},[34,35,107],{"executes_code":30,"modifies_global_config":30,"requires_secrets":88,"uses_absolute_paths":30,"network_access":30},{"npm":236,"pip":237,"brew":238,"system":239},[],[],[],[],{"commands":241,"expected_files":242},[],[],{"target":35,"score":244,"status":37,"policy":37,"why":245,"asset_kind":219,"install_mode":221},29,[66,246,247,195,69,248,134],"asset_kind cli_tool","install_mode single","asset_kind cli_tool is not activated directly for Codex",{"author_trust_level":136,"verified_publisher":30,"asset_signed_hash":165,"signature_status":77,"install_count":12,"report_count":12,"dangerous_capability_badges":250,"review_status":81,"signals":251},[219],[140,83],{"owner_uuid":159,"owner_name":160,"source_url":253,"content_hash":165,"visibility":19,"created_at":254,"updated_at":255},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fkilo-code-ai-coding-assistant-cli","2026-05-12 04:00:52","2026-05-14 10:29:56",110.84567338206742,[147,148,150],[28,152],{"id":260,"uuid":261,"slug":262,"title":263,"description":264,"author_id":265,"author_name":266,"author_avatar":98,"token_estimate":12,"time_saved":12,"model_used":13,"fork_count":12,"vote_count":12,"view_count":267,"parent_id":12,"parent_uuid":13,"lang_type":15,"steps":268,"files":88,"tags":269,"has_voted":30,"visibility":19,"share_token":13,"is_featured":12,"content_hash":165,"asset_kind":28,"target_tools":271,"install_mode":272,"entrypoint":273,"risk_profile":274,"dependencies":275,"verification":280,"agent_metadata":283,"agent_fit":294,"trust":297,"provenance":300,"created_at":302,"updated_at":303,"__relatedScore":304,"__relatedReasons":305,"__sharedTags":306},3587,"ec5c276d-1845-5cc0-8729-0fd333a30a62","hyperspace-agi-p2p-agent-network-cli","Hyperspace AGI — P2P Agent Network CLI","hyperspaceai\u002Fagi is the Hyperspace network repo and CLI entrypoint. README shows Pods, distributed training, and a one-line installer.","8a910fec-3180-11f1-9bc6-00163e2b0d79","Agent Toolkit",15,[],[270],{"id":26,"name":27,"slug":28,"icon":29},[34,35,107],"curl","curl -fsSL https:\u002F\u002Fagents.hyper.space\u002Fapi\u002Finstall | bash",{"executes_code":30,"modifies_global_config":30,"requires_secrets":88,"uses_absolute_paths":30,"network_access":30},{"npm":276,"pip":277,"brew":278,"system":279},[],[],[],[],{"commands":281,"expected_files":282},[],[],{"asset_kind":28,"target_tools":284,"install_mode":272,"entrypoint":273,"risk_profile":285,"dependencies":286,"content_hash":165,"verification":291},[34,35,107],{"executes_code":30,"modifies_global_config":30,"requires_secrets":88,"uses_absolute_paths":30,"network_access":30},{"npm":287,"pip":288,"brew":289,"system":290},[],[],[],[],{"commands":292,"expected_files":293},[],[],{"target":35,"score":101,"status":190,"policy":191,"why":295,"asset_kind":28,"install_mode":272},[66,193,296,195,196,197,134],"install_mode curl",{"author_trust_level":136,"verified_publisher":30,"asset_signed_hash":165,"signature_status":77,"install_count":12,"report_count":12,"dangerous_capability_badges":298,"review_status":81,"signals":299},[],[140,83,201],{"owner_uuid":265,"owner_name":266,"source_url":301,"content_hash":165,"visibility":19,"created_at":302,"updated_at":303},"https:\u002F\u002Ftokrepo.com\u002Fen\u002Fworkflows\u002Fhyperspace-agi-p2p-agent-network-cli","2026-05-13 16:22:02","2026-05-14 11:33:34",104.80617997398389,[147,148,150],[28,152]]