#319 by GitHub stars

yvgude/lean-ctx

LeanCTX is the Context Gateway for AI Systems. Select task-relevant context, apply supported controls, connect local knowledge and inspect recorded evidence. Open-source Engine: CLI, MCP, hooks and supported proxy paths.

History

Review weekly changes to SKILL.md before updating. Dates mark the weeks in which we observed each version; checks apply to the recorded commits.

View weekly changes

rust/src/templates/SKILL.md

Week of Oct 26, 2026 · Line counts unavailable

Before Not checked yet → After Network or broad shell

First observation → d4b3ded1bf28

No earlier version was observed for comparison.

Compare on GitHub

skills/lean-ctx/SKILL.md

Week of Oct 26, 2026 · Line counts unavailable

Before Not checked yet → After Network or broad shell

First observation → d4b3ded1bf28

No earlier version was observed for comparison.

Compare on GitHub

skills/lean-ctx-review/SKILL.md

Week of Oct 26, 2026 · Line counts unavailable

Before Not checked yet → After Network or broad shell

First observation → d4b3ded1bf28

No earlier version was observed for comparison.

Compare on GitHub

View on GitHubAdd to my skills

Verified commit d4b3ded1bf2828b8e75fb2b20d2d7ec5f4b6a9d1

git clone --filter=blob:none --no-checkout https://github.com/yvgude/lean-ctx.git .hotskills/yvgude-lean-ctx && git -C .hotskills/yvgude-lean-ctx checkout --detach d4b3ded1bf2828b8e75fb2b20d2d7ec5f4b6a9d1 # Copy each selected skill directory from .hotskills/yvgude-lean-ctx into .claude/skills/<skill-name>/
git clone --filter=blob:none --no-checkout https://github.com/yvgude/lean-ctx.git .hotskills/yvgude-lean-ctx && git -C .hotskills/yvgude-lean-ctx checkout --detach d4b3ded1bf2828b8e75fb2b20d2d7ec5f4b6a9d1 # Copy each selected skill directory from .hotskills/yvgude-lean-ctx into .agents/skills/<skill-name>/
git clone --filter=blob:none --no-checkout https://github.com/yvgude/lean-ctx.git .hotskills/yvgude-lean-ctx && git -C .hotskills/yvgude-lean-ctx checkout --detach d4b3ded1bf2828b8e75fb2b20d2d7ec5f4b6a9d1 # Copy each selected skill directory from .hotskills/yvgude-lean-ctx into .cursor/skills/<skill-name>/
git clone --filter=blob:none --no-checkout https://github.com/yvgude/lean-ctx.git .hotskills/yvgude-lean-ctx && git -C .hotskills/yvgude-lean-ctx checkout --detach d4b3ded1bf2828b8e75fb2b20d2d7ec5f4b6a9d1 # Copy each selected skill directory from .hotskills/yvgude-lean-ctx into .github/skills/<skill-name>/
3.9kGitHub stars
22stars in 7 days
3skills in this repository
275commits in 30 days

Heat

6.1
  • Star growth, last 7 daysAhead of 73% of tracked repositories
  • Star growth, last 24 hoursAhead of 83% of tracked repositories
  • Rank movement, last 7 daysAhead of 30% of tracked repositories
  • Commits, last 30 daysAhead of 97% of tracked repositories
  • Accounts asking about it through MCP, last 7 daysNot available
  • Hot votes this weekAhead of 0% of tracked repositories

Heat never changes the order by stars, and sponsorship never touches it. How heat works

Stars over time

Aug 2, 2026Nov 6, 20263,933

Individual skills in this repository

How it works

lean-ctx

When your agent uses it

Use LeanCTX Context Gateway tools to select task-relevant code context, apply supported controls, reuse local knowledge and inspect recorded evidence. Use when lean-ctx MCP tools (ctx_*) are available or file, search or command output needs a focused view.

What it loads into context

Frontmatter

59 tokens

Always available to the agent

SKILL.md

1,077 tokens

When the skill is activated

Reference documents

4,460 tokens

Loaded on request

Token counts are estimates. Scripts run separately; they are not counted as reference context.

The playbook

  1. Intent → tool
  2. Deferred tools (ToolSearch)
  3. Long-running commands
  4. Truncated output
  5. Without MCP (CLI)
  6. Setup

Scripts executed separately

  • ../../../integrations/claude-code-mod/types/index.d.ts
  • claude_mod/cockpit.d.ts
  • claude_mod/cockpit.tsx
  • claude_mod/register.ts
  • claude_mod/render.tsx
  • skill_install.sh
  • ../../../skills/lean-ctx-review/scripts/scan_session.py
  • ../../../skills/lean-ctx/scripts/install.sh

