OkayStudy
EN English 한국어 日本語 中文 हिन्दी বাংলা اردو Español Português Français Deutsch Русский العربية Bahasa Indonesia Tiếng Việt ไทย Türkçe

How to enable notifications

Notifications are unavailable in this browser or on this address. Try a supported browser on the secure SONUB site.

If notifications are blocked, allow them in your browser settings.

  1. Open the site controls beside the address bar, or your browser’s site settings. Set Notifications for this site to Allow.
  2. In your device settings, allow notifications for your browser and check Do Not Disturb or Focus.
  3. Return to SONUB, reload the page, and use the bell to enable notifications.

On iPhone or iPad, add SONUB to your Home Screen, open it there, then allow notifications.

Tools

Tool Master

, , , , and agy all run the same agent loop and share the same habits — AGENTS.md, slash commands, plan mode, approvals and . Learn the common parts once and you can use any of them.

A student holds one glowing skill cartridge whose cables plug into six different terminal robots, and all six light up the same way
Context and usage

A smaller context makes your usage last longer

Every request sends the whole conversation to the model again, so the bigger the , the faster your plan limit runs out. This tab shows how to read your usage, when the limit comes back, what fills the context, and how to compact at about 400k instead of 1M. Commands and settings were checked in the official docs on 2026-10-26.

Step 1

Check your current usage and when it resets

A subscription does not count messages one by one — it gives a usage allowance that refills over time windows. Look at the numbers before a long task, not after you hit the limit.

  • Claude Code

    Check with/usage/context

    /usage shows your plan usage bars and what used them (skills, , servers) over the last day or week; /context shows how full the context is right now.

    Refills every 5 hours weekly

    A rolling 5-hour window and a weekly window. When you hit a limit, the message shows the reset time, for example “resets 3:45pm”.

    Source (new window)
  • Codex CLI

    Check with/status/usage weekly

    /status shows the model, this session's token usage and your remaining limits; /usage daily or /usage weekly shows token activity. The usage dashboard (chatgpt.com/codex/settings/usage) shows the reset times.

    Refills every 5 hours weekly

    Plus and Business have a 5-hour window (Pro has none at the moment), and weekly limits may also apply.

    Source (new window)
  • OpenCode

    Check withopencode stats --days 7 --models

    opencode stats shows tokens and cost by day and by model.

    Refills every 5 hours weekly monthly

    OpenCode Go splits the monthly limit: up to 20% in 5 hours, 50% in a week and 100% in a month.

    Source (new window)
  • Grok Build

    Check with/usage/context

    /usage shows your credit usage and /context shows how much of the context is used.

    Refills not in the official docs

    The official docs do not say when the limit resets.

    Source (new window)
  • Kimi Code

    Check with/usage

    /usage shows token usage, how full the context is and your quota.

    Refills every 5 hours weekly monthly

    The usage API reports a 5-hour, a 7-day and a monthly window, each with its reset time.

    Source (new window)
  • Antigravity CLI

    Check with/usage/context

    /usage (or /quota) shows the requests and tokens left for each model; /context shows what fills the context.

    Refills every 5 hours weekly

    Google AI Pro refills every five hours until the weekly limit; without Pro or Ultra the quota refills weekly.

    Source (new window)

Free ways to keep going

Before you pay for extra usage, use what is already free.

  • Codex — open /usage and redeem an earned reset if one is available. It resets your rate limit without buying credits.

    /usage
  • Claude Code — when a limit stops a task, keep the session open. It waits and continues the task by itself after the reset (on by default; choose with /rate-limit-options or the autoContinueAtUsageLimit setting).

    /rate-limit-options · autoContinueAtUsageLimit
Step 2

Base context and the context that grows as you chat

The context has two parts. The base context is loaded before you type anything and goes with every request. The conversation sits on top of it and grows with every request, every file read and every command output.

  1. New call and result Instructions, tools and AGENTS.md Round 1
  2. New call and result Earlier calls and results Instructions, tools and AGENTS.md Round 2
  3. New call and result Earlier calls and results Earlier calls and results Instructions, tools and AGENTS.md Round 3
  4. Summary Instructions, tools and AGENTS.md After compaction
  • Instructions, tools and AGENTS.md
  • Earlier calls and results
  • New call and result
  • Summary
