loctree-context

loctree-context is a skill for Claude Code, Codex from Loctree/loctree. It costs 117 tokens per session (837 once invoked), scanned A, original, no licence file.

A project-orientation tool that creates a six-part context atlas for the current codebase. The cards cover the project's core, structure, runtime, remembered context, verification checks, and risks.

In plain words
What is it for?
Use it at the start of a session, when entering an unfamiliar repository, planning a refactor, or reviewing the project's checks and risk areas.
Why use it?
It helps an agent understand an unfamiliar repository before making changes. It also restores important project context after a session is cleared or compacted.

Skill for Claude CodeCodex

Part of the loctree plugin — 10 skills, 3 agents, 2 MCP servers shipped together

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/loctree/loctree/loctree-context
Any agent
npx skills add Loctree/loctree --skill loctree-context
Clone the repo
git clone --depth 1 https://github.com/Loctree/loctree

Made for: Claude Code, Codex.

Or install loctree, the plugin that ships this one along with the rest of its 10 skills, 3 agents, 2 MCP servers.

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 loctree-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/loctree/loctree/loctree-context.svg)](https://agentmods.dev/skills/loctree/loctree/loctree-context)
Your own site
<a href="https://agentmods.dev/skills/loctree/loctree/loctree-context"><img src="https://agentmods.dev/badge/skills/loctree/loctree/loctree-context.svg" alt="Measured on agentmods" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 837 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.1 $0.00117 $0.00837
Opus 5 $0.00059 $0.00418
Sonnet 5 $0.00023 $0.00167
Haiku 4.5 $0.00012 $0.00084

Measured 5d ago against content hash 4d3a2006aba2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

loctree-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 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.

loctree-plugin/skills/loctree-context/SKILL.md · 68 lines

The source is not reproduced here

A licence we could not identify

The repository carries a LICENSE file, but it is custom or dual enough that GitHub cannot name it and neither can this catalogue. Unknown terms are not permission, so the body is not copied here. Read the licence at the source and decide for yourself.

Read it on GitHub

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 · 68 lines · 117 tokens per session scan A 4d3a2006aba2

Subscribe to this mod's changes

loctree-context is a skill published in the GitHub repository Loctree/loctree (9 stars, last pushed 2d ago), with no licence file. It adds 117 tokens to every session and 837 once invoked, about $0.0006 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

knowledge-base

Create and maintain a Markdown knowledge base that any AI agent can read, search, and update. Use when the user wants to start a knowledge base, add or update notes, organize docs/notes for an agent or LLM to consume, build an index of notes, or run a cleanup/maintenance pass on an existing MD knowledge base. Triggers…

wonderwhy-er/DesktopCommanderMCP · 112 tokens

obsidian-vault

Organize Obsidian vaults with MOCs, wikilinks, frontmatter/properties, dashboards, orphan-note checks, and cleanup workflows. Use ONLY when the user explicitly refers to Obsidian — by naming "Obsidian", an Obsidian "vault", or an Obsidian-specific feature such as wikilinks ("[[ ]]"), the Dataview or Bases plugins, or…

wonderwhy-er/DesktopCommanderMCP · 171 tokens

echo

Use when the user references past sessions, asks 'what did we do', 'do you remember', 'last session', 'recall', or 'continue from'.

cwinvestments/memstack · 35 tokens

compress

Use when the user says 'tokenstack', 'compression', 'token savings', 'proxy status', or asks about context window usage.

cwinvestments/memstack · 29 tokens

token-optimization

Use when the user says 'token optimization', 'save tokens', 'context window', 'reduce tokens', 'token stack', or 'TokenStack', or asks about extending context window capacity. Covers TokenStack, the built-in compression proxy that shrinks Claude Code tool output before it reaches the Anthropic API. Do NOT use for…

cwinvestments/memstack · 79 tokens

state

Use when the user says 'update state', 'project state', 'where was I', or at session start to load current context.

cwinvestments/memstack · 29 tokens