Skip to content
Merged
Show file tree
Hide file tree
Changes from 50 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
0586a7c
docs: update DevFlow description in ecosystem table
Mar 25, 2026
c07b1f0
docs: reposition as most intelligent context optimization engine
Mar 25, 2026
1b44a9a
refactor: split init.rs into module directory (wave/7 phase 0.1)
Mar 25, 2026
a638ca6
feat: expand AgentKind enum for multi-agent support (wave/7 phase 0.2)
Mar 25, 2026
69d72c3
feat: add HookProtocol trait + Claude Code implementation (wave/7 pha…
Mar 25, 2026
c277285
feat: add --agent flag to rewrite --hook mode (wave/7 phase 0.4)
Mar 25, 2026
09a39fb
feat: per-agent rules file output in learn command (wave/7 phase 0.5)
Mar 25, 2026
785ef5d
chore: add serde_yaml_ng dependency to rskim crate (wave/7 phase 0.6)
Mar 25, 2026
8d32add
fix: exclude already-rewritten skim commands from discover analysis (…
Mar 25, 2026
039acce
style: apply rustfmt to Phase 0 changes
Mar 25, 2026
9c751da
fix: address self-review issues
Mar 25, 2026
4d30a24
fix: add agent field to CorrectionPair and sanitize error_output (she…
Mar 25, 2026
f9ef746
feat: add Codex CLI session provider and awareness-only hook (wave/7)
Mar 25, 2026
4093ace
feat: add Gemini CLI session provider and hook protocol
Mar 25, 2026
15817b9
feat: add Copilot CLI session provider and hook integration (wave/7)
Mar 25, 2026
1846c1a
feat(wave/7): add Cursor session provider and hook integration
Mar 25, 2026
3cbecd2
feat: add OpenCode session provider and awareness hook (wave/7)
Mar 25, 2026
0389b64
docs: add TOML Filter DSL specification (#59)
Mar 25, 2026
b231c3a
feat: add `skim agents` command for multi-agent detection
Mar 25, 2026
cd9c967
fix: resolve merge conflicts and fix cli_name assertions for all agents
Mar 25, 2026
d9f50e0
feat(hooks): add SHA-256 hook integrity verification (#57)
Mar 25, 2026
b41d04b
test: add Phase 6 cross-agent integration tests (wave/7)
Mar 25, 2026
b721c51
fix(P0): redirect version mismatch stderr to hook log
Mar 25, 2026
8359568
feat(P0): wire HookProtocol dispatch for all agents
Mar 25, 2026
3c55a26
fix(P1): add SHA-256 integrity to skim agents
Mar 25, 2026
2f8a0c1
feat(P1): add hook self-timeout watchdog
Mar 25, 2026
54d3947
feat(P1): add plugin collision detection
Mar 25, 2026
3735009
feat(P1): add skim init --agent flag for multi-agent support
Mar 25, 2026
ee6a2da
fix(P2): session deduplication, awareness tracking, agent-not-found e…
Mar 25, 2026
62149ad
fix: address self-review issues
Mar 25, 2026
71a0a47
style: clarify dead_code annotations on HookProtocol trait and structs
Mar 25, 2026
b1c5971
style(hooks): standardize install/uninstall stub comments and test names
Mar 25, 2026
0e500e7
docs(rewrite): add SAFETY comment to watchdog process::exit(0)
Mar 25, 2026
2cb4584
fix: resolve batch-2 review issues (migration, depth limit, test asse…
Mar 25, 2026
b592f32
refactor(rewrite): extract should_warn_today rate-limit helper
Mar 26, 2026
e7aa5cd
refactor(rewrite): delegate resolve_hook_config_dir to init helper
Mar 26, 2026
489fcf3
refactor(agents): remove thread-unsafe unit test (covered by integrat…
Mar 26, 2026
8572bb5
refactor(session): flatten codex find_sessions with recursive helper
Mar 26, 2026
7de0ac6
refactor(agents): deduplicate hook detection via shared has_skim_hook…
Mar 26, 2026
b877e65
refactor(init): decompose patch_settings into focused helpers
Mar 26, 2026
7c34bb3
fix(learn): remove redundant create_dir_all before rename
Mar 26, 2026
38d9edd
perf(learn): optimize levenshtein to O(n) space with two-row DP
Mar 26, 2026
316d289
test(rewrite): remove 3 redundant per-agent zero-stderr tests
Mar 26, 2026
7cdf615
fix(init): add TOCTOU symlink guard and use dynamic agent name in mes…
Mar 26, 2026
3f74ac7
fix(agents): add settings.json size guard, use cached file_type, impr…
Mar 26, 2026
6f66768
docs(cli): document why discover and learn have different --since def…
Mar 26, 2026
df2004f
perf(session): short-circuit get_providers to detect only requested a…
Mar 26, 2026
eb9bd1f
fix(rewrite): thread AgentKind into hook checks and deduplicate days_…
Mar 26, 2026
3a67d94
style: simplify resolved code (remove trivial wrappers, inline calls)
Mar 26, 2026
de7fc9a
test(rewrite): add shell redirect integration tests
Mar 26, 2026
9642b35
fix(learn): reduce allocations and deduplicate sanitization logic
Mar 26, 2026
bf66fb3
fix(session): resolve batch-6 review findings in session/mod.rs
Mar 26, 2026
e054e9a
style: fix misleading test name and align discover.rs section separators
Mar 26, 2026
2c58b15
fix(security): validate binary path and add OpenCode session size guard
Mar 26, 2026
55ffd5a
fix(session): resolve batch-7 review findings in cursor and copilot p…
Mar 26, 2026
733b118
test: resolve batch-9 review findings across test suite
Mar 26, 2026
5333c98
fix(agents): add size guards, deduplicate home_dir, reduce nesting
Mar 26, 2026
305b597
fix(rewrite): update docs for multi-agent support, rotate audit log
Mar 26, 2026
29c66d3
refactor(hooks): deduplicate trait stubs, extract shared parser, impr…
Mar 26, 2026
02ede97
fix(rewrite): warn on unknown agent, document integrity guard, dedupl…
Mar 26, 2026
34257b2
style: simplify hooks (shared script generator) and remove redundant …
Mar 26, 2026
f986f73
refactor(agents): centralize path logic and split module by SRP (#95)
Mar 26, 2026
d684f92
style: apply cargo fmt
Mar 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,138 changes: 1,138 additions & 0 deletions .docs/design/toml-filter-dsl.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Skim: The Fastest, Most Comprehensive Context Optimization Tool for AI Coding Agents
# Skim: The Most Intelligent Context Optimization Engine for Coding Agents

> **Code skimming. Command rewriting. Test, build, and git output compression. Token budget cascading.** 12 languages. 14ms for 3,000 lines. Built in Rust.

Other tools skim code. Skim optimizes everything your AI agent touches: code, test output, build errors, git diffs, and raw commands. 14ms for 3,000 lines. 48x faster on cache hits. Nothing else comes close.
Other tools filter terminal noise. Skim understands your code. It parses ASTs across 12 languages, strips implementation while preserving architecture, then optimizes every other type of context your agent consumes: test output, build errors, git diffs, and raw commands. 14ms for 3,000 lines. 48x faster on cache hits.

[![Website](https://img.shields.io/badge/Website-skim-e87040)](https://dean0x.github.io/x/skim/)
[![CI](https://github.com/dean0x/skim/actions/workflows/ci.yml/badge.svg)](https://github.com/dean0x/skim/actions/workflows/ci.yml)
Expand All @@ -13,7 +13,7 @@ Other tools skim code. Skim optimizes everything your AI agent touches: code, te

## Why Skim?

**Context capacity is not the bottleneck. Attention is.** Every token you send to an LLM dilutes its focus. Research consistently shows attention dilution in long contexts -- models lose track of critical details even within their window. More tokens means higher latency, degraded recall, and weaker reasoning. Past a threshold, adding context makes outputs worse. While other tools stop at code skimming, Skim optimizes the full spectrum of AI agent context: code, test output, build errors, git diffs, and commands. Faster, broader, and smarter than anything else available.
**Context capacity is not the bottleneck. Attention is.** Every token you send to an LLM dilutes its focus. Research consistently shows attention dilution in long contexts -- models lose track of critical details even within their window. More tokens means higher latency, degraded recall, and weaker reasoning. Past a threshold, adding context makes outputs worse. While other tools stop at filtering command output, Skim parses your actual code structure and optimizes the full spectrum of agent context: code, test output, build errors, git diffs, and commands. Deeper, broader, and smarter than anything else available.

Take a typical 80-file TypeScript project: 63,000 tokens. That contains maybe 5,000 tokens of actual signal. The rest is implementation noise the model doesn't need for architectural reasoning.

Expand Down Expand Up @@ -603,8 +603,8 @@ Comprehensive guides for all aspects of Skim:

| Tool | Role | What It Does |
|------|------|-------------|
| **Skim** | Context Optimization | Compresses code, test output, build output, and git output for optimal LLM reasoning |
| **[DevFlow](https://github.com/dean0x/devflow)** | Quality Orchestration | 18 parallel reviewers, working memory, self-learning, production-grade lifecycle workflows |
| **Skim** | Context Optimization | Code-aware AST parsing across 12 languages, command rewriting, test/build/git output compression |
| **[DevFlow](https://github.com/dean0x/devflow)** | Quality Orchestration | 18 parallel reviewers, working memory, self-learning, composable plugin system |
| **[Backbeat](https://github.com/dean0x/backbeat)** | Agent Orchestration | Orchestration at scale. Karpathy optimization loops, multi-agent pipelines, DAG dependencies, autoscaling |

Skim optimizes every byte of context. DevFlow enforces production-grade quality. Backbeat scales execution across agents. No other stack covers all three.
Expand Down
2 changes: 1 addition & 1 deletion crates/rskim-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "1.0.0"
edition = "2021"
authors = ["Skim Contributors"]
license = "MIT"
description = "Core library for the fastest, most comprehensive context optimization tool for AI coding agents"
description = "Core library for the most intelligent context optimization engine for coding agents"
repository = "https://github.com/dean0x/skim"
readme = "README.md"
keywords = ["ast", "code-analysis", "tree-sitter", "llm"]
Expand Down
3 changes: 2 additions & 1 deletion crates/rskim/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "1.0.0"
edition = "2021"
authors = ["Skim Contributors"]
license = "MIT"
description = "The fastest, most comprehensive context optimization tool for AI coding agents. Code skimming, command rewriting, output compression."
description = "The most intelligent context optimization engine for coding agents. Code-aware AST parsing, command rewriting, output compression."
repository = "https://github.com/dean0x/skim"
readme = "README.md"

Expand All @@ -30,6 +30,7 @@ strip-ansi-escapes = { workspace = true }
regex = { workspace = true }
rusqlite = { workspace = true }
colored = { workspace = true }
serde_yaml_ng = { workspace = true }

[dev-dependencies]
assert_cmd = "2.0"
Expand Down
Loading
Loading