Agentic storage
Skill mahmoud20138/Tradecraft/plugins/tradecraft/skills/agentic-storage
102 Claude Code skills across 7 categories -- trading strategies, Azure, VSCode extensions, AI prompts, and custom automation skills
npx -y skills add mahmoud20138/Tradecraft --skill agentic-storageAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Agentic storage architecture — persistent memory for AI agents using MCP, immutable versioning, sandboxing, and intent validation. Covers the stateless problem in LLM agents, RAG limitations (read-only), MCP protocol (JSON-RPC, resources, tools), storage safety layers, and agent file system design. Source: IBM Technology (Martin Keen), March 2026. Use this skill for "agentic storage", "agent memory", "persistent agent state", "MCP storage", "agent file system", "agent hard drive", "stateless agent problem", "agent work product", "immutable versioning", "agent sandboxing", "intent validation", "agent safety layers", "agent context window limits", "storage for AI agents", "agent persistence", "autonomous agent storage", "agent audit trail". Works with mcp-integration, trading-brain, agents, trade-psychology-coach.
SKILL.md
10.2 KB, as published. Nobody here has run it
Agentic Storage — Persistent Memory for AI Agents
Source: IBM Technology — Martin Keen (March 2026). "What Is Agentic Storage? Solving AI's Limits with LLMs & MCP." 51K+ views.
The Problem: Agents Are Stateless
AI agents powered by LLMs have a fundamental limitation:
Agent Session
│
├── Context Window = RAM (volatile, temporary)
│
└── Session ends → Memory resets → Agent forgets everything
- The context window is like RAM — volatile, temporary storage
- When a session ends or the context fills up, the agent's memory resets completely
- The agent forgets what it did, what it produced, what it learned
RAG Only Partially Helps
RAG (Retrieval Augmented Generation) connects the LLM to a vector database for semantic search.
But RAG is fundamentally read-only:
| Problem | RAG Solves? |
|---|---|
| Getting information INTO the model (input) | Yes |
| Persisting agent work products (output) | No |
If your agent writes a Python script, creates a remediation playbook, or generates a report — where does that work product actually go? RAG doesn't answer this.
What Is Agentic Storage?
Storage that is aware of and designed for autonomous agents.
It's more than giving an agent a hard drive. It's a storage layer purpose-built for AI agents:
- Persists work products between sessions (code, playbooks, reports, analysis)
- Standardized access via MCP (no custom API integrations per storage system)
- Safety layers built in for autonomous operation
- Audit trail for every agent action
The Analogy
| Concept | Human Computer | AI Agent |
|---|---|---|
| Volatile memory | RAM | Context window |
| Persistent storage | Hard drive / SSD | Agentic storage |
| File system | OS file system | MCP server |
| Access control | User permissions | Sandboxing + intent validation |
MCP as the Storage Interface
The Problem with Custom Integrations
Without MCP, you'd write custom API integrations for every storage system:
Agent
├── Custom API → Object Storage (S3, etc.)
├── Custom API → Block Storage
└── Custom API → NAS (Network Attached Storage)
Each has different APIs, data models, authentication mechanisms. Doesn't scale.
MCP Architecture
The industry is converging on the Model Context Protocol (MCP):
┌─────────────────────────────┐
│ MCP HOST │
│ (AI application / agent) │
└──────────┬──────────────────┘
│ MCP Protocol (JSON-RPC)
┌──────────▼──────────────────┐
│ MCP SERVER │
│ (Storage layer) │
│ Uniform interface │
└──────────┬──────────────────┘
┌─────┼─────┐
│ │ │
Object Block NAS
Storage Storage
The agent doesn't care what's underneath. It calls MCP tools, the server handles translation.
Two Key MCP Primitives
1. Resources (Passive Data)
- File contents, database records, configuration data
- Conceptually similar to RAG, but standardized
- Agent requests resources when it needs context
2. Tools (Executable Functions)
list_directory— browse available filesread_file— read file contentswrite_file— persist work productscreate_snapshot— checkpoint current state- Agent invokes tools, MCP server handles underlying storage translation
Three Safety Layers (Essential for AI Agents)
"These layers might be overkill for humans, but they're essential for AI."
Agents can hallucinate, misinterpret instructions, and take actions that seem logical in isolation but are catastrophic in context. These safety layers protect against that.
1. Immutable Versioning
Agent writes file v1
Agent writes file v2 (v1 is preserved, NOT overwritten)
Agent writes file v3 (v1, v2 preserved)
Result: Complete audit trail + rollback capability
- Every write operation creates a new version rather than overwriting
- Agent can never truly delete data — only archive it
- Full audit trail of every change
- Ability to roll back any action to any previous version
2. Sandboxing
Agent's allowed scope:
/app/logs/ ← CAN access
/app/temp/ ← CAN access
Agent's forbidden scope:
/system/binaries/ ← BLOCKED
/etc/config/ ← BLOCKED
/other/apps/ ← BLOCKED
- Agent operates within a constrained environment
- Access limited to specific directories and specific operations
- Prevents the "confused deputy problem": an agent with broad permissions getting tricked into acting outside its intended scope
- Example: Agent managing application logs has NO path to system binaries
3. Intent Validation
Agent: "I want to delete these files"
Storage: "WHY?"
Agent: "Because they're older than 90 days and match the retention policy"
Storage: [Verifies claim against policy] → Proceeds or Blocks
- Before executing high-impact operations, storage requires the agent to explain WHY
- Agent generates a reasoning chain (chain of thought) justifying the action
- Storage layer verifies the claim before proceeding
- Leverages what agents are good at: generating reasoning chains is right in the agentic AI wheelhouse
Implementation Patterns
Pattern 1: Agent Work Product Persistence
# Agent produces work during session
work_product = agent.run_task("Write remediation playbook for incident #1234")
# Instead of losing this when session ends:
mcp_client.call_tool("write_file", {
"path": "/agent/work/remediation_1234.md",
"content": work_product,
"metadata": {
"agent_id": "incident-agent-01",
"task": "remediation",
"incident": "1234",
"timestamp": "2026-03-16T10:00:00Z"
}
})
# Next session, agent can retrieve its own previous work:
previous_work = mcp_client.read_resource("/agent/work/remediation_1234.md")
Pattern 2: Cross-Session Memory
# Session 1: Agent learns something
insight = "EURUSD tends to reverse at London open after Asian range"
mcp_client.call_tool("write_file", {
"path": "/agent/memory/patterns/eurusd_london_reversal.json",
"content": json.dumps({
"pattern": insight,
"confidence": 0.72,
"observations": 15,
"last_seen": "2026-03-16"
})
})
# Session 2: Different agent (or same agent, new session) retrieves it
patterns = mcp_client.call_tool("list_directory", {"path": "/agent/memory/patterns/"})
for p in patterns:
data = mcp_client.read_resource(p)
# Agent now has persistent cross-session memory
Pattern 3: Safe Deletion with Intent Validation
# Agent wants to clean up old files
files_to_delete = mcp_client.call_tool("list_directory", {
"path": "/agent/work/",
"filter": "older_than_90_days"
})
# Intent validation required
for file in files_to_delete:
result = mcp_client.call_tool("delete_file", {
"path": file,
"reason": "File is 94 days old, exceeds 90-day retention policy per org standard DP-201",
"policy_reference": "DP-201"
})
# Storage layer verifies the reason before proceeding
Applying to Our Skill Ecosystem
Our system already implements several agentic storage concepts:
| Concept | Our Implementation |
|---|---|
| Cross-session memory | trade-psychology-coach/trade-psychology-coach_memory.json — pattern memory store |
| Work product persistence | telemetry/skill_runs.jsonl — execution history |
| Immutable versioning | skill_evolution.py — skill version management |
| Agent communication persistence | agents/bus_messages/ — message bus with file-backed persistence |
| Audit trail | skill_usage.json + skill_telemetry.py — usage tracking |
| Sandboxing | skill_executor.py — micro-skill guard prevents unauthorized access |
| Caching | .cache/ — result caching with TTL |
Potential Upgrades
- Add MCP server for skill storage — expose skills via MCP protocol for external agents
- Immutable skill versions — every skill edit creates a version, never overwrites
- Intent validation for destructive ops — require reasoning before skill deletion/archival
- Cross-agent memory sharing — persistent memory accessible by all agents in the team
Key Takeaways
- LLM agents are stateless — context window = RAM, not persistent storage
- RAG is read-only — solves input, not output persistence
- MCP standardizes storage access — uniform interface regardless of underlying system
- Safety layers are essential, not optional — agents hallucinate, need guardrails
- Immutable versioning + sandboxing + intent validation = the safety trifecta
- Agentic storage is not just a hard drive — it's storage DESIGNED for autonomous agents