Files

  • ../../../.claude-plugin/manifest.jsonasset1,134 bytes
  • ../../../.github/hooks/hooks.jsonasset763 bytes
  • ../../../integrations/claude-code-mod/.claude-plugin/marketplace.jsonasset458 bytes
  • ../../../integrations/claude-code-mod/.claude-plugin/plugin.jsonasset2,909 bytes
  • ../../../integrations/claude-code-mod/hooks/hooks.jsonasset35 bytes
  • ../../../integrations/claude-code-mod/types/index.d.tsruns3,354 bytes
  • ../../.github/hooks/hooks.jsonasset281 bytes
  • CLAUDE.mddoc2,223 bytes
  • CLAUDE_GLOBAL.mddoc1,626 bytes
  • PI_AGENTS.mddoc1,975 bytes
  • PI_AGENTS_REPLACE.mddoc1,265 bytes
  • SKILL.mdcore4,338 bytes
  • SKILL.mdcore4,338 bytes
  • SKILL.mdcore4,338 bytes
  • SKILL.mdcore4,338 bytes
  • SKILL.mdcore4,338 bytes
  • SKILL.mdcore4,338 bytes
  • claude_mod/cockpit.d.tsruns3,354 bytes
  • claude_mod/cockpit.tsxruns63,872 bytes
  • claude_mod/hooks.jsonasset35 bytes
  • claude_mod/plugin.jsonasset2,909 bytes
  • claude_mod/register.tsruns39,446 bytes
  • claude_mod/render.tsxruns14,408 bytes
  • skill_install.shruns2,468 bytes
  • windsurfrules.txtdoc1,307 bytes
  • ../../../skills/lean-ctx-review/SKILL.mddoc6,443 bytes
  • ../../../skills/lean-ctx-review/scripts/scan_session.pyruns5,975 bytes
  • ../../../skills/lean-ctx/SKILL.mddoc4,338 bytes
  • ../../../skills/lean-ctx/scripts/install.shruns2,468 bytes
Read SKILL.md

# LeanCTX — Context Gateway for AI Systems

Control what your AI can see. LeanCTX Engine provides local context selection,
supported access and content controls, and evidence of observed context operations
for existing agents: Select → Control → Learn → Prove. Learn means local task and
knowledge continuity, not model training. Recovery depends on source or
archive availability and access permissions. LeanCTX SDK is the separate
integration surface for applications.

lean-ctx shapes context before it reaches you: cached reads, compressed shell
output, focused search, recovery to exact source. Two rules beat every detail:

1. **Fewer round trips beat smaller outputs.** One call that answers the
   question is cheaper than three small ones. Never add a call just to save a
View the complete source on GitHub

Skills included

  • lean-ctx
  • lean-ctx
  • lean-ctx-review

Repository facts

License
Apache-2.0
Created
Mar 23, 2026
Last pushed
Nov 5, 2026
Forks
364
Open issues
13
Project activity
Active

Rank over the last 12 weeks

Now #319 · best #247 · down 39 in 30 days

  1. #308 on Oct 30
  2. #313 on Oct 31
  3. #314 on Nov 1
  4. #315 on Nov 2
  5. #318 on Nov 3
  6. #319 since Nov 4
