session-context

A short session-start and session-close procedure for using Notepad++ through an MCP server, a standard connection that lets an AI assistant call editor tools.

In plain words
What is it for?
Use it to check Notepad++ health, inspect the current file, save named sessions, and run Python linting before declaring code complete.
Why use it?
It helps ensure the editor is reachable, the active document is understood, and workspace changes are saved when needed.

Skill for Claude CodeCodex

Install

Getting it into your agent

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

agentmods
npx agentmods add skills/sandraschi/notepadpp-mcp/session-context
Any agent
npx skills add sandraschi/notepadpp-mcp --skill session-context
Clone the repo
git clone --depth 1 https://github.com/sandraschi/notepadpp-mcp

Made for: Claude Code, Codex.

Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 183 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

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

ModelPer sessionOnce invoked
Fable 5 $0.00025 $0.00183
Opus 5 $0.00013 $0.00092
Sonnet 5 $0.00005 $0.00037
Haiku 4.5 $0.00003 $0.00018

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

Security

Grade A, and why

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

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

Nothing flagged

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

.opencode/skills/session-context/SKILL.md · 19 lines

What it actually says

Session Context (Notepad++ MCP)

You have access to an MCP server that automates Notepad++ on Windows: file_ops, text_ops, tab_ops, session_ops, linting_ops, display_ops, plugin_ops, status_ops (portmanteau tools with an operation enum).

Before starting work:

  1. Check the editor is reachable: status_ops(operation="health_check")
  2. Inspect the active document: file_ops(operation="info")

At end of work, persist state:

  • Save the workspace when asked: session_ops(operation="save", session_name="...")
  • Lint before declaring code done: linting_ops(operation="python", file_path="...")
Changes

What this file has done since we first saw it

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

  1. 2d ago First seen · 19 lines · 25 tokens per session scan A 2e8364cefb09

Subscribe to this mod's changes

session-context is a skill published in the GitHub repository sandraschi/notepadpp-mcp (5 stars, last pushed 13d ago), licensed MIT. It adds 25 tokens to every session and 183 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

heap-snapshot-analysis

Analyze V8 heap snapshots to investigate memory leaks and retention issues. Use when given .heapsnapshot files, asked to compare before/after snapshots, asked to find what retains objects, or investigating why objects survive GC. Provides snapshot parsing, comparison, retainer-path helpers, and scratchpad scripts.

microsoft/vscode · 65 tokens

integrated-browser

Use this when working on the VS Code integrated browser ("browserView") to understand its architecture and mental model. Covers the embedded Chromium browser, its editor tab, navigation, overlay/layout, sessions, and agent browser tools under src/vs/platform/browserView and src/vs/workbench/contrib/browserView.

microsoft/vscode · 68 tokens

agent-host-e2e-tests

Use when writing, recording, updating, or troubleshooting the agent host end-to-end tests under src/vs/platform/agentHost/test/node/e2e (black-box tests that drive the whole agent host over the AHP protocol, using a CapiReplayProxy record/replay system for Claude/Copilot/Codex). Covers adding a cross-provider test…

microsoft/vscode · 104 tokens

agent-host-logs

Analyze Agent Host debug log exports. Use when given an ah-logs or ahp-logs zip/folder, an Export Agent Host Debug Logs bundle, events.jsonl, AHP JSONL transport logs, Agent Host.log, remote-agenthost.log, or copilot-logs.

microsoft/vscode · 62 tokens

reviewing-code

Review code for quality, maintainability, and correctness. Use when reviewing pull requests, evaluating code changes, or providing feedback on implementations. Focuses on API design, patterns, and actionable feedback.

PrefectHQ/fastmcp · 43 tokens