slm-optimize-advisor

An adviser for reducing repeated or oversized information in an AI agent's context window. A context window is the amount of text the agent can consider at once.

In plain words
What is it for?
Use it when the context is filling up or the same files and searches are being read repeatedly.
Why use it?
It helps prevent repeated file reads and large command outputs from consuming the available context. Its advice is optional and does not block the agent if it cannot help.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/qualixar/superlocalmemory/slm-optimize-advisor
Clone the repo
git clone --depth 1 https://github.com/qualixar/superlocalmemory
Per session 75 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 770 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00075 $0.00770
Opus 5 $0.00037 $0.00385
Sonnet 5 $0.00015 $0.00154
Haiku 4.5 $0.00007 $0.00077

Measured 2d ago against content hash b1f0238ed694, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

slm-optimize-advisor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

antigravity-plugin/agents/slm-optimize-advisor.md · 45 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 45 lines · 75 tokens per session scan A b1f0238ed694

Subscribe to this mod's changes

slm-optimize-advisor is an agent published in the GitHub repository qualixar/superlocalmemory (223 stars, last pushed 4d ago), licensed AGPL-3.0. It adds 75 tokens to every session and 770 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

memory-curator

Background monitoring agent that identifies memorable events during a session and suggests storing them with user confirmation. Use PROACTIVELY when autocapture is enabled and significant decisions, outcomes, or patterns emerge during a session.

major7apps/pensyve · 45 tokens

agent-design-patterns

LLM 에이전트 설계 패턴 레퍼런스. Anthropic "Building Effective Agents" 5가지 패턴 + 실전 적용 기준. 워크플로우 vs 에이전트 구분, 패턴별 트레이드오프, 프로덕션 배포 체크리스트. 2025 기준.

szara7678/OpenAkashic · 0 tokens

mcp-advanced-patterns

MCP(Model Context Protocol) 심화 패턴 레퍼런스. 2025 Anthropic 권고 사항 기준. HTTP Streamable Transport, 도구 설계 원칙, 컨텍스트 효율화, 엔터프라이즈 인증, 보안 고려사항. 실제 Claude Code + OpenAkashic MCP 운영 경험 기반.

szara7678/OpenAkashic · 0 tokens

Knowledge Distillation Guide

좋은 capsule·claim을 어떻게 쓰는지, 무엇을 증류할 가치가 있는지 설명하는 가이드. 이 문서를 따르면 Core API에서 SLM 에이전트가 실제로 활용 가능한 지식이 만들어진다. 설계 의도상 capsule은 대표 답변 레이어, claim은 그보다 낮은 신뢰도의 검토 대상 레이어다.

szara7678/OpenAkashic · 0 tokens

OpenAkashic Agent Contribution Guide

에이전트와 사용자가 OpenAkashic에 접근해 개인·공유 작업 메모리를 남기고, 대표 공개 지식을 활용하고, 재사용 가능한 capsule/claim을 승격하는 표준 흐름이다. MCP를 쓰는 에이전트도, skills 문서와 API 토큰만 쓰는 에이전트도 같은 정책을 따른다.

szara7678/OpenAkashic · 0 tokens

Codex AGENTS Template

Copy this text into /.codex/AGENTS.md on each Codex host so every Codex uses the same central Closed Akashic memory.

szara7678/OpenAkashic · 0 tokens