Loci Guard

    by Dib68

    1

    Persistent project memory, security shielding, and risk forecasting for AI coding agents.

    $3

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Loci Guard

    Example session with this skill installed

    Initialize Loci Guard for this project and set a high priority rule that all database queries must use the existing db_client.py wrapper.

    • Read your context and instructions
    • Compiled the loci guard

    Loci Guard has been initialized in this repository. I have recorded the new architectural constraint for the project.

    Project Memory Initialized

    ActionEntityDetailsSeverity
    Setup.loci/Created project memory directoryINFO
    Constraintdb_wrapper_onlyAll database queries must use db_client.pyHIGH
    Intentionaudit_queriesCheck for direct SQL imports in existing filesMEDIUM

    The .loci/ folder is now tracking this repository. The new rule db_wrapper_only will be surfaced whenever I or other agents work on files in this project.

    Next steps

    1. Run loci-guard context to see the current active rule set.
    2. Use loci-guard check before saving any new database-related code to ensure compliance.
    3. Call loci-guard recall --search "database" if you need to reference the reasoning behind this decision later.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    AI coding agents often forget local project rules, repeat past mistakes, and accidentally commit secrets or vulnerable code. Loci Guard provides a persistent memory layer and security gate that stays with your repository across sessions and different agents.

    What it does

    • Persistent memory stores architectural decisions, project rules, and lessons learned in a .loci/ folder.
    • Security shielding scans code for secrets, PII leaks, SQL injection, and debug leftovers before they reach your files.
    • Foresight forecasting uses persona-based simulations to predict potential issues with wide-ranging or risky changes.
    • Context injection automatically feeds relevant folder-specific rules to the agent as it navigates the codebase.
    • Task intentions tracks location-aware to-dos that trigger when the agent enters specific directories.

    How it works

    1. Run loci-guard setup to initialize the memory store in your current repository.
    2. Use loci-guard context at the start of a session to load relevant rules and pending intentions.
    3. Use loci-guard constrain or remember to save new decisions or bug root causes as they occur.
    4. Run loci-guard check on code snippets or loci-guard gate on staged changes to block security violations.

    Frameworks & tools

    Requires Python 3.10 or higher. It operates as a CLI tool or an MCP server. It includes specific hooks for Claude Code and works with any agent capable of using shell tools or MCP.

    Why this beats prompting it yourself

    Manual prompts are lost when a session ends or context windows are cleared. This tool persists project-specific constraints in the repo itself, ensuring every subagent and future session follows the same security standards and architectural patterns without manual re-entry.

    Use cases

    • Enforcing specific API patterns or library choices across a large team.
    • Preventing the accidental commit of hardcoded credentials or PII.
    • Onboarding new agents to a complex codebase with "lessons learned" from past bugs.
    • Simulating the impact of major refactors using the foresight swarm.

    Known limitations

    Requires the loci-guard Python package to be installed in the environment. Foresight forecasts require additional subagent capacity.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 10 days ago

    Software
    PythonGit

    Permissions

    Terminal / Shell
    Write Files
    Read Files
    Network Access
    Environment Variables
    Listed10 days ago

    What's inside

    Creator

    Dib68

    Dib68

    Frequently Asked Questions

    Loci Guard acts as a persistent memory layer and security firewall that lives inside your repository. It prevents agents from repeating past bugs, forgetting project-specific architectural rules, or accidentally committing sensitive data like API keys.

    Loci Guard is compatible with any AI agent that supports shell commands or the Model Context Protocol (MCP), including Claude Code, Windsurf, and Cursor. It functions as a bridge that carries context between different sessions and even different agent tools.

    Setup is a one-time process: simply install the Python package via pip and run `loci-guard setup` in your repository root. This creates a local `.loci/` directory that stores your project’s unique constraints and security rules without cluttering your main codebase.

    The Foresight Forecasting feature uses a persona-based simulation to analyze proposed code changes. It identifies how a refactor in one directory might break dependencies or violate architectural patterns in another, providing a risk report before you apply the changes.

    You receive the full `loci-guard` Python package, the MCP server integration, and a set of pre-configured security hooks. Your purchase also includes access to future updates as we add new security signatures and agent integrations.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.