Loading...
Loading...
Inspect and edit the workspace's git-backed context repository (the GTM knowledge base of markdown/MDX files) and its runtime sandbox using the Cargo CLI. Use when the user wants to browse/read/write/edit context files, run a command in the sandbox, or inspect the context knowledge graph.
npx skill4agent add getcargohq/cargo-skills cargo-contextcargo-ai contextwriteeditexecuteThe 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
../cargo/references/prerequisites.md--oauth--tokencargo-ai whoamiruntime writeruntime editworkspace.namecargo-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# Runtime sandbox (checked-out copy of the context repo)
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 getwriteeditexecuteexecuteexecute.files/content filecargo-content.files/executereadbrowsecargo-ai context runtime execute --command ls --args '["-1",".files"]'.files/cargo-ai content file …writeeditcargo-ai whoami # → workspace.uuid, workspace.nameworkspace.nameworkspace.nameexample.comcargo-ai login --oauth --workspace-uuid <uuid>--token <workspace-scoped-token>references/examples/lifecycle.md# List entries at the root of the runtime sandbox
cargo-ai context runtime browse
# List entries under a subpath (e.g. a domain folder like persona/ or play/)
cargo-ai context runtime browse --path persona
# Read a full file
cargo-ai context runtime read --path persona/vp-sales-mid-market.md
# Read only a line range (1-indexed, inclusive on both ends)
cargo-ai context runtime read --path play/inbound-trial-to-paid.md --start-line 1 --end-line 40write.md.mdxtitledescriptiontitlewriterepositoryNotFoundsyncConflictsyncFailedfailedToWritedeniedPath.files/references/response-shapes.mdcargo-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
- Title: VP of Sales
- Seniority: Executive
- Function: Revenue
- Reports to: CRO or CEO
## KPIs
- New ARR, win rate, pipeline coverage, rep ramp time
## Pains
- Pipeline gaps, slow ramp, low rep activity, forecasting drift
## Motivations
- Hit the number, build a repeatable motion, get visibility
## Day-to-day
Forecast calls, deal reviews, pipeline reviews, 1:1s with frontline managers.
## Preferred channels
- medium/linkedin-outbound
- medium/exec-warm-intro
## Common objections
- objection/we-already-have-an-ai-sdr
## How we land
Lead with pipeline-coverage math, not features.
EOF
)" \
--commit-message "Add VP of Sales mid-market persona"edit--old-string--new-stringedittitledescriptioneditstringNotFoundstringNotUnique--old-stringfileNotFoundnoOpsyncConflictsyncFailedfailedToEditdeniedPath# Replace 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"
# Delete a line (pass empty --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 ""writeeditexecute# Find every file that cross-references a specific slug
cargo-ai context runtime execute \
--command grep \
--args '["-r","-l","persona/vp-sales-mid-market","."]'
# Count entries per domain
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)
cargo-ai context runtime execute --command pwd--argsgetcargohq/cargo-workspacesREADME.md_template.mdreferences/conventions.md| 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 |
kebab-case.mdvp-sales-mid-market.md.md.mdxtitledescriptiontitlesummarydescriptionsummary:domain/slug.mdpersona/vp-sales-mid-marketdomain/slug_template.mdcargo-ai context runtime read --path persona/_template.md_template.*.md.mdx.yaml.yml.git/references:---
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
---[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.ymlruntime browsereferences:references/conventions.mdcargo-ai context runtime read --path persona/_template.mdwrite<domain>/<slug>.mdtitledescriptiondomain/slugcargo-ai context graph getreferences/conventions.mdreferences/examples/authoring.mdreferences/examples/lifecycle.mdglobal/persona/client/proof/objection/signal/references/examples/bootstrap-from-domain.mdreferences/conventions.mdcontext graph getcargo-ai context graph getdomain/slugjqreferences/examples/graph-queries.md--helpcargo-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