# opencode-compact-at-token-limit

> OpenCode plugin that forces a session compaction when the context reaches a token limit (default 200000, configurable). Nothing else.

Latest version **0.1.1** (published 2026-11-19) · MIT license · 0 weekly downloads

_The full health report (score, vulnerabilities, README, dependency tree, version history) is being computed; this document will grow once it lands._

## Install

```sh
npm install opencode-compact-at-token-limit
pnpm add opencode-compact-at-token-limit
yarn add opencode-compact-at-token-limit
bun add opencode-compact-at-token-limit
```

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2026-11-19 |
| First published | 2026-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=20 |
| Dependencies | 0 |
| Unpacked size | 18.4 KB |
| Maintainers | sblattj |
| Keywords | opencode, opencode-plugin, compaction, context, tokens |

## Links

- npm: https://www.npmjs.com/package/opencode-compact-at-token-limit
- Repository: https://github.com/sblattj/opencode-compact-at-token-limit
- Homepage: https://github.com/sblattj/opencode-compact-at-token-limit#readme
- npm.io page: https://npm.io/package/opencode-compact-at-token-limit

---
_Source: https://npm.io/package/opencode-compact-at-token-limit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
