cargo-context
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCargo CLI — Context
Cargo CLI — Context
The context is a git-backed repository of typed markdown/MDX files that captures a workspace's GTM knowledge (company narrative, ICPs, personas, plays, proof, objections, etc.) and is read/written by both humans and agents. The domain has two subdomains you'll use:
cargo-ai context- runtime — browse, read, write, edit, and execute against the workspace's runtime sandbox (a checked-out copy of the context repo). /
writeare pushed to the default branch;editruns are not pushed.execute - graph — build/load the knowledge graph derived from every markdown/MDX file in the context repo.
The canonical example of a context repository is. Read itsgetcargohq/cargo-workspacesto understand the domain layout and file conventions before writing new entries. For uploading runtime-independent files (CSVs, PDFs) used in batch runs, useREADME.md(cargo-workspace-management) instead. For RAG file attachments to agents, usecargo-ai workspaceManagement file upload(cargo-ai).cargo-ai content file upload
Seefor the full context repo structure and per-domain templates. Seereferences/conventions.mdfor the JSON shapes returned by eachreferences/response-shapes.mdcommand. Seecargo-ai contextfor common errors and how to fix them. Seereferences/troubleshooting.mdfor end-to-end add / edit / delete recipes. Seereferences/examples/authoring.mdfor the bootstrap + refresh-from-calls playbook. Seereferences/examples/lifecycle.mdfor inspecting the knowledge graph.references/examples/graph-queries.md
Context 是一个由git托管的仓库,存储类型化的markdown/MDX文件,用于记录工作区的GTM知识(公司叙事、理想客户画像ICPs、用户角色、策略方案、案例证明、异议处理等),支持人类和Agent共同读写。 包含两个你会用到的子模块:
cargo-ai context- runtime — 浏览、读取、写入、编辑工作区的运行时沙箱(即context仓库的检出副本),并在其中执行命令。/
write操作会推送到默认分支;edit执行的操作不会推送。execute - graph — 构建/加载从context仓库中所有markdown/MDX文件衍生而来的知识图谱。
context仓库的标准示例为。在编写新条目之前,请阅读其getcargohq/cargo-workspaces以了解领域布局和文件规范。 若要上传批量运行中使用的独立于运行时的文件(如CSV、PDF),请使用README.md(cargo-workspace-management)。 若要为Agent上传RAG附件文件,请使用cargo-ai workspaceManagement file upload(cargo-ai)。cargo-ai content file upload
完整的context仓库结构和各领域模板请查看。 每个references/conventions.md命令返回的JSON格式请查看cargo-ai context。 常见错误及修复方法请查看references/response-shapes.md。 端到端的添加/编辑/删除操作示例请查看references/troubleshooting.md。 初始化+从通话记录刷新的操作指南请查看references/examples/authoring.md。 知识图谱查询示例请查看references/examples/lifecycle.md。references/examples/graph-queries.md
Prerequisites
前置条件
See for install, login ( / ), JSON output conventions, and error shapes. Verify the session with before running any of the commands below — and push commits to the workspace's context repo, so confirming first is non-negotiable.
../cargo/references/prerequisites.md--oauth--tokencargo-ai whoamiruntime writeruntime editworkspace.name安装、登录( / )、JSON输出规范及错误格式请查看 。在运行以下任何命令之前,请使用 验证会话 — 和 会向工作区的context仓库推送提交,因此必须先确认 。
--oauth--token../cargo/references/prerequisites.mdcargo-ai whoamiruntime writeruntime editworkspace.nameDiscover the context first
先了解当前context内容
Before editing anything, see what's in the context repo:
bash
cargo-ai context runtime browse # list entries at the runtime sandbox root
cargo-ai context graph get # full knowledge graph derived from the repo's md/mdx files在编辑任何内容之前,请先查看context仓库中的现有内容:
bash
cargo-ai context runtime browse # 列出运行时沙箱根目录下的条目
cargo-ai context graph get # 获取从仓库md/mdx文件衍生的完整知识图谱Quick reference
快速参考
bash
undefinedbash
undefinedRuntime sandbox (checked-out copy of the context repo)
运行时沙箱(context仓库的检出副本)
cargo-ai context runtime browse [--path <path>]
cargo-ai context runtime read --path <path> [--start-line <n>] [--end-line <n>]
cargo-ai context runtime write --path <path> --content <content> [--commit-message <message>]
cargo-ai context runtime edit --path <path> --old-string <old> --new-string <new> [--commit-message <message>]
cargo-ai context runtime execute --command <command> [--args <json>]
cargo-ai context runtime browse [--path <path>]
cargo-ai context runtime read --path <path> [--start-line <n>] [--end-line <n>]
cargo-ai context runtime write --path <path> --content <content> [--commit-message <message>]
cargo-ai context runtime edit --path <path> --old-string <old> --new-string <new> [--commit-message <message>]
cargo-ai context runtime execute --command <command> [--args <json>]
Knowledge graph
知识图谱
cargo-ai context graph get
undefinedcargo-ai context graph get
undefinedRuntime sandbox
运行时沙箱
The runtime sandbox is a checked-out, executable copy of the context repository. It's the surface you use to read and modify context files, and to run commands against them.
Two important behaviors to remember:
- and
writepush to the default branch of the context repo. They are not local-only.edit - does not push. Changes made to files by a shell command run via
executestay in the sandbox and are discarded — useexecutefor builds, tests, or inspection, not for committing edits.execute
Uploaded content files are available read-only under . The workspace's uploads (PDFs, CSVs, text — see ) appear in the sandbox under a directory, so a command run via (or /) can consume them — e.g. . It sits outside the committed context tree: the sandbox's auto-commit skips it, so nothing under is ever pushed to the context repo, and you can't add or change content files from here (use instead).
.files/content filecargo-content.files/executereadbrowsecargo-ai context runtime execute --command ls --args '["-1",".files"]'.files/cargo-ai content file …Because writes push immediately, confirm the target workspace before the first /:
writeeditbash
cargo-ai whoami # → workspace.uuid, workspace.nameRead the workspace name back to the user. If the session is for a specific client, make sure matches before authoring anything — there is no dry-run mode. If is generic or ambiguous (e.g. "Main", "Test", a person's name, an internal codename), don't guess — ask the user for the company name and canonical domain () and confirm both before the first write. If you logged in without pinning a workspace, re-run (or for non-interactive use).
workspace.nameworkspace.nameexample.comcargo-ai login --oauth --workspace-uuid <uuid>--token <workspace-scoped-token>Edits derived from sales-call analysis should be applied one at a time with human review, not batched. Looping an agent over many calls tends to overweight the loudest signal and miss nuance — see for the call-refresh playbook.
references/examples/lifecycle.md运行时沙箱是context仓库的一个已检出、可执行的副本。你可以通过它读取和修改context文件,并在其中运行命令。
请记住两个重要行为:
- 和
write会推送到context仓库的默认分支,它们不是仅本地生效的操作。edit - 操作不会推送。通过
execute运行shell命令对文件做出的更改仅保留在沙箱中,最终会被丢弃 — 请将execute用于构建、测试或检查操作,而非提交编辑内容。execute
上传的内容文件在 目录下为只读状态。工作区的上传文件(PDF、CSV、文本 — 详见 )会出现在沙箱的 目录中,因此通过 (或/)运行的命令可以读取这些文件 — 例如 。该目录位于已提交的context树之外:沙箱的自动提交会跳过它,因此 下的任何内容都不会推送到context仓库,你也无法在此添加或修改内容文件(请改用 )。
.files/content filecargo-content.files/executereadbrowsecargo-ai context runtime execute --command ls --args '["-1",".files"]'.files/cargo-ai content file …由于写入操作会立即推送,在首次执行/之前请确认目标工作区:
writeeditbash
cargo-ai whoami # → workspace.uuid, workspace.name将工作区名称告知用户。如果会话针对特定客户,请确保 匹配后再编写任何内容 — 本工具没有试运行模式。如果 通用或模糊(例如"Main"、"Test"、人名、内部代号),请勿猜测 — 请询问用户公司名称和规范域名(如),确认两者匹配后再执行首次写入。如果登录时未绑定工作区,请重新运行 (非交互式使用请用 )。
workspace.nameworkspace.nameexample.comcargo-ai login --oauth --workspace-uuid <uuid>--token <workspace-scoped-token>从销售通话分析得出的编辑内容应分批提交并由人工逐一审核,而非批量处理。让Agent循环处理多个通话记录往往会过度放大最明显的信号,忽略细节 — 请查看 中的通话记录刷新指南。
references/examples/lifecycle.mdBrowse and read
浏览与读取
bash
undefinedbash
undefinedList entries at the root of the runtime sandbox
列出运行时沙箱根目录下的条目
cargo-ai context runtime browse
cargo-ai context runtime browse
List entries under a subpath (e.g. a domain folder like persona/ or play/)
列出子路径下的条目(例如persona/或play/等领域文件夹)
cargo-ai context runtime browse --path persona
cargo-ai context runtime browse --path persona
Read a full file
读取完整文件
cargo-ai context runtime read --path persona/vp-sales-mid-market.md
cargo-ai context runtime read --path persona/vp-sales-mid-market.md
Read only a line range (1-indexed, inclusive on both ends)
仅读取指定行范围(从1开始计数,包含起止行)
cargo-ai context runtime read --path play/inbound-trial-to-paid.md --start-line 1 --end-line 40
undefinedcargo-ai context runtime read --path play/inbound-trial-to-paid.md --start-line 1 --end-line 40
undefinedWrite a new file
写入新文件
writeBegin every / file with a YAML frontmatter block setting and . Frontmatter is not validated — a file with missing, empty, or malformed frontmatter is still written and committed; it just indexes poorly in the graph (a missing falls back to the filename, the node summary to the first paragraph). can still fail for other reasons — , , , , or (e.g. writing under ); see .
.md.mdxtitledescriptiontitlewriterepositoryNotFoundsyncConflictsyncFailedfailedToWritedeniedPath.files/references/response-shapes.mdbash
cargo-ai context runtime write \
--path persona/vp-sales-mid-market.md \
--content "$(cat <<'EOF'
---
title: VP of Sales, mid-market
description: Owns pipeline, quota, and rep productivity at a 200–2,000-person company.
---write每个 / 文件开头都应包含一个YAML前置块,设置和。前置块不做验证 — 缺少、为空或格式错误的前置块仍会被写入并提交,但会导致其在图谱中的索引效果不佳(缺少会回退使用文件名,节点摘要会回退使用第一段内容)。 仍可能因其他原因失败:、、、或(例如写入目录下);详情请查看。
.md.mdxtitledescriptiontitlewriterepositoryNotFoundsyncConflictsyncFailedfailedToWritedeniedPath.files/references/response-shapes.mdbash
cargo-ai context runtime write \
--path persona/vp-sales-mid-market.md \
--content "$(cat <<'EOF'
---
title: VP of Sales, mid-market
description: Owns pipeline, quota, and rep productivity at a 200–2,000-person company.
---Role
Role
- Title: VP of Sales
- Seniority: Executive
- Function: Revenue
- Reports to: CRO or CEO
- Title: VP of Sales
- Seniority: Executive
- Function: Revenue
- Reports to: CRO or CEO
KPIs
KPIs
- New ARR, win rate, pipeline coverage, rep ramp time
- New ARR, win rate, pipeline coverage, rep ramp time
Pains
Pains
- Pipeline gaps, slow ramp, low rep activity, forecasting drift
- Pipeline gaps, slow ramp, low rep activity, forecasting drift
Motivations
Motivations
- Hit the number, build a repeatable motion, get visibility
- Hit the number, build a repeatable motion, get visibility
Day-to-day
Day-to-day
Forecast calls, deal reviews, pipeline reviews, 1:1s with frontline managers.
Forecast calls, deal reviews, pipeline reviews, 1:1s with frontline managers.
Preferred channels
Preferred channels
- medium/linkedin-outbound
- medium/exec-warm-intro
- medium/linkedin-outbound
- medium/exec-warm-intro
Common objections
Common objections
- objection/we-already-have-an-ai-sdr
- objection/we-already-have-an-ai-sdr
How we land
How we land
Lead with pipeline-coverage math, not features.
EOF
)"
--commit-message "Add VP of Sales mid-market persona"
--commit-message "Add VP of Sales mid-market persona"
undefinedLead with pipeline-coverage math, not features.
EOF
)"
--commit-message "Add VP of Sales mid-market persona"
--commit-message "Add VP of Sales mid-market persona"
undefinedEdit an existing file
编辑现有文件
edit--old-string--new-stringedittitledescriptioneditstringNotFoundstringNotUnique--old-stringfileNotFoundnoOpsyncConflictsyncFailedfailedToEditdeniedPathbash
undefinededit--old-string--new-stringedittitledescriptioneditstringNotFoundstringNotUnique--old-stringfileNotFoundnoOpsyncConflictsyncFailedfailedToEditdeniedPathbash
undefinedReplace one specific sentence
替换特定句子
cargo-ai context runtime edit
--path global/positioning.md
--old-string "We help RevOps automate workflows."
--new-string "We help RevOps run AI-native GTM motions."
--commit-message "Refresh positioning one-liner"
--path global/positioning.md
--old-string "We help RevOps automate workflows."
--new-string "We help RevOps run AI-native GTM motions."
--commit-message "Refresh positioning one-liner"
cargo-ai context runtime edit
--path global/positioning.md
--old-string "We help RevOps automate workflows."
--new-string "We help RevOps run AI-native GTM motions."
--commit-message "Refresh positioning one-liner"
--path global/positioning.md
--old-string "We help RevOps automate workflows."
--new-string "We help RevOps run AI-native GTM motions."
--commit-message "Refresh positioning one-liner"
Delete a line (pass empty --new-string)
删除一行(传入空的--new-string)
cargo-ai context runtime edit
--path persona/vp-sales-mid-market.md
--old-string "\n- Outdated stat: 4.2x pipeline\n"
--new-string ""
--path persona/vp-sales-mid-market.md
--old-string "\n- Outdated stat: 4.2x pipeline\n"
--new-string ""
For larger restructures, prefer `write` (full-file overwrite) over many sequential `edit` calls.cargo-ai context runtime edit
--path persona/vp-sales-mid-market.md
--old-string "\n- Outdated stat: 4.2x pipeline\n"
--new-string ""
--path persona/vp-sales-mid-market.md
--old-string "\n- Outdated stat: 4.2x pipeline\n"
--new-string ""
对于较大规模的重构,建议使用`write`(全文件覆盖)而非多次连续的`edit`调用。Execute a command in the sandbox
在沙箱中执行命令
executebash
undefinedexecutebash
undefinedFind every file that cross-references a specific slug
查找所有引用特定slug的文件
cargo-ai context runtime execute
--command grep
--args '["-r","-l","persona/vp-sales-mid-market","."]'
--command grep
--args '["-r","-l","persona/vp-sales-mid-market","."]'
cargo-ai context runtime execute
--command grep
--args '["-r","-l","persona/vp-sales-mid-market","."]'
--command grep
--args '["-r","-l","persona/vp-sales-mid-market","."]'
Count entries per domain
统计各领域的条目数量
cargo-ai context runtime execute --command ls --args '["-1","persona"]'
cargo-ai context runtime execute --command ls --args '["-1","persona"]'
Run a one-shot script (no quotes/escaping needed inside --command beyond JSON for args)
运行单次脚本(--command内无需额外转义,args遵循JSON格式即可)
cargo-ai context runtime execute --command pwd
`--args` is a JSON array of string arguments. Omit it for a no-arg command.cargo-ai context runtime execute --command pwd
`--args`是字符串参数的JSON数组。无参数命令可省略该选项。Context repository structure and conventions
Context仓库结构与规范
The Cargo context repo is a typed knowledge base. The canonical example — and the source of the conventions below — is ; read its and files in each domain before writing new entries. For the full domain reference, see .
getcargohq/cargo-workspacesREADME.md_template.mdreferences/conventions.mdCargo context仓库是一个类型化知识库。以下规范的标准示例为 ;在编写新条目之前,请阅读其和各领域下的文件。完整的领域参考请查看。
getcargohq/cargo-workspacesREADME.md_template.mdreferences/conventions.mdDomains
领域分类
| Domain | Purpose |
|---|---|
| Company-level context: mission, voice, positioning, narrative, pricing |
| Ideal Customer Profile segments |
| Buyer personas (roles inside an ICP) |
| Jobs-to-be-done framings |
| Competitors, substitutes, status quo |
| Customer profiles, case studies, reference accounts |
| Market insights and observations |
| Channel playbooks (email, LinkedIn, cold call, etc.) |
| Objections + responses + proof |
| GTM plays (signal → audience → channel → sequence → outcome) |
| Atomic proof points (metrics, quotes, case data) |
| Buying signals and intent triggers |
| 领域 | 用途 |
|---|---|
| 公司级上下文:使命、品牌调性、定位、叙事、定价 |
| 理想客户画像细分 |
| 购买者角色(ICP内的具体职位) |
| 待完成工作框架 |
| 竞争对手、替代方案、现状 |
| 客户档案、案例研究、参考客户 |
| 市场洞察与观察 |
| 渠道操作手册(邮件、LinkedIn、冷呼叫等) |
| 异议处理+回复+案例证明 |
| GTM策略方案(信号→受众→渠道→流程→结果) |
| 原子化证明点(指标、引用、案例数据) |
| 购买信号与意向触发因素 |
File conventions
文件规范
- Filename: (e.g.
kebab-case.md).vp-sales-mid-market.md - Frontmatter: start every /
.mdfile with YAML frontmatter setting.mdxandtitle. This is a strong convention, not enforced — a write with missing, empty, or malformed frontmatter is still created and committed; it just indexes poorly. The graph readsdescription(fallback: filename) andtitle(fallback: the file's first paragraph); it does not readsummary, so add adescriptionif you want to control the node summary. See Source references and graph edges.summary: - Cross-references: use the form, no
domain/slugextension (e.g..md). To register as a graph edge a reference must use one of the three link forms below — a barepersona/vp-sales-mid-market(or file path) in plain prose creates no edge.domain/slug - Templates: each domain ships an . Read it (
_template.md) before authoring a new entry.cargo-ai context runtime read --path persona/_template.mdfiles are excluded from the graph — never reference them._template.*
- 文件名: 使用格式(例如
kebab-case.md)。vp-sales-mid-market.md - 前置块: 每个/
.md文件开头都应包含YAML前置块,设置.mdx和title。这是一个强规范而非强制要求 — 缺少、为空或格式错误的前置块仍会被创建并提交,但会导致索引效果不佳。图谱会读取description(回退为文件名)和title(回退为文件第一段);不会读取summary,因此若要控制节点摘要,请添加description字段。详见源引用与图谱边。summary: - 交叉引用: 使用格式,无需
domain/slug扩展名(例如.md)。若要将注册为图谱边,引用必须使用以下三种链接形式之一 — 纯文本中的裸persona/vp-sales-mid-market(或文件路径)不会创建边。domain/slug - 模板: 每个领域都提供文件。在编写新条目之前,请先读取该文件(
_template.md)。cargo-ai context runtime read --path persona/_template.md文件会被排除在图谱之外 — 请勿引用它们。_template.*
Source references and graph edges
源引用与图谱边
The knowledge graph is built from every , , , and file in the repo (any folder; only is excluded). Each file is a node, but edges are created only from three forms — anything else is invisible to the graph:
.md.mdx.yaml.yml.git/- Frontmatter list (preferred for source citations — keeps prose clean):
references:yaml--- title: AgoraPulse expansion thesis description: Why AgoraPulse is ready for a multi-thread expansion play. references: - outputs/sales-notes/2026-06-05-agorapulse-build-session-1-outcomes.md --- - A Markdown link in the body — standard followed immediately by
[label]syntax, where the target is the file path, e.g. an anchor linking to(path).outputs/sales-notes/2026-06-05-agorapulse-build-session-1-outcomes.md - Wikilinks in the body (extension optional): .
[[outputs/sales-notes/2026-06-05-agorapulse-build-session-1-outcomes]]
Key constraints:
- Never cite a source as a bare path in prose (e.g. a line that just mentions
Source:as text) — it is not parsed and creates no edge.outputs/sales-notes/foo.md - Prefer root-relative paths (resolved from the repo root first, then relative to the citing file) so links work regardless of where the document lives.
- Extensions are optional — the resolver auto-tries ,
.md,.mdx,.yamlin that order. Including the extension is fine..yml - The target must exist or the edge is broken (a dead link in the graph UI). Verify with before citing.
runtime browse - For docs with a Source/Evidence section, cite the files in frontmatter ; use inline markdown links when the citation needs surrounding prose. Full rules:
references:.references/conventions.md
知识图谱由仓库中所有、、和文件构建(任何文件夹;仅会被排除)。每个文件都是一个节点,但仅三种形式会创建边 — 其他形式对图谱不可见:
.md.mdx.yaml.yml.git/- 前置块列表(推荐用于源引用 — 保持文本简洁):
references:yaml--- title: AgoraPulse expansion thesis description: Why AgoraPulse is ready for a multi-thread expansion play. references: - outputs/sales-notes/2026-06-05-agorapulse-build-session-1-outcomes.md --- - 正文中的Markdown链接 — 标准后紧跟
[label]语法,其中目标为文件路径,例如链接到(path)的锚点。outputs/sales-notes/2026-06-05-agorapulse-build-session-1-outcomes.md - 正文中的维基链接(扩展名可选):。
[[outputs/sales-notes/2026-06-05-agorapulse-build-session-1-outcomes]]
关键约束:
- 请勿在纯文本中以裸路径形式引用源(例如行仅提及
Source:文本) — 不会被解析,也不会创建边。outputs/sales-notes/foo.md - 优先使用根相对路径(先从仓库根目录解析,再相对于引用文件),这样无论文档位于何处,链接都能正常工作。
- 扩展名可选 — 解析器会自动按、
.md、.mdx、.yaml的顺序尝试。包含扩展名也可。.yml - 目标必须存在,否则边会失效(图谱UI中的死链)。引用前请用验证。
runtime browse - 对于包含Source/Evidence部分的文档,请在前块中引用文件;当引用需要上下文文本时,使用内联Markdown链接。完整规则请查看
references:。references/conventions.md
Workflow: add a new entry
工作流:添加新条目
- Confirm the target domain and copy its template:
bash
cargo-ai context runtime read --path persona/_template.md - a new file at
writewith<domain>/<slug>.md+titleand the body sections filled in.description - Add cross-refs () where useful — keep them bidirectional when it makes sense.
domain/slug - Rebuild the knowledge graph to verify the new entry and its links:
bash
cargo-ai context graph get
For full per-domain templates and worked examples, see and .
references/conventions.mdreferences/examples/authoring.md- 确认目标领域并复制其模板:
bash
cargo-ai context runtime read --path persona/_template.md - 使用在
write路径下创建新文件,填写<domain>/<slug>.md+title及正文部分。description - 在合适的位置添加交叉引用() — 合理情况下请保持双向引用。
domain/slug - 重建知识图谱以验证新条目及其链接:
bash
cargo-ai context graph get
完整的各领域模板和示例请查看和。
references/conventions.mdreferences/examples/authoring.mdWorkflow: bootstrap and refresh
工作流:初始化与刷新
To stand up a new workspace's context repo from scratch, or to refresh an existing one on a cadence, follow the two-phase lifecycle in :
references/examples/lifecycle.md- Bootstrap (one-time): seed ,
global/,persona/,client/,proof/,objection/from public sources, then open a fresh agent session against the seeded repo. For the prescriptive, automatable version (domain in → files out, idempotent, with credit budget), usesignal/.references/examples/bootstrap-from-domain.md - Refresh (every 2–4 weeks): pull the last ~3 months of sales-call transcripts → analyze one at a time, human-in-the-loop → apply a repetition threshold before promoting any claim to context → validate by generating sequence permutations → diff the graph before/after and retire stale entries.
The repetition threshold (how many calls a claim must appear in before it lands in context) is documented in .
references/conventions.md若要从零开始搭建新工作区的context仓库,或定期刷新现有仓库,请遵循中的两阶段生命周期:
references/examples/lifecycle.md- 初始化(一次性): 从公共来源导入、
global/、persona/、client/、proof/、objection/的内容,然后针对已导入的仓库启动新的Agent会话。如需可自动化的规范版本(输入领域→输出文件,幂等,包含信用预算),请使用signal/。references/examples/bootstrap-from-domain.md - 刷新(每2-4周一次): 拉取过去约3个月的销售通话记录→逐一分析,人工参与循环→在将任何结论加入context之前应用重复阈值→通过生成序列排列验证→对比刷新前后的图谱并淘汰过时条目。
重复阈值(结论需出现在多少个通话记录中才能加入context)请查看。
references/conventions.mdKnowledge graph
知识图谱
context graph get- Audit cross-references between domains (e.g. find personas that link to plays with no proof attached).
- Discover what already exists before writing a new entry (avoid duplicates).
- Power downstream agents that need the typed structure of the workspace's context.
bash
cargo-ai context graph getThe response includes the parsed frontmatter and outbound references for each node — pipe it through to slice it. See for ready-to-run queries.
domain/slugjqreferences/examples/graph-queries.mdcontext graph get- 审核各领域之间的交叉引用(例如查找链接到无证明方案的角色)。
- 在编写新条目之前发现现有内容(避免重复)。
- 为需要工作区上下文类型结构的下游Agent提供支持。
bash
cargo-ai context graph get响应包含每个节点的解析前置块和出站引用 — 可通过进行切片处理。现成的查询示例请查看。
domain/slugjqreferences/examples/graph-queries.mdHelp
帮助
Every command supports :
--helpbash
cargo-ai context --help
cargo-ai context runtime browse --help
cargo-ai context runtime read --help
cargo-ai context runtime write --help
cargo-ai context runtime edit --help
cargo-ai context runtime execute --help
cargo-ai context graph get --help每个命令都支持选项:
--helpbash
cargo-ai context --help
cargo-ai context runtime browse --help
cargo-ai context runtime read --help
cargo-ai context runtime write --help
cargo-ai context runtime edit --help
cargo-ai context runtime execute --help
cargo-ai context graph get --help