Sctx banner
synapctx synapctx

Sctx

AI community

Description

Token-optimizing command wrapper for AI coding agents

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

sctx

[Home](README.md)  /

 

**Token-optimizing command wrapper for AI coding agents.**

`sctx` runs the commands your agent already runs and returns the same information in a fraction of the tokens - exit code intact, errors intact, every omission marked.

For more details and guides, please visit [**synapctx.com/sctx**](https://synapctx.com/sctx/)

 

[![SynapCTX](https://img.shields.io/badge/SynapCTX-sctx-2f6feb)](https://synapctx.com/sctx/) [![CI](https://github.com/synapctx/sctx/actions/workflows/ci.yaml/badge.svg)](https://github.com/synapctx/sctx/actions/workflows/ci.yaml) [![Go Reference](https://pkg.go.dev/badge/github.com/synapctx/sctx.svg)](https://pkg.go.dev/github.com/synapctx/sctx) [![GitHub Tag](https://img.shields.io/github/v/tag/synapctx/sctx?label=Version)](https://github.com/synapctx/sctx/tags) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE.txt)

 

🔝 [back to top](#sctx)

 

Overview

An AI coding agent reads with its context window, and command output is the largest thing it reads that nobody chose. A test run that prints four hundred passing lines, a `git status` padded with hints, a recursive grep returning the same file forty times - all of it arrives in full, is paid for in full, and almost none of it is what the agent needed.

`sctx` sits in front of those commands. It parses the output it recognises and re-renders it around the part that carries the signal: the failures, the changed files, the matches grouped by location. Everything else is summarised behind an explicit marker, so the agent can always tell that something was left out.

 

**Measured across 6,361 real command runs: 61% of output tokens removed.**

Command Output tokens removed Runs measured
rg 91.4% 436
go test 58.2% 613
grep 52.6% 2,209
find 48.1% 141
git diff 26.0% 47
ls 23.3% 319
cat **0.5%