72 earlier periods
  1. #241 on Aug 2
  2. #241 on Aug 7
  3. #242 on Aug 8
  4. #240 on Aug 9
  5. #248 on Aug 10
  6. #244 on Aug 11
  7. #242 on Aug 12
  8. #247 on Aug 13
  9. #248 on Aug 14
  10. #247 on Aug 15
  11. #249 from Aug 16 to Aug 17
  12. #255 on Aug 18
  13. #253 on Aug 19
  14. #249 on Aug 20
  15. #250 on Aug 21
  16. #248 on Aug 22
  17. #253 from Aug 23 to Aug 24
  18. #255 on Aug 25
  19. #256 on Aug 26
  20. #259 on Aug 27
  21. #255 on Aug 28
  22. #256 on Aug 29
  23. #254 on Aug 30
  24. #260 on Aug 31
  25. #261 on Sep 1
  26. #259 on Sep 2
  27. #265 on Sep 3
  28. #257 on Sep 4
  29. #259 on Sep 5
  30. #256 on Sep 6
  31. #261 on Sep 7
  32. #258 from Sep 8 to Sep 9
  33. #259 on Sep 10
  34. #261 from Sep 11 to Sep 12
  35. #266 from Sep 13 to Sep 14
  36. #265 on Sep 15
  37. #264 on Sep 16
  38. #263 on Sep 17
  39. #265 on Sep 18
  40. #263 on Sep 19
  41. #267 on Sep 20
  42. #270 on Sep 21
  43. #269 from Sep 22 to Sep 23
  44. #270 on Sep 24
  45. #267 on Sep 26
  46. #270 on Sep 27
  47. #275 on Sep 28
  48. #276 on Sep 29
  49. #274 on Sep 30
  50. #276 on Oct 1
  51. #280 on Oct 2
  52. #270 on Oct 4
  53. #277 on Oct 5
  54. #279 on Oct 6
  55. #280 on Oct 7
  56. #282 on Oct 8
  57. #283 on Oct 10
  58. #282 on Oct 11
  59. #287 on Oct 12
  60. #288 on Oct 13
  61. #286 from Oct 14 to Oct 16
  62. #288 on Oct 17
  63. #287 on Oct 18
  64. #291 on Oct 19
  65. #290 on Oct 20
  66. #294 on Oct 21
  67. #295 on Oct 22
  68. #294 on Oct 23
  69. #298 on Oct 24
  70. #302 on Oct 25
  71. #304 on Oct 28
  72. #307 on Oct 29

Before you install

Network or broad shell

Automated signals, not a guarantee

Checked Nov 2, 2026

Not fully analyzed: some files were too long, unreadable or missing. This never lowers the level.

Show 14 notes
  • rust/src/templates/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • rust/src/templates/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • rust/src/templates/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • rust/src/templates/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • rust/src/templates/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • skills/lean-ctx/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • skills/lean-ctx/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • skills/lean-ctx/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • skills/lean-ctx/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • skills/lean-ctx/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • skills/lean-ctx-review/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • skills/lean-ctx-review/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • skills/lean-ctx-review/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
  • skills/lean-ctx-review/SKILL.md:1 Analysis incomplete: Referenced executable target unavailable; not analyzed
Show all 47 signals by file

