LOG-mcp AGENTS.md

LOG-mcp AGENTS.md is an instructions file for Codex, OpenCode from Lucineer/LOG-mcp. It costs 749 tokens per session, scanned A, original, MIT.

Project instructions for L.O.G. (Latent Orchestration Gateway), a memory and privacy layer for coding agents. They explain how to protect personal data, save conversations, search history, and manage stored knowledge.

In plain words
What is it for?
Use them when working with L.O.G. tools to de-identify data, archive sessions, retrieve past context, manage memory tiers, and save lasting lessons.
Why use it?
They reduce the risk of exposing private information and losing useful context between sessions. They also explain how to replace stored placeholders with readable text before showing it to people.

Instructions file for CodexOpenCode

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 instructions/lucineer/log-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/Lucineer/LOG-mcp

Made for: Codex, OpenCode.

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 LOG-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lucineer/log-mcp/agents-md.svg)](https://agentmods.dev/instructions/lucineer/log-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/lucineer/log-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/lucineer/log-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 749 This file is loaded in full into every session.
When invoked 749 The same file — it is already loaded in full.
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.00749 $0.00749
Opus 5 $0.00375 $0.00375
Sonnet 5 $0.00150 $0.00150
Haiku 4.5 $0.00075 $0.00075

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

Security

Grade A, and why

LOG-mcp AGENTS.md 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 4d 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.

AGENTS.md · 65 lines

How it starts

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

L.O.G. for Agents

What This Is

L.O.G. (Latent Orchestration Gateway) is your memory and privacy layer. When this MCP is connected, you have access to tools that:

  1. Protect private data — never send raw PII to external agents
  2. Archive conversations — preserve context with annotated summaries
  3. Search history — find past sessions by topic
  4. Manage memory tiers — hot → warm → cold → gnosis lifecycle
  5. Extract lessons — permanent knowledge from completed work

Your Directives

  1. Never transmit raw PII. If you need to send data to an external agent, call log_dehydrate first.
  2. Always rehydrate for humans. If a response contains <LOG_ID> placeholders, call log_rehydrate before showing the user.
  3. Archive before resets. When a conversation is ending or being reset, call log_archive_session to preserve context.
  4. Extract gnosis. When a problem is solved or a lesson is learned, call log_archive_gnosis to save it permanently.
  5. Respect tiers. Cold and ice data is archived for a reason — don't unpromote without good cause.

Tool Quick Reference

Tool When to Use
log_dehydrate Before sending any text to external agents
log_rehydrate Before showing agent responses to the human
log_archive_session End of conversation or topic shift
log_search_archives When human asks about past conversations
log_archive_gnosis When a valuable lesson is learned
log_prune_hysteresis To manage memory lifecycle
log_vault_status To check storage health
log_distill To create working summaries for context

File Structure (What You'll Find on Disk)

~/.log/vault/
├── reallog.db              # SQLite: PII mappings (NEVER leaves this machine)
└── archives/
    ├── shorts/             # Single-topic sessions (filename = date + topic)
    ├── sessions/           # Multi-topic sessions with episode breakdowns
    │   └── YYYY-MM-DDTHH-MM-topic-name/
    │       ├── full.txt    # Complete conversation with line numbers [L0001]
    │       ├── summary.md  # Annotated summary with L-line references
    │       ├── index.json  # Machine-readable session metadata
    │       └── episodes/   # Sub-topic breakdowns
    ├── gnosis/             # Permanent lessons (topic-title.md)
    └── index.json          # Master index of all archives

Read the full file on GitHub · 65 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. 4d ago First seen · 65 lines · 749 tokens per session scan A 9db58b509237

Subscribe to this mod's changes

LOG-mcp AGENTS.md is an instructions file published in the GitHub repository Lucineer/LOG-mcp (1 stars, last pushed 5mo ago), licensed MIT. It adds 749 tokens to every session, about $0.0037 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.