{"id":"a478e932-dd0f-48d0-a0ef-b3c1cb81b03b","shortId":"Dmvg8d","kind":"skill","title":"Preserve coding-agent context by sandboxing bulky tool output and retrieving only relevant session state with Context Mode","tagline":"Use Context Mode when a coding agent keeps burning context on large tool outputs or loses its place after compaction. It wraps tool-heavy workflows with sandboxed execution, indexed session history, and targeted retrieval so the agent can keep working without reloading raw data i","description":"# Preserve coding-agent context by sandboxing bulky tool output and retrieving only relevant session state with Context Mode\n\nUse Context Mode when a coding agent keeps burning context on large tool outputs or loses its place after compaction. It wraps tool-heavy workflows with sandboxed execution, indexed session history, and targeted retrieval so the agent can keep working without reloading raw data into the prompt.\n\n## Prerequisites\n\nSupported coding agent runtime with MCP or plugin support; Node.js; local SQLite storage\n\n## Installation\n\nUse the upstream install or setup path that matches your environment:\n- npm install -g context-mode\n- git clone https://github.com/mksglu/context-mode.git\n- npm run install:openclaw\n- npm run install:openclaw -- /path/to/openclaw-state\n\nRequirements and caveats from upstream:\n- **Prerequisites:** Claude Code v1.0.33+ (claude --version). If /plugin is not recognized, update first: brew upgrade claude-code or npm update -g @anthropic-ai/claude-code.\n- **Prerequisites:** Node.js >= 22.5 (or Bun), Gemini CLI installed.\n- **Prerequisites:** Node.js >= 22.5 (or Bun), VS Code with Copilot Chat v0.32+.\n\nBasic usage or getting-started notes:\n- Platforms are grouped by install complexity. Hook-capable platforms get automatic routing enforcement. Non-hook platforms need a one-time routing file copy.\n- <details open>\n- <summary><strong>Claude Code</strong> — plugin marketplace, fully automatic</summary>\n\n- Source: https://github.com/mksglu/context-mode\n- Extracted from upstream docs: https://raw.githubusercontent.com/mksglu/context-mode/HEAD/README.md\n\n## Documentation\n\n- https://context-mode.com\n\n## Source\n\n- [Agent Skill Exchange](https://agentskillexchange.com/skills/preserve-coding-agent-context-by-sandboxing-bulky-tool-output-and-retrieving-only-relevant-session-state-with-context-mode/)","tags":["preserve","coding","agent","context","sandboxing","bulky","tool","output","and","retrieving","only","relevant"],"capabilities":["skill","source-agentskillexchange","skill-preserve-coding-agent-context-by-sandboxing-bulky-tool-output-and-retrieving-only-relevant-session-state-with-context-mode","topic-agent-skills","topic-ai-agents","topic-ai-tools","topic-awesome-list","topic-claude-code","topic-codex","topic-cursor","topic-llm","topic-mcp","topic-npx-skills","topic-openclaw","topic-skills-catalog"],"categories":["skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/agentskillexchange/skills/preserve-coding-agent-context-by-sandboxing-bulky-tool-output-and-retrieving-only-relevant-session-state-with-context-mode","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add agentskillexchange/skills","source_repo":"https://github.com/agentskillexchange/skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,849 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:11:51.588Z","embedding":null,"createdAt":"2026-05-18T13:18:31.104Z","updatedAt":"2026-05-18T19:11:51.588Z","lastSeenAt":"2026-05-18T19:11:51.588Z","tsv":"'/claude-code':209 '/mksglu/context-mode':271 '/mksglu/context-mode.git':169 '/mksglu/context-mode/head/readme.md':278 '/path/to/openclaw-state':178 '/plugin':191 '/skills/preserve-coding-agent-context-by-sandboxing-bulky-tool-output-and-retrieving-only-relevant-session-state-with-context-mode/)':287 '22.5':212,220 'agent':4,26,57,69,91,122,136,282 'agentskillexchange.com':286 'agentskillexchange.com/skills/preserve-coding-agent-context-by-sandboxing-bulky-tool-output-and-retrieving-only-relevant-session-state-with-context-mode/)':285 'ai':208 'anthrop':207 'anthropic-ai':206 'automat':247,267 'basic':229 'brew':197 'bulki':8,73 'bun':214,222 'burn':28,93 'capabl':244 'caveat':181 'chat':227 'claud':185,188,200,262 'claude-cod':199 'cli':216 'clone':166 'code':3,25,68,90,135,186,201,224,263 'coding-ag':2,67 'compact':39,104 'complex':241 'context':5,18,21,29,70,83,86,94,163 'context-mod':162 'context-mode.com':280 'copi':261 'copilot':226 'data':64,129 'doc':275 'document':279 'enforc':249 'environ':158 'exchang':284 'execut':48,113 'extract':272 'file':260 'first':196 'fulli':266 'g':161,205 'gemini':215 'get':233,246 'getting-start':232 'git':165 'github.com':168,270 'github.com/mksglu/context-mode':269 'github.com/mksglu/context-mode.git':167 'group':238 'heavi':44,109 'histori':51,116 'hook':243,252 'hook-cap':242 'index':49,114 'instal':147,151,160,172,176,217,240 'keep':27,59,92,124 'larg':31,96 'local':144 'lose':35,100 'marketplac':265 'match':156 'mcp':139 'mode':19,22,84,87,164 'need':254 'node.js':143,211,219 'non':251 'non-hook':250 'note':235 'npm':159,170,174,203 'one':257 'one-tim':256 'openclaw':173,177 'output':10,33,75,98 'path':154 'place':37,102 'platform':236,245,253 'plugin':141,264 'prerequisit':133,184,210,218 'preserv':1,66 'prompt':132 'raw':63,128 'raw.githubusercontent.com':277 'raw.githubusercontent.com/mksglu/context-mode/head/readme.md':276 'recogn':194 'relev':14,79 'reload':62,127 'requir':179 'retriev':12,54,77,119 'rout':248,259 'run':171,175 'runtim':137 'sandbox':7,47,72,112 'session':15,50,80,115 'setup':153 'skill':283 'skill-preserve-coding-agent-context-by-sandboxing-bulky-tool-output-and-retrieving-only-relevant-session-state-with-context-mode' 'sourc':268,281 'source-agentskillexchange' 'sqlite':145 'start':234 'state':16,81 'storag':146 'support':134,142 'target':53,118 'time':258 'tool':9,32,43,74,97,108 'tool-heavi':42,107 'topic-agent-skills' 'topic-ai-agents' 'topic-ai-tools' 'topic-awesome-list' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-llm' 'topic-mcp' 'topic-npx-skills' 'topic-openclaw' 'topic-skills-catalog' 'updat':195,204 'upgrad':198 'upstream':150,183,274 'usag':230 'use':20,85,148 'v0.32':228 'v1.0.33':187 'version':189 'vs':223 'without':61,126 'work':60,125 'workflow':45,110 'wrap':41,106","prices":[{"id":"55d7cb8b-f118-4139-a986-a9646317f1c9","listingId":"a478e932-dd0f-48d0-a0ef-b3c1cb81b03b","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"agentskillexchange","category":"skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:18:31.104Z"}],"sources":[{"listingId":"a478e932-dd0f-48d0-a0ef-b3c1cb81b03b","source":"github","sourceId":"agentskillexchange/skills/preserve-coding-agent-context-by-sandboxing-bulky-tool-output-and-retrieving-only-relevant-session-state-with-context-mode","sourceUrl":"https://github.com/agentskillexchange/skills/tree/main/skills/preserve-coding-agent-context-by-sandboxing-bulky-tool-output-and-retrieving-only-relevant-session-state-with-context-mode","isPrimary":false,"firstSeenAt":"2026-05-18T13:18:31.104Z","lastSeenAt":"2026-05-18T19:11:51.588Z"}],"details":{"listingId":"a478e932-dd0f-48d0-a0ef-b3c1cb81b03b","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"agentskillexchange","slug":"preserve-coding-agent-context-by-sandboxing-bulky-tool-output-and-retrieving-only-relevant-session-state-with-context-mode","github":{"repo":"agentskillexchange/skills","stars":8,"topics":["agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex","cursor","llm","mcp","npx-skills","openclaw","skills-catalog"],"license":"mit","html_url":"https://github.com/agentskillexchange/skills","pushed_at":"2026-05-18T19:02:17Z","description":"The open catalog of AI agent skills — 2,000+ security-scanned skills for Claude Code, Cursor, Codex, and more.","skill_md_sha":"de80e892364f257579358ff5e02a80d026d38adc","skill_md_path":"skills/preserve-coding-agent-context-by-sandboxing-bulky-tool-output-and-retrieving-only-relevant-session-state-with-context-mode/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/agentskillexchange/skills/tree/main/skills/preserve-coding-agent-context-by-sandboxing-bulky-tool-output-and-retrieving-only-relevant-session-state-with-context-mode"},"layout":"multi","source":"github","category":"skills","frontmatter":{"name":"Preserve coding-agent context by sandboxing bulky tool output and retrieving only relevant session state with Context Mode","description":"Use Context Mode when a coding agent keeps burning context on large tool outputs or loses its place after compaction. It wraps tool-heavy workflows with sandboxed execution, indexed session history, and targeted retrieval so the agent can keep working without reloading raw data into the prompt."},"skills_sh_url":"https://skills.sh/agentskillexchange/skills/preserve-coding-agent-context-by-sandboxing-bulky-tool-output-and-retrieving-only-relevant-session-state-with-context-mode"},"updatedAt":"2026-05-18T19:11:51.588Z"}}