Skip to main content

A lightweight framework for building secure, isolated, and LLM-ready AI skills.

Project description

🏗️ SILO Framework

S.I.L.O (Secure. Isolated. Lightweight. Offloaded.) helps developers bring their ideas to life by conquering the complexity of AI tool execution. It provides a trusted tool ecosystem for AI Agents—ensuring tools are invoked safely, reliably, and with zero configuration headache.

License: MIT Python 3.9+ MCP Ready Docs

📖 Read the Documentation (or browse docs/index.md) for a trusted starting point on writing skills, security, and deploying as an MCP server.


🔥 Why SILO?

Most "AI Skills" today are just unstructured text prompts telling an agent to "be smart" and write code on the fly to solve a problem. This works for simple tasks, but falls apart when you need reliable, repeatable, and secure integrations.

The Problem

  • Token Leaks: Passing API keys in prompts or CLI arguments is a massive security risk.
  • Dependency Hell: Each skill needs its own .venv, requirements.txt, and setup.
  • LLM Hallucinations: Agents struggle with unstructured text or unclear argument types.
  • Complexity: Writing a full MCP server or a robust CLI wrapper takes too much boilerplate.

The SILO Solution

SILO is built on four core pillars:

  • 🔒 Secure: Tokens or keys never reach the LLM context. In SILO, secrets live in your OS Keychain or Env, keeping them invisible to the model and the logs.
  • 📦 Isolated: Each skill is a self-contained module. With uv (PEP 723) support, a single file can manage its own dependencies without polluting your global environment.
  • 🪶 Lightweight: Skill instructions (SKILL.md) are minimalist and focused. A skill should solve one clearly defined task with maximum clarity.
  • Offloaded: Perform as much work as possible procedurally (in Python) rather than through the LLM. This saves tokens, reduces cognitive load on the agent, and ensures predictable, accurate results.

🚀 The SILO Workflow: How it Works

SILO transforms the development of AI tools into a streamlined 4-step process.

1. Scaffolding

Start with a single command to generate a compliant skill template.

silo init github-skill --secrets GITHUB_TOKEN

This creates a folder named github-skill with a PEP 723 compliant skill.py, ensuring uv can run it with all necessary dependencies (including silo-framework itself) in a temporary, isolated environment.

2. Development (The Code)

Define your commands using standard Python functions and Pydantic models. SILO handles the rest—argument parsing, JSON serialization, and error handling.

from silo import Skill, require_secret, AgentResponse
from pydantic import BaseModel

app = Skill("github")

class Issue(BaseModel):
    title: str
    body: str

@app.tool()
def create_issue(repo: str, detail: Issue):
    """Creates a new issue in a repository."""
    # This NEVER leaks to the LLM. 
    # It fetches from Keychain, Env, or prompts via browser.
    token = require_secret("GITHUB_TOKEN") 
    
    # Procedural logic (Offloaded from LLM)
    return AgentResponse(
        llm_text=f"Successfully created issue '{detail.title}' in {repo}",
        raw_data={"status": "created", "repo": repo, "issue_id": 123}
    )

if __name__ == "__main__":
    app.run()

3. Verification (silo test)

Agents don't have a terminal (TTY). They don't have a display. They need clean, predictable output.

silo test github_skill.py create_issue --repo "user/repo" --detail '{"title": "Bug", "body": "Fixed"}'

silo test runs your skill in a simulated "headless agent" environment, verifying that:

  • The manifest generates correctly.
  • Authentication fallbacks trigger properly.
  • Output is valid JSON/Markdown.

4. Deployment & MCP Export

Want to use this skill in Claude Desktop? You don't need to rewrite a single line. Just change one method call:

if __name__ == "__main__":
    # app.run()     <-- Standard CLI
    app.run_mcp()   <-- Instant MCP tool server!

🛠️ Advanced Features

🔐 Headless-Friendly Auth

When a skill needs a secret but there is no terminal (standard for agents), SILO:

  1. Checks os.environ.
  2. Checks the OS Keychain (macOS, Windows, Linux).
  3. If missing and a display is detected, it opens a local browser tab with a secure dark-mode form for the user to input the token. The token is saved to the keychain and aldrig passed to the agent.

🩺 Environment Doctor

Not sure if your system is ready for S.I.L.O?

silo doctor

Checks for Python version, uv presence, Keychain accessibility, and critical dependencies.


📜 License

MIT © Timur Pitsunov

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

silo_framework-0.1.1.tar.gz (221.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

silo_framework-0.1.1-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file silo_framework-0.1.1.tar.gz.

File metadata

  • Download URL: silo_framework-0.1.1.tar.gz
  • Upload date:
  • Size: 221.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for silo_framework-0.1.1.tar.gz
Algorithm Hash digest
SHA256 da3056ed74f99f67c921e1f3d16f5a0c7d0a2c714a6d43238b4ddee09b71ded1
MD5 462a19612dcbc67eef8438591fc44ecc
BLAKE2b-256 a351750c278f892c9a744f2c4c979be5860c999a899a250c773a5794dd5ad31b

See more details on using hashes here.

Provenance

The following attestation bundles were made for silo_framework-0.1.1.tar.gz:

Publisher: publish.yml on tpitsunov/silo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file silo_framework-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: silo_framework-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for silo_framework-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 799da2d88e129c46c9414535ba17cbd3e25f485427bc06c853bae00781b52bbc
MD5 3c6cc971016659bd342ba42c8ceafa4f
BLAKE2b-256 5a1e7714b63c0038e9223c085621107a110e02f08a75a9cdae8d3aba86201c9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for silo_framework-0.1.1-py3-none-any.whl:

Publisher: publish.yml on tpitsunov/silo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page