.claude-plugin/manifest.json

  • Network accessline 3
    "version": "3.3.6",   "description": "LeanCTX Engine integration for the Context Gateway for AI Systems — select context, apply supported controls, and inspect context-operation evidence.",   "homepage": "https://leanctx.com",
  • Network accessline 4
    "description": "LeanCTX Engine integration for the Context Gateway for AI Systems — select context, apply supported controls, and inspect context-operation evidence.",   "homepage": "https://leanctx.com",   "repository": "https://github.com
  • Network accessline 5
    "homepage": "https://leanctx.com",
  • Network accessline 6
    "repository": "https://github.com/yvgude/lean-ctx",
  • Network accessline 7
    "license": "Apache-2.0",   "install": {     "command": "curl -fsSL https://leanctx.com/install.sh | sh",
  • Network accessline 8
    "install": {     "command": "curl -fsSL https://leanctx.com/install.sh | sh",     "alternatives": {
  • Dangerous shell operationline 9
    "command": "curl -fsSL https://leanctx.com/install.sh | sh",
  • Network accessline 9
    "command": "curl -fsSL https://leanctx.com/install.sh | sh",

integrations/claude-code-mod/types/index.d.ts

  • Executable scriptline 1
    Executable file

rust/src/templates/SKILL.md

  • Dangerous shell operationline 78
    which lean-ctx || curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
  • Network accessline 78
    which lean-ctx || curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
  • Network accessline 83
    Docs: https://leanctx.com/docs

rust/src/templates/claude_mod/cockpit.d.ts

  • Executable scriptline 1
    Executable file

rust/src/templates/claude_mod/cockpit.tsx

  • Executable scriptline 1
    Executable file

rust/src/templates/claude_mod/register.ts

  • Executable scriptline 1
    Executable file

rust/src/templates/claude_mod/render.tsx

  • Executable scriptline 1
    Executable file

rust/src/templates/skill_install.sh

  • Executable scriptline 1
    #!/usr/bin/env bash
  • Network accessline 31
    latest_version() {     curl -fsSL "https://api.github.com/repos/${REPO}/releases/latest" \
  • Network accessline 32
    curl -fsSL "https://api.github.com/repos/${REPO}/releases/latest" \
  • Network accessline 37
    local platform="$1" version="$2"     local asset="lean-ctx-${platform}"     local url="https://github.com/${REPO}/releases/download/v${version}/${asset}.tar.gz"
  • Network accessline 39
    local url="https://github.com/${REPO}/releases/download/v${version}/${asset}.tar.gz"
  • Dangerous shell operationline 44
    trap 'rm -rf "$tmp"' EXIT
  • Network accessline 46
    curl -fsSL "$url" -o "${tmp}/lean-ctx.tar.gz"

skills/lean-ctx-review/SKILL.md

  • Network accessline 8
    Upstream repo: `yvgude/lean-ctx` (https://github.com/yvgude/lean-ctx).
  • Network accessline 8
    Upstream repo: `yvgude/lean-ctx` (https://github.com/yvgude/lean-ctx).

skills/lean-ctx-review/scripts/scan_session.py

  • Executable scriptline 1
    #!/usr/bin/env python3
  • Executable scriptline 1
    #!/usr/bin/env python3

skills/lean-ctx/SKILL.md

  • Dangerous shell operationline 78
    which lean-ctx || curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
  • Dangerous shell operationline 78
    which lean-ctx || curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
  • Network accessline 78
    which lean-ctx || curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
  • Network accessline 78
    which lean-ctx || curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
  • Network accessline 83
    Docs: https://leanctx.com/docs
  • Network accessline 83
    Docs: https://leanctx.com/docs

skills/lean-ctx/scripts/install.sh

  • Executable scriptline 1
    #!/usr/bin/env bash
  • Executable scriptline 1
    #!/usr/bin/env bash
  • Network accessline 31
    latest_version() {     curl -fsSL "https://api.github.com/repos/${REPO}/releases/latest" \
  • Network accessline 31
    latest_version() {     curl -fsSL "https://api.github.com/repos/${REPO}/releases/latest" \
  • Network accessline 32
    curl -fsSL "https://api.github.com/repos/${REPO}/releases/latest" \
  • Network accessline 32
    curl -fsSL "https://api.github.com/repos/${REPO}/releases/latest" \
  • Network accessline 37
    local platform="$1" version="$2"     local asset="lean-ctx-${platform}"     local url="https://github.com/${REPO}/releases/download/v${version}/${asset}.tar.gz"
  • Network accessline 37
    local platform="$1" version="$2"     local asset="lean-ctx-${platform}"     local url="https://github.com/${REPO}/releases/download/v${version}/${asset}.tar.gz"
  • Network accessline 39
    local url="https://github.com/${REPO}/releases/download/v${version}/${asset}.tar.gz"
  • Network accessline 39
    local url="https://github.com/${REPO}/releases/download/v${version}/${asset}.tar.gz"
  • Dangerous shell operationline 44
    trap 'rm -rf "$tmp"' EXIT
  • Dangerous shell operationline 44
    trap 'rm -rf "$tmp"' EXIT
  • Network accessline 46
    curl -fsSL "$url" -o "${tmp}/lean-ctx.tar.gz"
  • Network accessline 46
    curl -fsSL "$url" -o "${tmp}/lean-ctx.tar.gz"

How the signals fit together

Facts from a static read of the files at the pinned commit. They describe what the code does, not why.

Some files could not be read; the facts below still hold.

Signal confidence: 39 facts

Works with

Agent compatibility, from the files in this repository
AgentStatusEvidenceInstall to
Claude CodeNativeManifest integrations/claude-code-mod/.claude-plugin/plugin.json.claude/skills/<skill-name>/
CodexNativeManifest AGENTS.md.agents/skills/<skill-name>/
CursorNativePath .cursor/rules/compression-safety.mdc.cursor/skills/<skill-name>/
Gemini CLICompatibleStandard SKILL.md rust/src/templates/SKILL.md.gemini/skills/<skill-name>/
GitHub CopilotNativeManifest .github/copilot-instructions.md.github/skills/<skill-name>/
OpenCodeCompatibleStandard SKILL.md rust/src/templates/SKILL.md.opencode/skills/<skill-name>/
  • Native The repository ships a manifest, folder or frontmatter field for this agent.
  • Compatible A standard SKILL.md that this agent can read.
  • Unknown No evidence either way.

Derived automatically from paths, manifests and frontmatter. Not tested on each agent.

Explore alternatives and comparisons

Add this badge to your README

It updates every night and links to this page.

yvgude/lean-ctx: #319 on hotskills, 3.9k stars

[![yvgude/lean-ctx on hotskills](https://hotskills.dev/badge/yvgude-lean-ctx.svg)](https://hotskills.dev/skill/yvgude-lean-ctx/)