Versions in this module Expand all Collapse all v0 v0.5.1 May 12, 2026 v0.3.0 May 26, 2026 v0.2.0 May 16, 2026 v0.1.2 Jul 4, 2026 v0.1.1 Jun 25, 2026 Changes in this version + const LayerLLMLinguaProse + var ErrNoValidator = errors.New("filter: CompressWithRetry requires a non-nil Validator") + func DetectContentType(text string) string + type AdjustFunc func(mode Mode, intensity int) (Mode, int) type BudgetEnforcer + func (f *BudgetEnforcer) TruncateToBudget(input string, budget int) string + type CompressOnceFunc func(ctx context.Context, text string, mode Mode, intensity int) (string, *PipelineStats) + type ContextBudgetAllocator struct + func NewContextBudgetAllocator(totalBudget int) *ContextBudgetAllocator + func (cba *ContextBudgetAllocator) BudgetFor(contentType string) int + type FastOpsEntropyFilter struct + func NewFastOpsEntropyFilter(threshold float64) *FastOpsEntropyFilter + func (f *FastOpsEntropyFilter) Apply(input string, mode Mode) (string, int) + type LLMLinguaProseFilter struct + func NewLLMLinguaProseFilter() *LLMLinguaProseFilter + func NewLLMLinguaProseFilterWithConfig(keepRatio float64, minLength int) *LLMLinguaProseFilter + func (f *LLMLinguaProseFilter) Apply(input string, mode Mode) (string, int) + func (f *LLMLinguaProseFilter) IsApplicable(input string) bool + func (f *LLMLinguaProseFilter) IsEnabled() bool + func (f *LLMLinguaProseFilter) Name() string type LayersSection + LLMLinguaProse bool + type MemoryAwareCompressor struct + func NewMemoryAwareCompressor(preserveTerms []string, conventions []string) *MemoryAwareCompressor + func (mac *MemoryAwareCompressor) AdaptConventions(text string) string + func (mac *MemoryAwareCompressor) FilterLines(lines []string, budget int) []string + func (mac *MemoryAwareCompressor) ShouldPreserve(line string) bool type Mode + func DefaultAdjust(mode Mode, intensity int) (Mode, int) type PipelineConfigWithNestedLayers + EnableLLMLinguaProse bool + Encoding string + LLMLinguaProseKeepRatio float64 + LLMLinguaProseMinLength int + type RetryStats struct + Attempts int + EscalatedAtLeastOnce bool + FinalOutput string + FinalPipelineStats *PipelineStats + LastFailureReason string + func CompressWithBudgetRetry(ctx context.Context, text string, initialMode Mode, budget int, maxRetries int, ...) (string, RetryStats, error) + func CompressWithRetry(ctx context.Context, text string, mode Mode, intensity int, maxRetries int, ...) (string, RetryStats, error) + type TOMLFilter struct + func NewTOMLFilter(cfg *TOMLFilterConfig) *TOMLFilter + func (f *TOMLFilter) Apply(input string, _ Mode) (string, int) + func (f *TOMLFilter) Name() string + type TOMLFilterConfig struct + HeadLines int + KeepLines []string + MatchCommand string + MatchOutput string + MaxLines int + Name string + OnEmpty string + Replace []TOMLReplaceRule + StripANSI bool + StripLines []string + TailLines int + TruncateLines int + func LoadTOMLFilterDir(dir string) ([]*TOMLFilterConfig, error) + func (c *TOMLFilterConfig) Match(command string) bool + type TOMLFilterFile struct + Filters map[string]*TOMLFilterConfig + Path string + Schema int + func LoadTOMLFilterFile(path string) (*TOMLFilterFile, error) + type TOMLReplaceRule struct + Compiled *regexp.Regexp + Literal bool + Pattern string + Replacement string + type TruncateStats struct + DroppedLines int + HasSignatures bool + KeptLines int + OriginalLines int + Truncated bool + type Validator func(output string, stats *PipelineStats) (ok bool, reason string) + func MaxTokensValidator(max int) Validator + func MustContainsValidator(required ...string) Validator v0.1.0 May 12, 2026 Changes in this version + const AttentionSinkMinLines + const CacheBreakMarker + const CacheEvictionBatch + const ChunkSize + const DefaultBudget + const DefaultCacheSize + const DefaultCacheTTL + const EarlyExitAggressiveInterval + const EarlyExitCheckInterval + const EntropyMinLength + const H2OMinTokens + const HighCompressionRatio + const LargeContentThreshold + const LayerASTPreserve + const LayerAdaptiveLearning + const LayerAdvanced + const LayerAgentMemory + const LayerAttentionSink + const LayerAttribution + const LayerBudget + const LayerBudgetTotal + const LayerCompaction + const LayerContrastive + const LayerEdgeCase + const LayerEntropy + const LayerEvaluator + const LayerExtractivePrefilter + const LayerGateModeAll + const LayerGateModeStableOnly + const LayerGist + const LayerGoalDriven + const LayerGuardrailFallback + const LayerH2O + const LayerHierarchical + const LayerIdxASTPreserve + const LayerIdxAdvanced + const LayerIdxAgentMemory + const LayerIdxAttentionSink + const LayerIdxAttribution + const LayerIdxCompaction + const LayerIdxContrastive + const LayerIdxEdgeCase + const LayerIdxEntropy + const LayerIdxEvaluator + const LayerIdxGist + const LayerIdxGoalDriven + const LayerIdxH2O + const LayerIdxHierarchical + const LayerIdxLazyPruner + const LayerIdxMetaToken + const LayerIdxNgram + const LayerIdxPerplexity + const LayerIdxReasoning + const LayerIdxSemanticAnchor + const LayerIdxSemanticChunk + const LayerIdxSketchStore + const LayerLazyPruner + const LayerMetaToken + const LayerNgram + const LayerPerplexity + const LayerPolicyRouter + const LayerReasoning + const LayerSemanticAnchor + const LayerSemanticCache + const LayerSemanticChunk + const LayerSession + const LayerTOMLFilter + const MediumContentThreshold + const MetaTokenMinLength + const MinCompressionRatio + const MinContentLength + const MinTokenEstimate + const MinimalBudgetThreshold + const NumLayerIndices + const PerplexityMinLines + const SemanticChunkMinLength + const SmallContentThreshold + const StreamingThreshold + const TargetCompressionRatio + const TightBudgetThreshold + const TokensPerCharHeuristic + var AutoTierConfigs = map[AutoTier]AutoTierConfig + var BlockDelimiters = map[rune]rune + var CommentPatternsMap = map[Language]*regexp.Regexp + var ImportPatterns = []*regexp.Regexp + var SignaturePatterns = []*regexp.Regexp + func ApplyMode(input string, mode Mode, cm CompressionMode) (string, int) + func ApplyProfile(input string, mode Mode, profile Profile) (string, int) + func ApplyTier(input string, mode Mode, tier Tier) (string, int) + func AutoProcess(input string, mode Mode) (string, int) + func BytesToString(b []byte) string + func CacheBreakpointScore(content string) float64 + func CacheabilityScore(content string) int + func ClassifyContent(content string) (isStatic bool, confidence float64) + func CollectOutputs(results []ParallelProcessResult) []string + func CompileRegex(pattern string) *regexp.Regexp + func DetectLanguage(output string) string + func EstimateCacheHitRate(content string) float64 + func EstimateTierCost(tiers []AutoTier, inputTokens int) int + func EstimateTokens(text string) int + func ExecuteFiltersParallel(filters []filterLayer, input string, mode Mode) (string, int) + func ExecuteFiltersSequential(filters []filterLayer, input string, mode Mode) (string, int) + func FilterNoisyOutput(input string) string + func FilterProgressBars(input string) string + func FormatDelta(delta IncrementalDelta) string + func FormatTDDStats(stats TDDStats) string + func Ftoa(f float64, prec int) string + func GetBytes(capacity int) *[]byte + func GetProgressCallback() func(layerName string, inputTokens, outputTokens int, progressPercent float64) + func HammingDistance(a, b uint64) int + func HasANSI(input string) bool + func IsCode(output string) bool + func IsNearDuplicate(a, b string, threshold int) bool + func Itoa(n int) string + func JSONPathExtract(jsonStr, path string) string + func NewLRUCache(maxSize int, ttl time.Duration) *cache.LRUCache + func PreferLessMode(original, filtered string) string + func PruneMetadata(input string) string + func PutBuffer(buf *ZeroCopyBuffer) + func PutBytes(b *[]byte) + func QuickProcess(input string, mode Mode) (string, int) + func QuickProcessPreset(input string, mode Mode, preset PipelinePreset) (string, int) + func ReadContent(content string, opts ReadOptions) string + func SetProgressCallback(...) + func ShouldStream(input string) bool + func ShouldUseParallel(filters []filterLayer, inputSize int) bool + func SimHash(content string) uint64 + func SmartTruncate(content string, maxLines int, lang Language) string + func StringToBytes(s string) []byte + func StripANSI(input string) string + func StripLineNumbers(input string) string + func TotalSaved(results []ParallelProcessResult) int + func WenyanCompress(input string, mode WenyanMode) string + type ACONFilter struct + func NewACONFilter() *ACONFilter + func (f *ACONFilter) Apply(input string, mode Mode) (string, int) + func (f *ACONFilter) Name() string + type ANSICode struct + Code string + Position int + type ANSIFilter struct + func NewANSIFilter() *ANSIFilter + func (f *ANSIFilter) Apply(input string, mode Mode) (string, int) + func (f *ANSIFilter) Name() string + type ASTOptimizer struct + func NewASTOptimizer() *ASTOptimizer + type ASTPreserveFilter struct + func NewASTPreserveFilter() *ASTPreserveFilter + func (f *ASTPreserveFilter) Apply(input string, mode Mode) (string, int) + func (f *ASTPreserveFilter) Name() string + func (f *ASTPreserveFilter) SetQueryIntent(query string) + type AdaptiveBufferSizer struct + func NewAdaptiveBufferSizer(min, max int) *AdaptiveBufferSizer + func (abs *AdaptiveBufferSizer) Adjust(inputSize int) int + type AdaptiveLayerSelector struct + func NewAdaptiveLayerSelector() *AdaptiveLayerSelector + func (a *AdaptiveLayerSelector) AnalyzeContent(input string) ContentType + func (a *AdaptiveLayerSelector) OptimizePipeline(input string, mode Mode) *PipelineCoordinator + func (a *AdaptiveLayerSelector) RecommendedConfig(ct ContentType, mode Mode) PipelineConfig + func (a *AdaptiveLayerSelector) RecommendedConfigWithTiers(ct ContentType, mode Mode, inputLen int, queryIntent string) PipelineConfig + type AdaptiveLearningFilter struct + func NewAdaptiveLearningFilter() *AdaptiveLearningFilter + func (a *AdaptiveLearningFilter) Apply(input string, mode Mode) (string, int) + func (a *AdaptiveLearningFilter) GenerateTiers(input string) *TieredResult + func (a *AdaptiveLearningFilter) GetLearningStats() map[string]interface{} + func (a *AdaptiveLearningFilter) IsEnabled() bool + func (a *AdaptiveLearningFilter) Name() string + func (a *AdaptiveLearningFilter) SetEnabled(enabled bool) + type AdaptivePipeline struct + func NewAdaptivePipeline(layers []Filter) *AdaptivePipeline + func (ap *AdaptivePipeline) Process(input string) (string, int) + type AdvancedFilter struct + func NewAdvancedFilter() *AdvancedFilter + func (f *AdvancedFilter) Apply(input string, mode Mode) (string, int) + func (f *AdvancedFilter) Name() string + type AgentMemoryConfig struct + ConsolidationThreshold int + EnableAutoConsolidation bool + HistoryPruneRatio float64 + KnowledgeMaxSize int + KnowledgeRetentionRatio float64 + PreservePatterns []*regexp.Regexp + func DefaultAgentMemoryConfig() AgentMemoryConfig + type AgentMemoryFilter struct + func NewAgentMemoryFilter() *AgentMemoryFilter + func NewAgentMemoryFilterWithConfig(cfg AgentMemoryConfig) *AgentMemoryFilter + func (f *AgentMemoryFilter) Apply(input string, mode Mode) (string, int) + func (f *AgentMemoryFilter) GetStats() AgentMemoryStats + func (f *AgentMemoryFilter) Name() string + func (f *AgentMemoryFilter) Reset() + type AgentMemoryLayerConfig struct + ConsolidationMax int + Enabled bool + HistoryPrune float64 + KnowledgeRetention float64 + type AgentMemoryStats struct + HistoryTokens int + KnowledgeTokens int + TokensSaved int + TotalConsolidated int + TotalPruned int + type AgentOCRFilter struct + func NewAgentOCRFilter() *AgentOCRFilter + func (f *AgentOCRFilter) Apply(input string, mode Mode) (string, int) + func (f *AgentOCRFilter) Name() string + type AgentOCRHistoryFilter struct + func NewAgentOCRHistoryFilter() *AgentOCRHistoryFilter + func (f *AgentOCRHistoryFilter) Apply(input string, mode Mode) (string, int) + func (f *AgentOCRHistoryFilter) Name() string + type AggregateStats struct + AvgCompression float64 + AvgLatency float64 + AvgQuality float64 + MaxCompression float64 + MinCompression float64 + StdDevCompression float64 + TotalTime time.Duration + type AnchorToken struct + Aggregated []string + IsStructural bool + Position int + Score float64 + Text string + type ApplicabilityCheck interface + IsApplicable func(input string) bool + type AttentionSinkFilter struct + func NewAdaptiveAttentionSinkFilter(outputLines int) *AttentionSinkFilter + func NewAttentionSinkFilter() *AttentionSinkFilter + func (a *AttentionSinkFilter) Apply(input string, mode Mode) (string, int) + func (a *AttentionSinkFilter) GetStats() map[string]any + func (a *AttentionSinkFilter) Name() string + func (a *AttentionSinkFilter) SetEnabled(enabled bool) + type AttentionSinkLayerConfig struct + Enabled bool + RecentCount int + SinkCount int + type AttributionConfig struct + Enabled bool + FrequencyBias bool + ImportanceThreshold float64 + MaxAnalyzeTokens int + MinContentLength int + PositionalBias bool + SemanticPreservation bool + func DefaultAttributionConfig() AttributionConfig + type AttributionFilter struct + func NewAttributionFilter() *AttributionFilter + func (a *AttributionFilter) Apply(input string, mode Mode) (string, int) + func (a *AttributionFilter) GetStats() map[string]any + func (a *AttributionFilter) Name() string + func (a *AttributionFilter) SetEnabled(enabled bool) + type AttributionLayerConfig struct + Enabled bool + Threshold float64 + type AutoTier int + const AutoTierAdvanced + const AutoTierCore + const AutoTierCount + const AutoTierPre + const AutoTierSemantic + const AutoTierSpecialized + func QuickTierEnable(useCase string) []AutoTier + type AutoTierConfig struct + AutoEnable bool + ContentTypes []ContentType + CostLevel int + Default bool + Description string + LayerRange [2]int + MinInputLen int + Name string + type AutoTierRecommendation struct + Confidence float64 + Reason string + Tiers []AutoTier + func RecommendTiers(contentType ContentType, inputLen int, queryIntent string) AutoTierRecommendation + type BeamSearchPerplexity struct + func NewBeamSearchPerplexity(w int) *BeamSearchPerplexity + type BenchmarkReport struct + Failed int + OverallStats AggregateStats + Passed int + Recommendations []string + Results []BenchmarkResult + Timestamp time.Time + TotalTests int + type BenchmarkResult struct + CompressedTokens int + CompressionTime time.Duration + ContentType string + LayerBreakdown map[string]LayerTiming + OriginalTokens int + PerTokenLatency float64 + QualityScore float64 + ReconstructionDiff float64 + ReductionPct float64 + Reversible bool + TestName string + type BloomFilter struct + func NewBloomFilter(size int) *BloomFilter + func (bf *BloomFilter) Add(item string) + func (bf *BloomFilter) Contains(item string) bool + type BodyFilter struct + func NewBodyFilter() *BodyFilter + func (f *BodyFilter) Apply(input string, mode Mode) (string, int) + func (f *BodyFilter) Name() string + type BudgetAllocator struct + func NewBudgetAllocator() *BudgetAllocator + func (b *BudgetAllocator) Allocate(layerID, budget int) + type BudgetConfig struct + Budget int + type BudgetEnforcer struct + func NewBudgetEnforcer(budget int) *BudgetEnforcer + func NewBudgetEnforcerWithConfig(cfg BudgetConfig) *BudgetEnforcer + func (f *BudgetEnforcer) Apply(input string, mode Mode) (string, int) + func (f *BudgetEnforcer) Name() string + func (f *BudgetEnforcer) SetBudget(budget int) + type BufferPool struct + func NewBufferPool(size int) *BufferPool + func (bp *BufferPool) Get() *ZeroCopyBuffer + func (bp *BufferPool) Put(buf *ZeroCopyBuffer) + type BytePool struct + func NewBytePool() *BytePool + func (p *BytePool) AcquireStringBuilder(capacity int) *bytes.Buffer + func (p *BytePool) Get(capacity int) *[]byte + func (p *BytePool) Put(b *[]byte) + func (p *BytePool) ReleaseStringBuilder(buf *bytes.Buffer) + type CARL struct + func (c *CARL) Apply(input string, mode Mode) (string, int) + type CARLFilter struct + func NewCARLFilter() *CARLFilter + func (f *CARLFilter) Apply(input string, mode Mode) (string, int) + func (f *CARLFilter) Name() string + type CRFGoalDriven struct + func NewCRFGoalDriven() *CRFGoalDriven + func (c *CRFGoalDriven) Score(line string) float64 + type CacheBreakpointFilter struct + MaxBreakpoints int + MinCacheableTokens int + func NewCacheBreakpointFilter() *CacheBreakpointFilter + func (f *CacheBreakpointFilter) Filter(input string) string + type CacheStats struct + Evictions int64 + HitRate float64 + Hits int64 + MaxSize int + Misses int64 + Size int + type CachedPipeline struct + func NewCachedPipeline(cfg CachedPipelineConfig) *CachedPipeline + func (cp *CachedPipeline) Close() error + func (cp *CachedPipeline) Process(command string, args []string, getOutput func() (string, error)) (*CachedProcessResult, error) + func (cp *CachedPipeline) Stats() (*cache.CacheStats, error) + type CachedPipelineConfig struct + Cache *cache.QueryCache + Enabled bool + GitWatcher *cache.GitWatcher + Pipeline *PipelineCoordinator + type CachedProcessResult struct + CacheHitCount int + CacheKey string + FromCache bool + OriginalOutput string + Output string + Stats *PipelineStats + type CachedResult struct + CachedAt time.Time + Output string + Tokens int + type Checkpoint struct + Data string + Position int + func (c *Checkpoint) Save(pos int, data string) + type ChunkMethod int + const ChunkAuto + const ChunkCode + const ChunkMixed + const ChunkText + type ChunkType int + const ChunkClass + const ChunkCodeBlock + const ChunkComment + const ChunkFunction + const ChunkImport + const ChunkInterface + const ChunkMethodDef + const ChunkOther + const ChunkParagraph + const ChunkSentence + const ChunkStruct + type CircuitBreaker struct + func NewCircuitBreaker(threshold float64, maxFails int) *CircuitBreaker + func (cb *CircuitBreaker) Check(quality float64) bool + type CoTCompressFilter struct + func NewCoTCompressFilter() *CoTCompressFilter + func (f *CoTCompressFilter) Apply(input string, mode Mode) (string, int) + func (f *CoTCompressFilter) Name() string + type CoTCompressor struct + func (c *CoTCompressor) Apply(input string, mode Mode) (string, int) + type CodeChunk struct + Children []CodeChunk + Content string + EndLine int + Name string + Score float64 + StartLine int + Tokens int + Type string + type CodeContext struct + File string + Lines string + Symbols []string + type CodeGist struct + func NewCodeGist() *CodeGist + type CodingAgentContext struct + func (c *CodingAgentContext) Apply(input string, mode Mode) (string, int) + type CodingAgentContextFilter struct + func NewCodingAgentContextFilter() *CodingAgentContextFilter + func (f *CodingAgentContextFilter) Apply(input string, mode Mode) (string, int) + func (f *CodingAgentContextFilter) Name() string + type ColorPassthrough struct + func (cp *ColorPassthrough) RestoreCodes(stripped string) string + func (cp *ColorPassthrough) StripAndStore(content string) string + type CommentFilter struct + func (f *CommentFilter) Apply(input string, mode Mode) (string, int) + func (f *CommentFilter) Name() string + type CompactionConfig struct + AutoDetect bool + CacheEnabled bool + ContentTypes []string + Enabled bool + ExtractKeyValuePairs bool + MaxContextEntries int + MaxSummaryTokens int + PreserveRecentTurns int + PromptTemplate string + StateSnapshotFormat bool + ThresholdLines int + ThresholdTokens int + func DefaultCompactionConfig() CompactionConfig + type CompactionLayer struct + func NewCompactionLayer(cfg CompactionConfig) *CompactionLayer + func (c *CompactionLayer) Apply(input string, mode Mode) (string, int) + func (c *CompactionLayer) GetStats() map[string]any + func (c *CompactionLayer) IsAvailable() bool + func (c *CompactionLayer) Name() string + func (c *CompactionLayer) SetEnabled(enabled bool) + type CompactionLayerConfig struct + AutoDetect bool + Enabled bool + MaxTokens int + PreserveTurns int + StateSnapshot bool + Threshold int + type CompactionResult struct + Cached bool + CompressionRatio float64 + FinalTokens int + OriginalTokens int + SavedTokens int + Snapshot *StateSnapshot + Timestamp time.Time + func Compact(input string, cfg CompactionConfig) (string, *CompactionResult) + type CompressionMode = Tier + type ConfigurableHierarchical struct + func NewConfigurableHierarchical(d int) *ConfigurableHierarchical + type ContentDetector struct + func (cd *ContentDetector) Detect(input string) string + type ContentType int + const ContentTypeCode + const ContentTypeConversation + const ContentTypeDockerOutput + const ContentTypeGitOutput + const ContentTypeLogs + const ContentTypeMixed + const ContentTypeTestOutput + const ContentTypeUnknown + func (ct ContentType) String() string + type ContextContentType int + const ContextContentTypeDiff + const ContextContentTypeLog + const ContextContentTypeUnknown + type ContextCrunchFilter struct + func NewContextCrunchFilter() *ContextCrunchFilter + func (c *ContextCrunchFilter) Apply(input string, mode Mode) (string, int) + func (c *ContextCrunchFilter) EstimateTokens(text string) int + func (c *ContextCrunchFilter) Name() string + type ContrastiveFilter struct + func NewContrastiveFilter(question string) *ContrastiveFilter + func (f *ContrastiveFilter) Apply(input string, mode Mode) (string, int) + func (f *ContrastiveFilter) Name() string + func (f *ContrastiveFilter) SetQuestion(question string) + type ConversationDedup struct + func NewConversationDedup() *ConversationDedup + func (d *ConversationDedup) DeduplicateMessages(messages []Message) ([]Message, *DedupStats) + type ConversationTracker struct + func NewConversationTracker(maxTurns int) *ConversationTracker + func (t *ConversationTracker) AddTurn(role, content string) + func (t *ConversationTracker) GetRecentTurns(n int) []Turn + func (t *ConversationTracker) GetTurns() []Turn + type CoordinatorPool struct + func GetDefaultPool() *CoordinatorPool + func NewCoordinatorPool(config PipelineConfig) *CoordinatorPool + func (p *CoordinatorPool) Get() *PipelineCoordinator + func (p *CoordinatorPool) Put(coord *PipelineCoordinator) + type CoreFilters struct + func NewCoreFilters(cfg PipelineConfig) *CoreFilters + func (c *CoreFilters) Apply(input string, mode Mode, stats *PipelineStats) string + type CoreLayersConfig struct + LLMEnabled bool + MultiFileEnabled bool + NgramEnabled bool + SessionTracking bool + type CrossMessageDedup struct + func NewCrossMessageDedup() *CrossMessageDedup + func (d *CrossMessageDedup) Clear() + func (d *CrossMessageDedup) Count() int + func (d *CrossMessageDedup) DedupMessage(content string) (bool, string) + type CrunchBench struct + func NewCrunchBench() *CrunchBench + func (cb *CrunchBench) Apply(input string, mode Mode) (string, int) + func (cb *CrunchBench) FormatReport(report *BenchmarkReport) string + func (cb *CrunchBench) Name() string + func (cb *CrunchBench) RegisterTestInput(name, content, contentType string, minExpected, maxExpected float64) + func (cb *CrunchBench) RunBenchmark(cfg PipelineConfig) *BenchmarkReport + type CurrentState struct + ActiveFile string + Focus string + Mode string + NextAction string + type DAGOptimizer struct + func NewDAGOptimizer() *DAGOptimizer + func (dag *DAGOptimizer) Optimize(layers []int) []int + type DedupStats struct + MessagesDeduped int + MessagesTotal int + TokensAfter int + TokensBefore int + type DensityAdaptiveLayerConfig struct + Enabled bool + TargetRatio float64 + Threshold float64 + type DictionaryEncoding struct + func NewDictionaryEncoding() *DictionaryEncoding + func (de *DictionaryEncoding) Decode(content string) string + func (de *DictionaryEncoding) Encode(content string) (string, int) + type DiffAdapt struct + func (d *DiffAdapt) Apply(input string, mode Mode) (string, int) + type DiffAdaptFilter struct + func NewDiffAdaptFilter() *DiffAdaptFilter + func (f *DiffAdaptFilter) Apply(input string, mode Mode) (string, int) + func (f *DiffAdaptFilter) Name() string + type DiffCrunch struct + func NewDiffCrunch(cfg DiffCrunchConfig) *DiffCrunch + func (dc *DiffCrunch) Process(content string) (string, int) + type DiffCrunchConfig struct + ContextMarker string + Enabled bool + MaxContext int + func DefaultDiffCrunchConfig() DiffCrunchConfig + type DiffCrunchFilter struct + func NewDiffCrunchFilter() *DiffCrunchFilter + func (f *DiffCrunchFilter) Apply(input string, mode Mode) (string, int) + func (f *DiffCrunchFilter) Name() string + type DifferentialCompressor struct + func NewDifferentialCompressor() *DifferentialCompressor + func (dc *DifferentialCompressor) Compress(current string) string + type DynamicRatioLayerConfig struct + Base float64 + Enabled bool + type EPiC struct + func (e *EPiC) Apply(input string, mode Mode) (string, int) + type EPiCFilter struct + func NewEPiCFilter() *EPiCFilter + func (f *EPiCFilter) Apply(input string, mode Mode) (string, int) + func (f *EPiCFilter) Name() string + type EdgeCaseConfig struct + CoTMaxLines int + CodeContextLines int + EnableMultimodalHints bool + NearDedupThreshold float64 + type EdgeCaseFilter struct + func NewEdgeCaseFilter() *EdgeCaseFilter + func (f *EdgeCaseFilter) Apply(input string, mode Mode) (string, int) + func (f *EdgeCaseFilter) Name() string + type EmbeddingCompaction struct + func NewEmbeddingCompaction() *EmbeddingCompaction + type EmbeddingContrastive struct + func NewEmbeddingContrastive() *EmbeddingContrastive + type EnableCheck interface + IsEnabled func() bool + type Engine struct + func NewEngine(mode Mode) *Engine + func NewEngineWithConfig(cfg EngineConfig) *Engine + func NewEngineWithQuery(mode Mode, queryIntent string) *Engine + func (e *Engine) Process(input string) (string, int) + func (e *Engine) SetMode(mode Mode) + type EngineConfig struct + LLMEnabled bool + Mode Mode + MultiFileEnabled bool + PromptTemplate string + QueryIntent string + type EngramLearner struct + func NewEngramLearner() *EngramLearner + func (el *EngramLearner) Apply(input string, mode Mode) (string, int) + func (el *EngramLearner) GetRules() []EngramRule + func (el *EngramLearner) GetRulesForContent(content string) []EngramRule + func (el *EngramLearner) GetStats() map[string]interface{} + func (el *EngramLearner) LoadRules() error + func (el *EngramLearner) Name() string + func (el *EngramLearner) RecordFailure(ruleID string) + func (el *EngramLearner) RecordSuccess(ruleID string) + func (el *EngramLearner) SaveRules() error + type EngramRule struct + AppliedCount int64 + Confidence float64 + CreatedAt time.Time + Evidence []Evidence + ID string + Name string + Pattern string + Severity Severity + SuccessCount int64 + Type RuleType + type EnhancedEntropy struct + func (e *EnhancedEntropy) Calculate(data []byte) float64 + type EnhancedPhotonFilter struct + func (e *EnhancedPhotonFilter) Apply(input string, mode Mode) (string, int) + type EntropyFilter struct + func NewEntropyFilter() *EntropyFilter + func NewEntropyFilterWithThreshold(threshold float64) *EntropyFilter + func (f *EntropyFilter) Apply(input string, mode Mode) (string, int) + func (f *EntropyFilter) Name() string + func (f *EntropyFilter) SetDynamicEstimation(enabled bool) + func (f *EntropyFilter) SetThreshold(threshold float64) + type EquivalenceReport struct + ErrorPreserved bool + ExitCodesPreserved bool + FilePathsPreserved bool + NumbersPreserved bool + Score float64 + URLsPreserved bool + func (r EquivalenceReport) IsGood() bool + type ErrorClassifier struct + Description string + ID string + Name string + Pattern *regexp.Regexp + RuleType RuleType + Severity Severity + type ErrorPattern struct + Count int + FirstSeen time.Time + LastSeen time.Time + Pattern string + SampleInput string + type EvaluatorHeadsFilter struct + func NewEvaluatorHeadsFilter() *EvaluatorHeadsFilter + func (f *EvaluatorHeadsFilter) Apply(input string, mode Mode) (string, int) + func (f *EvaluatorHeadsFilter) Name() string + func (f *EvaluatorHeadsFilter) SetEvalThreshold(threshold float64) + func (f *EvaluatorHeadsFilter) SetSkimRatio(ratio float64) + type Evidence struct + Context string + Description string + InputHash string + Timestamp time.Time + type FastStringBuilder struct + func NewFastStringBuilder(capacity int) *FastStringBuilder + func (b *FastStringBuilder) Cap() int + func (b *FastStringBuilder) Grow(n int) + func (b *FastStringBuilder) Len() int + func (b *FastStringBuilder) Reset() + func (b *FastStringBuilder) String() string + func (b *FastStringBuilder) Write(p []byte) + func (b *FastStringBuilder) WriteByte(c byte) error + func (b *FastStringBuilder) WriteString(s string) + type Features struct + ContentType string + Entropy float64 + Length int + func (f Features) String() string + type FeedbackConfig struct + Enabled bool + MaxAdjustment float64 + QualityThreshold float64 + func DefaultFeedbackConfig() FeedbackConfig + type FeedbackLoop struct + func NewFeedbackLoop() *FeedbackLoop + func (fl *FeedbackLoop) GetThreshold(key string, base float64) float64 + func (fl *FeedbackLoop) Record(key string, quality float64) + type FeedbackSignal struct + CompressionRatio float64 + LayerName string + QualityScore float64 + SuggestedAdjustment float64 + type Filter interface + Apply func(input string, mode Mode) (output string, tokensSaved int) + Name func() string + func SafeFilterFunc(filter Filter, name string) Filter + type FusionStageMap struct + LayerIDs []string + Stage string + func ClawFusionStageCoverage() []FusionStageMap + type GMSA struct + func (g *GMSA) Apply(input string, mode Mode) (string, int) + type GMSAFilter struct + func NewGMSAFilter() *GMSAFilter + func (f *GMSAFilter) Apply(input string, mode Mode) (string, int) + func (f *GMSAFilter) Name() string + type GPUAccelerator struct + func NewGPUAccelerator() *GPUAccelerator + type GistFilter struct + func NewGistFilter() *GistFilter + func (f *GistFilter) Apply(input string, mode Mode) (string, int) + func (f *GistFilter) Name() string + func (f *GistFilter) SetMaxChunkSize(size int) + type GoalDrivenFilter struct + func NewGoalDrivenFilter(goal string) *GoalDrivenFilter + func (f *GoalDrivenFilter) Apply(input string, mode Mode) (string, int) + func (f *GoalDrivenFilter) Name() string + type GoalMode int + const GoalModeBuild + const GoalModeDebug + const GoalModeDeploy + const GoalModeGeneric + const GoalModeReview + const GoalModeSearch + const GoalModeTest + type GraphCoTFilter struct + func NewGraphCoTFilter() *GraphCoTFilter + func (f *GraphCoTFilter) Apply(input string, mode Mode) (string, int) + func (f *GraphCoTFilter) Name() string + type GuardrailResult struct + Passed bool + Reason string + type H2OConfig struct + ChunkWindow int + Enabled bool + HeavyHitterSize int + MinContentLength int + RecentSize int + SinkSize int + func DefaultH2OConfig() H2OConfig + type H2OFilter struct + func NewH2OFilter() *H2OFilter + func (h *H2OFilter) Apply(input string, mode Mode) (string, int) + func (h *H2OFilter) GetStats() map[string]any + func (h *H2OFilter) Name() string + func (h *H2OFilter) SetEnabled(enabled bool) + type H2OLayerConfig struct + Enabled bool + HeavyHitterSize int + RecentSize int + SinkSize int + type HeatmapGenerator struct + func NewHeatmapGenerator() *HeatmapGenerator + func (hg *HeatmapGenerator) Output() string + func (hg *HeatmapGenerator) Record(pos int, ratio float64) + type HierarchicalFilter struct + func NewHierarchicalFilter() *HierarchicalFilter + func (f *HierarchicalFilter) Apply(input string, mode Mode) (string, int) + func (f *HierarchicalFilter) Name() string + func (f *HierarchicalFilter) SetLineThreshold(threshold int) + func (f *HierarchicalFilter) SetMaxDepth(depth int) + type HierarchicalSummaryFilter struct + func NewHierarchicalSummaryFilter() *HierarchicalSummaryFilter + func (f *HierarchicalSummaryFilter) Apply(input string, mode Mode) (string, int) + func (f *HierarchicalSummaryFilter) Name() string + func (f *HierarchicalSummaryFilter) SetMaxLevels(levels int) + func (f *HierarchicalSummaryFilter) SetSummaryRatio(ratio float64) + type HotPathOptimizer struct + func NewHotPathOptimizer(threshold int) *HotPathOptimizer + func (hpo *HotPathOptimizer) Get(key string) (string, bool) + func (hpo *HotPathOptimizer) Set(key, value string) + type IBConfig struct + Enabled bool + EntropyThreshold float64 + RelevanceThreshold float64 + func DefaultIBConfig() IBConfig + type ImportFilter struct + func NewImportFilter() *ImportFilter + func (f *ImportFilter) Apply(input string, mode Mode) (string, int) + func (f *ImportFilter) Name() string + type IncrementalCompressor struct + func NewIncrementalCompressor(cfg PipelineConfig, chunkSize int) *IncrementalCompressor + func (ic *IncrementalCompressor) Add(data string) string + func (ic *IncrementalCompressor) Flush() string + type IncrementalDelta struct + Added []string + Removed []string + Unchanged int + func ComputeDelta(old, new string) IncrementalDelta + type InformationBottleneck struct + func NewInformationBottleneck(cfg IBConfig) *InformationBottleneck + func (ib *InformationBottleneck) Process(content, query string) string + type InterLayerFeedback struct + func NewInterLayerFeedback() *InterLayerFeedback + func (f *InterLayerFeedback) GetAdjustment(layerName string) float64 + func (f *InterLayerFeedback) RecordSignal(signal FeedbackSignal) + func (f *InterLayerFeedback) Reset() + type JSONSamplerFilter struct + func NewJSONSamplerFilter() *JSONSamplerFilter + func (f *JSONSamplerFilter) Apply(input string, mode Mode) (string, int) + func (f *JSONSamplerFilter) Name() string + type KVCacheAligner struct + func NewKVCacheAligner(cfg KVCacheConfig) *KVCacheAligner + func (a *KVCacheAligner) AlignPrefix(content string) (string, string, string) + func (a *KVCacheAligner) CacheAwareCompress(content string, compressor *PipelineCoordinator) (string, int) + type KVCacheConfig struct + Enabled bool + MaxDynamicSuffix int + MinPrefixLength int + SplitThreshold int + func DefaultKVCacheConfig() KVCacheConfig + type L0Summary struct + Entities []string + Keywords []string + TokenCount int + Topics []string + type L1Summary struct + Outline string + Sections []Section + Title string + TokenCount int + type L2Summary struct + Implications []string + KeyPoints []string + Summary string + TokenCount int + type LLMCompressRequest struct + Content string + MaxTokens int + Mode string + type LLMCompressResponse struct + Compressed string + TokensIn int + TokensOut int + type LLMCompressor struct + func NewLLMCompressor(binPath string) *LLMCompressor + func (lc *LLMCompressor) Compress(content string, maxTokens int) (string, int, int) + func (lc *LLMCompressor) IsEnabled() bool + func (lc *LLMCompressor) SetEnabled(enabled bool) + type LRUCache = cache.LRUCache + type Language string + const LangC + const LangCpp + const LangGo + const LangJava + const LangJavaScript + const LangPython + const LangRuby + const LangRust + const LangSQL + const LangShell + const LangTypeScript + const LangUnknown + func DetectLanguageFromInput(input string) Language + type LatentCollabFilter struct + func NewLatentCollabFilter() *LatentCollabFilter + func (f *LatentCollabFilter) Apply(input string, mode Mode) (string, int) + func (f *LatentCollabFilter) Name() string + type LayerBitset uint64 + func (b LayerBitset) ToConfig() PipelineConfig + type LayerCache struct + func GetGlobalLayerCache() *LayerCache + func NewLayerCache(maxSize int, ttl time.Duration) *LayerCache + func (c *LayerCache) Clear() + func (c *LayerCache) Get(layerName, input string, mode Mode) (*LayerCacheEntry, bool) + func (c *LayerCache) Put(layerName, input string, mode Mode, output string, tokensSaved int) + func (c *LayerCache) Stats() CacheStats + type LayerCacheEntry struct + HitCount int + InputHash string + LayerName string + Mode Mode + Output string + Timestamp time.Time + TokensSaved int + type LayerConfig struct + ACON bool + AgentMemory AgentMemoryLayerConfig + AttentionSink AttentionSinkLayerConfig + Attribution AttributionLayerConfig + BEAVER bool + CacheEnabled bool + Compaction CompactionLayerConfig + Core CoreLayersConfig + DensityAdaptive DensityAdaptiveLayerConfig + DynamicRatio DynamicRatioLayerConfig + EnableAdaptiveLearning bool + EnableCrunchBench bool + H2O H2OLayerConfig + Hypernym bool + KVzip bool + LazyPruner LazyPrunerLayerConfig + MetaToken MetaTokenLayerConfig + MixedDim bool + NumericalQuant NumericalQuantLayerConfig + PhraseGrouping bool + PoC bool + QuestionAware QuestionAwareLayerConfig + SWEzze bool + Scope bool + SemanticAnchor SemanticAnchorLayerConfig + SemanticCache bool + SemanticChunk SemanticChunkLayerConfig + SketchStore SketchStoreLayerConfig + SmallKV bool + SymbolicCompress bool + TFIDF TFIDFLayerConfig + TOMLFilter bool + TOMLFilterCommand string + TokenQuant bool + TokenRetention bool + type LayerFusion struct + func NewLayerFusion() *LayerFusion + type LayerGate struct + func NewLayerGate(mode string, allowExperimental []string, registry *LayerRegistry) *LayerGate + func (g *LayerGate) Allows(layerID string) bool + type LayerMeta struct + ID string + Name string + PaperRef string + Status string + Tier LayerTier + type LayerMetrics struct + AvgTime time.Duration + Calls int64 + MaxTime time.Duration + TotalTime time.Duration + type LayerRegistry struct + func NewLayerRegistry() *LayerRegistry + func (r *LayerRegistry) Get(id string) (LayerMeta, bool) + type LayerSelector struct + func (ls *LayerSelector) SelectLayers(contentType string, inputSize int) []int + type LayerSkipPredictor struct + func NewLayerSkipPredictor() *LayerSkipPredictor + func (l *LayerSkipPredictor) ShouldSkip(layerID int) bool + type LayerStat struct + Duration int64 + TokensSaved int + type LayerTier string + const LayerTierExperimental + const LayerTierPlanned + const LayerTierRecovery + const LayerTierStable + type LayerTiming struct + Duration time.Duration + TokensSaved int + type LayersSection struct + AST bool + AgentMemory bool + AttentionSink bool + Attribution bool + Compaction bool + Contrastive bool + DynamicRatio bool + Entropy bool + Evaluator bool + Gist bool + GoalDriven bool + H2O bool + Hierarchical bool + LazyPruner bool + MetaToken bool + Ngram bool + Numerical bool + Perplexity bool + PhraseGroup bool + SemanticAnchor bool + SemanticChunk bool + SketchStore bool + Symbolic bool + TDD bool + TFIDF bool + TOON bool + type LazyLayer struct + func NewLazyLayer(f Filter) *LazyLayer + func (l *LazyLayer) Apply(input string, mode Mode) (string, int) + type LazyPrunerConfig struct + AttentionThreshold float64 + BaseBudget int + DecayRate float64 + EnableRevival bool + NumLayers int + RevivalBudget int + func DefaultLazyPrunerConfig() LazyPrunerConfig + type LazyPrunerFilter struct + func NewLazyPrunerFilter() *LazyPrunerFilter + func NewLazyPrunerFilterWithConfig(cfg LazyPrunerConfig) *LazyPrunerFilter + func (f *LazyPrunerFilter) Apply(input string, mode Mode) (string, int) + func (f *LazyPrunerFilter) Clear() + func (f *LazyPrunerFilter) GetLayerBudget(layer int) int + func (f *LazyPrunerFilter) GetLayerBudgets() []int + func (f *LazyPrunerFilter) GetStats() LazyPrunerStats + func (f *LazyPrunerFilter) Name() string + func (f *LazyPrunerFilter) ReviveTokens(layer int, count int) []Token + func (f *LazyPrunerFilter) SelectTokens(tokens []Token, layer int, threshold float64) []Token + func (f *LazyPrunerFilter) StorePruned(tokens []Token, layer int) + type LazyPrunerLayerConfig struct + BaseBudget int + DecayRate float64 + Enabled bool + RevivalBudget int + type LazyPrunerStats struct + LayersApplied int + TokensSaved int + TotalPruned int + TotalRevived int + type LightMem struct + func (l *LightMem) Apply(input string, mode Mode) (string, int) + type LightMemFilter struct + func NewLightMemFilter() *LightMemFilter + func (f *LightMemFilter) Apply(input string, mode Mode) (string, int) + func (f *LightMemFilter) Name() string + type LightThinker struct + func (l *LightThinker) Apply(input string, mode Mode) (string, int) + type LightThinkerFilter struct + func NewLightThinkerFilter() *LightThinkerFilter + func (f *LightThinkerFilter) Apply(input string, mode Mode) (string, int) + func (f *LightThinkerFilter) Name() string + type LockFreeCounter struct + func (c *LockFreeCounter) Get() uint64 + func (c *LockFreeCounter) Inc() + type LogCrunch struct + func NewLogCrunch(cfg LogCrunchConfig) *LogCrunch + func (lc *LogCrunch) Process(content string) (string, int) + type LogCrunchConfig struct + AlwaysPreserve []string + Enabled bool + MinRepetitions int + func DefaultLogCrunchConfig() LogCrunchConfig + type LogCrunchFilter struct + func NewLogCrunchFilter() *LogCrunchFilter + func (f *LogCrunchFilter) Apply(input string, mode Mode) (string, int) + func (f *LogCrunchFilter) Name() string + type ManagerConfig struct + CacheEnabled bool + CacheMaxSize int + ChunkSize int + FailSafeMode bool + MaxContextTokens int + PipelineCfg PipelineConfig + ShortCircuitBudget bool + StreamThreshold int + TeeOnFailure bool + ValidateOutput bool + type MarginalInfoGain struct + func (m *MarginalInfoGain) Apply(input string, mode Mode) (string, int) + type MarginalInfoGainFilter struct + func NewMarginalInfoGainFilter() *MarginalInfoGainFilter + func (f *MarginalInfoGainFilter) Apply(input string, mode Mode) (string, int) + func (f *MarginalInfoGainFilter) Name() string + type Message struct + Content string + Role string + type MetaToken struct + Count int + Hash string + Length int + Original string + type MetaTokenConfig struct + EnableDecompression bool + MaxMetaTokens int + MinPattern int + WindowSize int + func DefaultMetaTokenConfig() MetaTokenConfig + type MetaTokenFilter struct + func NewMetaTokenFilter() *MetaTokenFilter + func NewMetaTokenFilterWithConfig(cfg MetaTokenConfig) *MetaTokenFilter + func (f *MetaTokenFilter) Apply(input string, mode Mode) (string, int) + func (f *MetaTokenFilter) Decompress(input string) string + func (f *MetaTokenFilter) GetMetaTokens() map[string]MetaToken + func (f *MetaTokenFilter) LoadMetaTokens(tokens map[string]MetaToken) + func (f *MetaTokenFilter) Name() string + func (f *MetaTokenFilter) Stats() MetaTokenStats + type MetaTokenLayerConfig struct + Enabled bool + MinSize int + Window int + type MetaTokenStats struct + EstTokensSaved int + TotalPatterns int + UniquePatterns int + type Milestone struct + Description string + Priority int + Status string + type MinHashDedup struct + func NewMinHashDedup() *MinHashDedup + func (m *MinHashDedup) Apply(input string, mode Mode) (string, int) + type Mode string + const ModeAggressive + const ModeMinimal + const ModeNone + type MultiFileConfig struct + MaxCombinedSize int + PreserveBoundaries bool + SimilarityThreshold float64 + type MultiFileFilter struct + func NewMultiFileFilter(cfg MultiFileConfig) *MultiFileFilter + func (f *MultiFileFilter) Apply(input string, mode Mode) (string, int) + func (f *MultiFileFilter) Name() string + func (f *MultiFileFilter) SetMaxCombinedSize(size int) + func (f *MultiFileFilter) SetPreserveBoundaries(preserve bool) + func (f *MultiFileFilter) SetSimilarityThreshold(threshold float64) + type MultiLangAST struct + func NewMultiLangAST() *MultiLangAST + type NearDedupFilter struct + func NewNearDedupFilter() *NearDedupFilter + func (f *NearDedupFilter) Apply(input string, mode Mode) (string, int) + func (f *NearDedupFilter) Name() string + func (f *NearDedupFilter) SetThreshold(t int) + type NgramAbbreviator struct + func NewNgramAbbreviator() *NgramAbbreviator + func (f *NgramAbbreviator) Apply(input string, mode Mode) (string, int) + func (f *NgramAbbreviator) GetAbbreviationLegend() string + func (f *NgramAbbreviator) Name() string + type NumericalQuantLayerConfig struct + DecimalPlaces int + Enabled bool + type PATHShimInjector struct + func NewPATHShimInjector(shimDir string) *PATHShimInjector + func (psi *PATHShimInjector) Install(commands []string) error + func (psi *PATHShimInjector) Uninstall() error + func (psi *PATHShimInjector) UpdatePATH(currentPath string) string + type ParallelCompressor struct + func NewParallelCompressor(config PipelineConfig) *ParallelCompressor + func (pc *ParallelCompressor) Compress(input string) (string, int) + func (pc *ParallelCompressor) CompressBatch(inputs []string) []ParallelProcessResult + func (pc *ParallelCompressor) CompressBatchContext(ctx context.Context, inputs []string) ([]ParallelProcessResult, error) + func (pc *ParallelCompressor) WorkerCount() int + type ParallelExecutor struct + func NewParallelExecutor() *ParallelExecutor + func (pe *ParallelExecutor) ExecuteParallel(input string, layers []Filter) (string, int) + type ParallelFilterResult struct + Error error + Output string + Saved int + type ParallelPipelineStats struct + LayerStats map[string]LayerStat + ParallelTime int64 + SequentialTime int64 + TotalSaved int + func NewParallelPipelineStats() *ParallelPipelineStats + func (s *ParallelPipelineStats) AddStat(name string, stat LayerStat) + type ParallelProcessResult struct + Index int + Input string + Output string + Saved int + type ParallelProcessor struct + func NewParallelProcessor() *ParallelProcessor + func NewParallelProcessorWithWorkers(workers int) *ParallelProcessor + func (p *ParallelProcessor) ProcessItems(items []string, processFn func(string) (string, int)) []ParallelProcessResult + func (p *ParallelProcessor) ProcessItemsContext(ctx context.Context, items []string, ...) ([]ParallelProcessResult, error) + type PathShorten struct + func NewPathShorten() *PathShorten + func (p *PathShorten) Apply(input string, mode Mode) (string, int) + type PathShortenFilter struct + func NewPathShortenFilter() *PathShortenFilter + func (f *PathShortenFilter) Apply(input string, mode Mode) (string, int) + func (f *PathShortenFilter) Name() string + type PerceptionCompress struct + func (p *PerceptionCompress) Apply(input string, mode Mode) (string, int) + type PerceptionCompressFilter struct + func NewPerceptionCompressFilter() *PerceptionCompressFilter + func (f *PerceptionCompressFilter) Apply(input string, mode Mode) (string, int) + func (f *PerceptionCompressFilter) Name() string + type PerplexityFilter struct + func NewPerplexityFilter() *PerplexityFilter + func (f *PerplexityFilter) Apply(input string, mode Mode) (string, int) + func (f *PerplexityFilter) Name() string + func (f *PerplexityFilter) SetIterations(iterations int) + func (f *PerplexityFilter) SetTargetRatio(ratio float64) + type PerplexityOptimizer struct + func NewPerplexityOptimizer(width int) *PerplexityOptimizer + func (po *PerplexityOptimizer) Optimize(tokens []string) []string + type PhotonFilter struct + func NewPhotonFilter() *PhotonFilter + func (f *PhotonFilter) Apply(input string, mode Mode) (string, int) + func (f *PhotonFilter) Name() string + type PipeOp struct + Args []string + Type string + type Pipeline interface + Process func(input string) (string, *PipelineStats, error) + type PipelineConfig = PipelineConfigWithNestedLayers + func BuildConfigFromTiers(tiers []AutoTier, baseConfig PipelineConfig) PipelineConfig + func LoadPipelineFromTOML(path string) (PipelineConfig, error) + func ModeConfig(mode CompressionMode, baseMode Mode) PipelineConfig + func PresetConfig(preset PipelinePreset, baseMode Mode) PipelineConfig + func ProfileConfig(profile Profile, baseMode Mode) PipelineConfig + func TierConfig(tier Tier, baseMode Mode) PipelineConfig + func ToFilterPipelineConfig(c config.PipelineConfig, opts PipelineRuntimeOptions) PipelineConfig + func (cfg *PipelineConfig) AllCoreLayersDisabled() bool + func (cfg *PipelineConfig) HasExplicitSettings() bool + func (cfg *PipelineConfig) ToLayerBitset() LayerBitset + type PipelineConfigWithNestedLayers struct + AgentConsolidationMax int + AgentHistoryPrune float64 + AgentKnowledgeRetention float64 + AttentionRecentCount int + AttentionSinkCount int + AttributionThreshold float64 + Budget int + CacheEnabled bool + CacheMaxSize int + CompactionAutoDetect bool + CompactionMaxTokens int + CompactionPreserveTurns int + CompactionStateSnapshot bool + CompactionThreshold int + DecimalPlaces int + DensityTargetRatio float64 + DensityThreshold float64 + DynamicRatioBase float64 + EnableACON bool + EnableAST bool + EnableAdaptiveLearning bool + EnableAdvanced bool + EnableAgentMemory bool + EnableAgentOCR bool + EnableAgentOCRHist bool + EnableAttentionSink bool + EnableAttribution bool + EnableBEAVER bool + EnableCARL bool + EnableCoTCompress bool + EnableCodingAgentCtx bool + EnableCompaction bool + EnableContextCrunch bool + EnableContrastive bool + EnableCrunchBench bool + EnableDensityAdaptive bool + EnableDiffAdapt bool + EnableDynamicRatio bool + EnableEPiC bool + EnableEdgeCase bool + EnableEntropy bool + EnableEvaluator bool + EnableExtractivePrefilter bool + EnableGMSA bool + EnableGist bool + EnableGoalDriven bool + EnableGraphCoT bool + EnableH2O bool + EnableHierarchical bool + EnableHypernym bool + EnableJSONSampler bool + EnableKVzip bool + EnableLatentCollab bool + EnableLazyPruner bool + EnableLightMem bool + EnableLightThinker bool + EnableMarginalInfoGain bool + EnableMetaToken bool + EnableMixedDim bool + EnableNearDedup bool + EnableNumericalQuant bool + EnablePathShorten bool + EnablePerceptionCompress bool + EnablePerplexity bool + EnablePhoton bool + EnablePhraseGrouping bool + EnablePlanBudget bool + EnablePlannedLayers bool + EnablePoC bool + EnablePolicyRouter bool + EnableQualityGuardrail bool + EnableQuantumLock bool + EnableQuestionAware bool + EnableReasoning bool + EnableReasoningTrace bool + EnableRoleBudget bool + EnableS2MAD bool + EnableSSDP bool + EnableSWEAdaptive bool + EnableSWEzze bool + EnableScope bool + EnableSearchCrunch bool + EnableSemanticAnchor bool + EnableSemanticCache bool + EnableSemanticChunk bool + EnableSketchStore bool + EnableSlimInfer bool + EnableSmallKV bool + EnableStructColl bool + EnableSymbolicCompress bool + EnableTFIDF bool + EnableTOMLFilter bool + EnableThinkSwitcher bool + EnableTiers bool + EnableTokenQuant bool + EnableTokenRetention bool + EnabledTiers []AutoTier + ExtractiveHeadLines int + ExtractiveMaxLines int + ExtractiveSignalLines int + ExtractiveTailLines int + H2OHeavyHitterSize int + H2ORecentSize int + H2OSinkSize int + LLMEnabled bool + LayerGateAllowExperimental []string + LayerGateMode string + Layers LayerConfig + LazyBaseBudget int + LazyDecayRate float64 + LazyRevivalBudget int + MaxReflectionLoops int + MetaTokenMinSize int + MetaTokenWindow int + Mode Mode + MultiFileEnabled bool + NgramEnabled bool + PromptTemplate string + QueryIntent string + QuestionAwareThreshold float64 + SemanticAnchorRatio float64 + SemanticAnchorSpacing int + SemanticChunkMethod string + SemanticChunkMinSize int + SemanticChunkThreshold float64 + SessionTracking bool + SketchBudgetRatio float64 + SketchHeavyHitter float64 + SketchMaxSize int + TFIDFThreshold float64 + TOMLFilterCommand string + type PipelineCoordinator struct + func NewPipelineCoordinator(cfg *PipelineConfig) *PipelineCoordinator + func (p *PipelineCoordinator) Process(input string) (string, *PipelineStats) + func (p *PipelineCoordinator) UpdateConfig(fn func(*PipelineConfig)) + func (p *PipelineCoordinator) Warmup() + type PipelineManager struct + func NewPipelineManager(cfg ManagerConfig) *PipelineManager + func (m *PipelineManager) Process(input string, mode Mode, ctx config.CommandContext) (*ProcessResult, error) + func (m *PipelineManager) ProcessWithBudget(input string, mode Mode, budget int, ctx config.CommandContext) (*ProcessResult, error) + func (m *PipelineManager) ProcessWithQuery(input string, mode Mode, query string, ctx config.CommandContext) (*ProcessResult, error) + type PipelinePreset = Tier + type PipelineRuntimeOptions struct + Budget int + LLMEnabled bool + Mode Mode + QueryIntent string + type PipelineSection struct + Budget int + LLMEnabled bool + Mode string + QueryIntent string + type PipelineStats struct + CacheHit bool + FinalTokens int + LayerStats map[string]LayerStat + OriginalTokens int + ReductionPercent float64 + TotalSaved int + func ProcessWithPool(input string, pool *CoordinatorPool) (string, *PipelineStats) + func (s *PipelineStats) AddLayerStatSafe(name string, stat LayerStat) + func (s *PipelineStats) RunningSavedSafe() int + func (s *PipelineStats) String() string + type PlanBudgetFilter struct + func NewPlanBudgetFilter() *PlanBudgetFilter + func (f *PlanBudgetFilter) Apply(input string, mode Mode) (string, int) + func (f *PlanBudgetFilter) Name() string + type PositionAwareFilter struct + func NewPositionAwareFilter() *PositionAwareFilter + func (f *PositionAwareFilter) Apply(input string, mode Mode) (string, int) + func (f *PositionAwareFilter) Name() string + type PreviewMode struct + func NewPreviewMode(size int) *PreviewMode + func (pm *PreviewMode) Preview(input string) string + type ProcessResult struct + CacheHit bool + Chunks int + FinalTokens int + LayerStats map[string]LayerStat + OriginalTokens int + Output string + ReductionPercent float64 + SavedTokens int + TeeFile string + Validated bool + Warning string + type Profile = Tier + func ContentProfile(input string) Profile + type Profiler struct + func NewProfiler() *Profiler + func (p *Profiler) GetMetrics() map[string]*LayerMetrics + func (p *Profiler) Track(name string, fn func()) + type PyramidBudget struct + LayerCount int + TotalReduction float64 + func NewPyramidBudget(totalReduction float64, layerCount int) *PyramidBudget + func (p *PyramidBudget) CumulativeReduction(throughLayer int) float64 + func (p *PyramidBudget) Distribute() []float64 + func (p *PyramidBudget) LayerBudget(layerIndex int) float64 + type QualityCache struct + func NewQualityCache() *QualityCache + func (qc *QualityCache) Get(key string) (float64, bool) + func (qc *QualityCache) Set(key string, score float64) + type QualityEstimator struct + func NewQualityEstimator() *QualityEstimator + func (q *QualityEstimator) EstimateQuality(original, compressed string) float64 + type QualityGuardrail struct + func NewQualityGuardrail() *QualityGuardrail + func (g *QualityGuardrail) Validate(before, after string) GuardrailResult + type QualityPredictor struct + func NewQualityPredictor() *QualityPredictor + func (qp *QualityPredictor) Learn(input string, actualRatio float64) + func (qp *QualityPredictor) Predict(input string) float64 + type QuantumLockFilter struct + func NewQuantumLockFilter() *QuantumLockFilter + func (f *QuantumLockFilter) Apply(input string, mode Mode) (string, int) + func (f *QuantumLockFilter) Name() string + type QueryAwareFilter struct + func NewQueryAwareFilter(query ...string) *QueryAwareFilter + func (f *QueryAwareFilter) Apply(input string, mode Mode) (string, int) + func (f *QueryAwareFilter) Name() string + func (f *QueryAwareFilter) SetQuery(query string) + type QueryIntent int + const IntentBuild + const IntentDebug + const IntentDeploy + const IntentReview + const IntentSearch + const IntentTest + const IntentUnknown + type QuestionAwareLayerConfig struct + Enabled bool + Threshold float64 + type RatioPredictor struct + func NewRatioPredictor() *RatioPredictor + func (rp *RatioPredictor) Learn(ratio float64) + func (rp *RatioPredictor) Predict() float64 + type ReadMode string + const ReadAggressive + const ReadDiff + const ReadEntropy + const ReadFull + const ReadLines + const ReadMap + const ReadSignatures + type ReadOptions struct + EndLine int + MaxTokens int + Mode ReadMode + Query string + StartLine int + type RealtimeMetrics struct + func NewRealtimeMetrics() *RealtimeMetrics + func (r *RealtimeMetrics) Update(ratio float64) + type ReasoningFilter struct + func NewReasoningFilter() *ReasoningFilter + func (f *ReasoningFilter) Apply(input string, mode Mode) (string, int) + func (f *ReasoningFilter) Name() string + type RefactoredCoordinator struct + func NewRefactoredCoordinator(cfg PipelineConfig) *RefactoredCoordinator + func (r *RefactoredCoordinator) Process(input string) (string, *PipelineStats, error) + type RegexCache struct + type ReversibleStore struct + func NewReversibleStore() *ReversibleStore + func (s *ReversibleStore) ListRecent(n int) ([]StoredEntry, error) + func (s *ReversibleStore) Restore(hashPrefix string) (*StoredEntry, error) + func (s *ReversibleStore) Store(command, original, compressed string, mode string, budget int, ...) string + type RoleBudgetFilter struct + func NewRoleBudgetFilter() *RoleBudgetFilter + func (f *RoleBudgetFilter) Apply(input string, mode Mode) (string, int) + func (f *RoleBudgetFilter) Name() string + type RollingHash struct + func NewRollingHash(window int) *RollingHash + func (rh *RollingHash) Update(b byte) + func (rh *RollingHash) Value() uint64 + type RuleType string + const RuleTypeBoost + const RuleTypeCompress + const RuleTypePreserve + const RuleTypeReduce + const RuleTypeSkipLayer + type S2MAD struct + func (s *S2MAD) Apply(input string, mode Mode) (string, int) + type S2MADFilter struct + func NewS2MADFilter() *S2MADFilter + func (f *S2MADFilter) Apply(input string, mode Mode) (string, int) + func (f *S2MADFilter) Name() string + type SIMDEntropyFilter struct + func NewSIMDEntropyFilter(threshold float64) *SIMDEntropyFilter + func (f *SIMDEntropyFilter) Apply(input string, mode Mode) (string, int) + type SSDP struct + func (s *SSDP) Apply(input string, mode Mode) (string, int) + type SSDPFilter struct + func NewSSDPFilter() *SSDPFilter + func (f *SSDPFilter) Apply(input string, mode Mode) (string, int) + func (f *SSDPFilter) Name() string + type SWEAdaptiveLoopFilter struct + func NewSWEAdaptiveLoopFilter() *SWEAdaptiveLoopFilter + func (f *SWEAdaptiveLoopFilter) Apply(input string, mode Mode) (string, int) + func (f *SWEAdaptiveLoopFilter) Name() string + type SafeFilter struct + func NewSafeFilter(filter Filter, name string) *SafeFilter + func (sf *SafeFilter) Apply(input string, mode Mode) (output string, saved int) + func (sf *SafeFilter) IsNil() bool + func (sf *SafeFilter) Name() string + type SafetySection struct + AllowRemote bool + CheckFilterSafety bool + MaxFilterSize int + type SearchCrunchFilter struct + func NewSearchCrunchFilter() *SearchCrunchFilter + func (f *SearchCrunchFilter) Apply(input string, mode Mode) (string, int) + func (f *SearchCrunchFilter) Name() string + type Section struct + Heading string + Level int + Summary string + type SemanticAnchorConfig struct + AnchorRatio float64 + EnableAggregation bool + MinAnchorSpacing int + PreserveStructure bool + func DefaultSemanticAnchorConfig() SemanticAnchorConfig + type SemanticAnchorFilter struct + func NewSemanticAnchorFilter() *SemanticAnchorFilter + func NewSemanticAnchorFilterWithConfig(cfg SemanticAnchorConfig) *SemanticAnchorFilter + func (f *SemanticAnchorFilter) Apply(input string, mode Mode) (string, int) + func (f *SemanticAnchorFilter) GetAnchorDensity(token string) float64 + func (f *SemanticAnchorFilter) GetAnchors() []AnchorToken + func (f *SemanticAnchorFilter) GetStats() SemanticAnchorStats + func (f *SemanticAnchorFilter) Name() string + type SemanticAnchorLayerConfig struct + Enabled bool + Ratio float64 + Spacing int + type SemanticAnchorStats struct + NonAnchorPruned int + TokensSaved int + TotalAggregated int + TotalAnchors int + type SemanticChunk struct + Content string + EndLine int + Score float64 + StartLine int + Tokens int + Type ChunkType + type SemanticChunkConfig struct + ChunkMethod ChunkMethod + ImportanceThreshold float64 + MaxChunkSize int + MinChunkSize int + PreserveStructure bool + func DefaultSemanticChunkConfig() SemanticChunkConfig + type SemanticChunkFilter struct + func NewSemanticChunkFilter() *SemanticChunkFilter + func NewSemanticChunkFilterWithConfig(cfg SemanticChunkConfig) *SemanticChunkFilter + func (f *SemanticChunkFilter) Apply(input string, mode Mode) (string, int) + func (f *SemanticChunkFilter) Name() string + type SemanticChunkLayerConfig struct + Enabled bool + Method string + MinSize int + Threshold float64 + type SemanticEquivalence struct + func NewSemanticEquivalence() *SemanticEquivalence + func (s *SemanticEquivalence) Check(original, compressed string) EquivalenceReport + type SemanticFilter struct + func NewSemanticFilter() *SemanticFilter + func (f *SemanticFilter) Apply(input string, mode Mode) (string, int) + func (f *SemanticFilter) Name() string + type SemanticFilters struct + func NewSemanticFilters(cfg PipelineConfig) *SemanticFilters + func (s *SemanticFilters) Apply(input string, mode Mode, stats *PipelineStats) string + type SessionConfig struct + MaxEntries int + SessionFile string + type SessionHistory struct + ActivityLog []string + CommandsRun []string + Decisions []string + FilesEdited []string + FilesRead []string + UserQueries []string + type SessionStats struct + MultiOccurrences int + TotalOccurrences int + UniqueEntries int + type SessionTracker struct + func NewSessionTracker() *SessionTracker + func (f *SessionTracker) Apply(input string, mode Mode) (string, int) + func (f *SessionTracker) Clear() error + func (f *SessionTracker) Name() string + func (f *SessionTracker) Save() error + func (f *SessionTracker) Stats() SessionStats + type Severity string + const SeverityCritical + const SeverityHigh + const SeverityLow + const SeverityMedium + type SinkConfig struct + AnchorPatterns []string + Enabled bool + MinContentLength int + PreserveStructural bool + RecentTokenCount int + SinkTokenCount int + func DefaultSinkConfig() SinkConfig + type Sketch struct + CompressedInfo []byte + ContentType string + Importance float64 + OriginalHash string + TokenCount int + type SketchCache struct + Budget float64 + Stats SketchStats + TokenSketches map[string]*Sketch + type SketchEntry struct + Content string + Hash string + RevivalCount int + Revived bool + Sketch *Sketch + type SketchStats struct + TokensSaved int + TotalCompressed int + TotalRevived int + TotalSketches int + type SketchStoreConfig struct + BudgetRatio float64 + EnableRecovery bool + HeavyHitterRatio float64 + MaxSketchSize int + func DefaultSketchStoreConfig() SketchStoreConfig + type SketchStoreFilter struct + func NewSketchStoreFilter() *SketchStoreFilter + func NewSketchStoreFilterWithConfig(cfg SketchStoreConfig) *SketchStoreFilter + func (f *SketchStoreFilter) Apply(input string, mode Mode) (string, int) + func (f *SketchStoreFilter) Clear() + func (f *SketchStoreFilter) ExportSketches() ([]byte, error) + func (f *SketchStoreFilter) GetAllSketches() map[string]*Sketch + func (f *SketchStoreFilter) GetSketch(hash string) (*Sketch, bool) + func (f *SketchStoreFilter) GetStats() SketchStats + func (f *SketchStoreFilter) ImportSketches(data []byte) error + func (f *SketchStoreFilter) Name() string + func (f *SketchStoreFilter) Revive(sketchHash string) (string, bool) + type SketchStoreLayerConfig struct + BudgetRatio float64 + Enabled bool + HeavyHitter float64 + MaxSize int + type SlimInfer struct + func (s *SlimInfer) Apply(input string, mode Mode) (string, int) + type SlimInferFilter struct + func NewSlimInferFilter() *SlimInferFilter + func (f *SlimInferFilter) Apply(input string, mode Mode) (string, int) + func (f *SlimInferFilter) Name() string + type SmallKVCompensator struct + func NewSmallKVCompensator() *SmallKVCompensator + func (s *SmallKVCompensator) Apply(input string, mode Mode) (string, int) + func (s *SmallKVCompensator) Compensate(original, compressed string, mode Mode) string + func (s *SmallKVCompensator) Name() string + type SmallKVConfig struct + CheckContextContinuity bool + CheckSyntaxIntegrity bool + Enabled bool + MaxBridgeTokens int + MinContentLength int + func DefaultSmallKVConfig() SmallKVConfig + type SnapshotContext struct + CodeContext []CodeContext + Critical []string + KeyValue map[string]string + Working []string + type SoftBudget struct + func NewSoftBudget(l, o int) *SoftBudget + type StateSnapshot struct + Context SnapshotContext + CurrentState CurrentState + PendingPlan []Milestone + SessionHistory SessionHistory + type StoredEntry struct + Budget int + Command string + Compressed string + Hash string + LayerStats map[string]int + Mode string + Original string + OriginalHash string + Timestamp time.Time + type StreamConfig struct + ChunkSize int + Enabled bool + ParallelChunks bool + Threshold int + func DefaultStreamConfig() StreamConfig + type StreamingPipeline struct + func NewStreamingPipeline(cfg PipelineConfig) *StreamingPipeline + func (sp *StreamingPipeline) ProcessStream(r io.Reader, w io.Writer) (*PipelineStats, error) + type StreamingProcessor struct + func NewStreamingProcessor(coordinator *PipelineCoordinator) *StreamingProcessor + func (sp *StreamingProcessor) ProcessStream(input string) (string, *PipelineStats) + func (sp *StreamingProcessor) ProcessStreamReader(reader io.Reader, writer io.Writer) error + type StreamingResult struct + func NewStreamingResult() *StreamingResult + func (sr *StreamingResult) Close() + func (sr *StreamingResult) Receive() <-chan string + func (sr *StreamingResult) Send(s string) + type StructuralCollapse struct + func NewStructuralCollapse(cfg StructuralCollapseConfig) *StructuralCollapse + func (sc *StructuralCollapse) Process(content string) (string, int) + type StructuralCollapseConfig struct + CollapseAsserts bool + CollapseImports bool + Enabled bool + MaxRepeated int + func DefaultStructuralCollapseConfig() StructuralCollapseConfig + type StructuralCollapseFilter struct + func NewStructuralCollapseFilter() *StructuralCollapseFilter + func (f *StructuralCollapseFilter) Apply(input string, mode Mode) (string, int) + func (f *StructuralCollapseFilter) Name() string + type SummaryTier int + const TierL0 + const TierL1 + const TierL2 + type TDD struct + func (t *TDD) Apply(input string, mode Mode) (string, int) + type TDDConfig struct + Enabled bool + MaxReplacements int + MinSavings int + func DefaultTDDConfig() TDDConfig + type TDDStats struct + CompressedLen int + OriginalLen int + Replacements int + SavingsPct float64 + type TFIDFLayerConfig struct + Enabled bool + Threshold float64 + type TOMLPipelineConfig struct + Layers LayersSection + Pipeline PipelineSection + Safety SafetySection + type TOON struct + func (t *TOON) Apply(input string, mode Mode) (string, int) + type TOONConfig struct + Enabled bool + MaxColumns int + MinArrayLength int + PruneMetadata bool + StripLineNumbers bool + func DefaultTOONConfig() TOONConfig + type TOONEncoder struct + func NewTOONEncoder(cfg TOONConfig) *TOONEncoder + func (e *TOONEncoder) Encode(input string) (string, int, int, bool) + type TaskRunnerWrapping struct + func NewTaskRunnerWrapping(runner, filterCmd string) *TaskRunnerWrapping + func (trw *TaskRunnerWrapping) Wrap(content string) string + type TemplatePipe struct + func NewTemplatePipe(chain string) *TemplatePipe + func (tp *TemplatePipe) Process(input string) string + type TestInput struct + Content string + ContentType string + ExpectedMax float64 + ExpectedMin float64 + Name string + func GetBuiltinTestInputs() []TestInput + type ThinkSwitcher struct + func NewThinkSwitcher() *ThinkSwitcher + func (t *ThinkSwitcher) Apply(input string, mode Mode) (string, int) + type ThinkSwitcherFilter struct + func NewThinkSwitcherFilter() *ThinkSwitcherFilter + func (f *ThinkSwitcherFilter) Apply(input string, mode Mode) (string, int) + func (f *ThinkSwitcherFilter) Name() string + type Tier string + const ModeAnnihilate + const ModeDistill + const ModeRefine + const ModeSkim + const PresetAuto + const PresetBalanced + const PresetFast + const PresetFull + const ProfileBalanced + const ProfileChat + const ProfileCode + const ProfileFast + const ProfileLog + const ProfileMax + const TierAdaptive + const TierCode + const TierCore + const TierExtract + const TierLog + const TierSurface + const TierThread + const TierTrim + type TieredResult struct + L0 *L0Summary + L1 *L1Summary + L2 *L2Summary + type TieredSummaryFilter struct + func NewTieredSummaryFilter() *TieredSummaryFilter + func (tsf *TieredSummaryFilter) Apply(input string, mode Mode) (string, int) + func (tsf *TieredSummaryFilter) GenerateTiers(input string) *TieredResult + func (tsf *TieredSummaryFilter) Name() string + type Token struct + Layer int + Position int + Pruned bool + Revived bool + Score float64 + Text string + type TokenDenseDialect struct + func NewTokenDenseDialect(cfg TDDConfig) *TokenDenseDialect + func (tdd *TokenDenseDialect) Decode(input string) string + func (tdd *TokenDenseDialect) Encode(input string) (string, int) + func (tdd *TokenDenseDialect) EncodeWithStats(input string) (string, TDDStats) + type TrainedEvaluatorHeads struct + func NewTrainedEvaluatorHeads() *TrainedEvaluatorHeads + type Turn struct + Content string + Hash string + Role string + Timestamp time.Time + Tokens int + type VariableNGram struct + func NewVariableNGram(min, max int) *VariableNGram + type WenyanFilter struct + func NewWenyanFilter(mode WenyanMode) *WenyanFilter + func (w *WenyanFilter) Apply(input string, mode Mode) (string, int) + func (w *WenyanFilter) Name() string + type WenyanMode int + const WenyanFull + const WenyanLite + const WenyanUltra + type ZeroCopyBuffer struct + func GetBuffer() *ZeroCopyBuffer + func NewZeroCopyBuffer(capacity int) *ZeroCopyBuffer + func (z *ZeroCopyBuffer) Append(s string) + func (z *ZeroCopyBuffer) AppendByte(b byte) + func (z *ZeroCopyBuffer) Len() int + func (z *ZeroCopyBuffer) Reset() + func (z *ZeroCopyBuffer) String() string