The shape only — the base stays the same and the conversation piles up on top. Each request sends the whole pile.

Base context — there before you ask

  • System prompt
  • Built-in tools
  • MCP tools
  • Skill descriptions
  • CLAUDE.md · AGENTS.md · memory

Keep it at 6% or less (SONUB rule). Open a new conversation and look at /context (, agy) or /status () before asking anything.

Conversation — grows with every request

  • Your requests and the answers
  • Files the agent read
  • Command and test output

Each answer, each file the reads and each command output is added. Nothing leaves until the conversation is compacted or cleared.

Base context over 6%? Turn off MCP servers you do not use, remove unused skills and plugins, and keep only the rules every request needs in CLAUDE.md and AGENTS.md.

Step 3

Auto compact and manual compact

replaces the older conversation with a summary so the session can go on. Details are lost, and the summary request itself reads the whole conversation.

  • Automatic

    The tool compacts by itself when the context reaches a threshold. You choose that threshold with the settings in step 4.

  • By hand

    Compact at a good break point and say what to keep, for example: /compact Focus on the failing test and the files we changed.

  • Start fresh

    When the next task is unrelated, open a new conversation instead (, /new). It costs nothing and drops everything old.

Tool Compact by hand Start fresh Automatic — setting By default
Claude Code /compact /clear autoCompactEnabled · autoCompactWindow On by default. With a 1M model it compacts at about 967K unless you set a window.
Codex CLI /compact /new model_auto_compact_token_limit Compacts at model_auto_compact_token_limit; when it is not set, at the model default.
OpenCode opencode api post /api/session/<id>/compact — compaction.auto · compaction.buffer On by default. Keeps 15% of the limit (at least 16k) free and the last ~15,000 tokens beside the summary.
Grok Build /compact — auto_compact_threshold_percent Compacts at 85% of the context window by default.
Kimi Code /compact — loop_control.reserved_context_size Compacts when the free space drops below loop_control.reserved_context_size.
Antigravity CLI not in the docs — not in the docs Compacts older turns into checkpoint summaries by itself; the docs show no command or setting for it.
Step 4

Use about 400k instead of 1M

Today's models can hold 1M tokens, but you do not have to fill them. If the tool compacts at about 400k, every request carries less and the same plan lasts longer.

A 1M window (Claude Code)
  1. Base context ≤ 6%
  2. SONUB: compact at 444k
  3. Default: about 967K
  4. 1M

Why it saves usage

Both official docs tie usage to context size. Claude Code: token costs scale with context size, and the full conversation is sent with every request. Codex: longer sessions that hold more context use significantly more per message. A request near 900K carries about twice as much as one near 450K. With a subscription, people say this lets you use the AI about twice as much — that is a common report, not an official number.

Claude Code

~/.claude/settings.json
{
  "autoCompactWindow": 444000
}

Compacts when the context reaches 444,000 tokens, for every model (allowed range 100k–1M). A window saved for one model with /autocompact comes first — check with /context in a new conversation.

Same thing
/autocompact 444k · claude --autocompact 444k
Check
/context

Codex CLI

~/.codex/config.toml
model_context_window = 500000
model_auto_compact_token_limit = 475000

model_context_window tells Codex the window is 500,000 tokens, and model_auto_compact_token_limit compacts at 475,000 (95% of it). Check with /status in a new conversation.

Check
/status

Other tools

  • OpenCode

    compaction.buffer is the free space kept below the model limit — with a 1M model, 600000 starts compaction at about 400k.

    opencode.jsonc
    {
      "compaction": { "buffer": 600000 }
    }
  • Grok Build

    auto_compact_threshold_percent is the percent of the window that starts compaction — 40 is about 400k on a 1M window.

    ~/.grok/config.toml
    [session]
    auto_compact_threshold_percent = 40
  • Kimi Code

    The default window is 256K (KIMI_MODEL_MAX_CONTEXT_SIZE 262144), already smaller than 400k — nothing to change.

  • Antigravity CLI

    The docs show no setting for the window or the compaction point — it compacts by itself.

About 400k and 6% are SONUB rules, not official recommendations — the official docs only explain the settings.

Sources

Commands, settings and defaults were checked in these official docs on 2026-10-26.

Choose a pending booking to cancel. Each cancellation requires confirmation.

Your :

Close