snek.share

snek.share is a command for coding agents from 4tyone/snek. It costs 8 tokens per session (2,968 once invoked), scanned A, original, Apache-2.0.

A command that exports the current Claude conversation into snek’s saved session context, including Markdown notes and code-file references.

In plain words
What is it for?
Use it to pass an active coding conversation to snek so it can continue with the project context.
Why use it?
It lets snek see the earlier work and decisions instead of relying only on the current conversation.

Command

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 commands/4tyone/snek/snek.share
Clone the repo
git clone --depth 1 https://github.com/4tyone/snek

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for snek.share

README.md
[![agentmods](https://agentmods.dev/badge/commands/4tyone/snek/snek.share.svg)](https://agentmods.dev/commands/4tyone/snek/snek.share)
Your own site
<a href="https://agentmods.dev/commands/4tyone/snek/snek.share"><img src="https://agentmods.dev/badge/commands/4tyone/snek/snek.share.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,968 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.00008 $0.02968
Opus 5 $0.00004 $0.01484
Sonnet 5 $0.00002 $0.00594
Haiku 4.5 $0.00001 $0.00297

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

Security

Grade A, and why

snek.share 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 5d 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.

templates/commands/snek.share.md · 406 lines

How it starts

The opening of the file, as written. The whole thing — 406 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Share Conversation with Snek

Export your current Claude conversation to snek's session system so snek can understand the full context of your work.


STEP 1: Find the Active Session

First, read .snek/active.json to find the current active session:

cat .snek/active.json

This file contains:

{
  "schema": 1,
  "id": "session-uuid-here",
  "path": "sessions/session-uuid-here"
}

The session directory is .snek/sessions/{id}/ where {id} is the UUID from the id field.

Example: If id is "b4c12a8f-5a92-4e92-8d3c-7f9a1c2e5b8a", the session directory is:

.snek/sessions/b4c12a8f-5a92-4e92-8d3c-7f9a1c2e5b8a/

STEP 2: Navigate to Session Context Folder

The session directory structure is:

.snek/sessions/{session-id}/
├── session.json           # Session metadata (don't edit)
├── code_snippets.json     # Code file references (you'll edit this)
└── context/               # Markdown context files (you'll add files here)
    ├── architecture.md
    ├── conventions.md
    └── ... (your new files)

Your target locations:

  • Markdown context: .snek/sessions/{session-id}/context/
  • Code references: .snek/sessions/{session-id}/code_snippets.json

STEP 3: Create/Update Markdown Context Files

Location: .snek/sessions/{session-id}/context/

3A. Check Existing Files

List all existing markdown files:

ls .snek/sessions/{session-id}/context/

Read each file to see what context is already documented. DO NOT duplicate information that's already there.

3B. Create New Context File(s)

Create a new markdown file with a descriptive name that reflects this conversation. Good names:

  • claude_conversation_2025_11_07.md
  • lsp_implementation_discussion.md
  • session_management_context.md

File naming rules:

  • Use lowercase with underscores
  • Be descriptive and specific
  • Files are read alphabetically, so prefix with numbers if order matters (e.g., 01_overview.md, 02_details.md)

Read the full file on GitHub · 406 lines

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. 5d ago First seen · 406 lines · 8 tokens per session scan A 95f9c9af179a

Subscribe to this mod's changes

snek.share is a command published in the GitHub repository 4tyone/snek (10 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 8 tokens to every session and 2,968 once invoked, about $0.0000 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.