Skip to main content

Unifying layer for AI coding agents - share skills and context across Claude Code, Cursor, and Windsurf

Project description

AgentShare

Share skills and context across AI coding agents (Claude Code, Cursor, Windsurf).

AgentShare gives your AI agents shared memory — when one agent finishes work, the next one picks up where it left off. It also provides a skills registry so you can write reusable instruction snippets once and scaffold them into any project for any platform.

Quick Start

pip install agentshare

# Register the MCP server + inject agent rules into all detected platforms
agentshare mcp init --global

# Restart your AI agents to pick up the changes

That's it. Your agents will now automatically:

  • Ask if you want them to fetch prior context for the project
  • Use MCP to fetch prior context when you agree
  • Save summaries of their work for future agents (write_session)

agentshare mcp init --global also installs an agentshare-cli skill into each detected platform's global skill directory plus ~/.agents/skills. This skill teaches agents how to install and use the AgentShare CLI.

AgentShare also nudges agents to check recent MCP sessions first and only read files when the context is insufficient.

How It Works

AgentShare has two core features:

1. Cross-Agent Context Sharing (MCP Server)

An MCP server exposes four tools to your agents:

Tool Purpose
write_session Save a summary of work done — title, decisions, files modified, tags
query_context Full-text search across all past sessions
list_sessions Browse recent sessions chronologically
get_session Fetch full details of a specific session

Sessions are stored in a local SQLite database (~/.agentshare/context.db) with FTS5 full-text search.

2. Skills Registry

Skills are reusable Markdown instruction files (with YAML frontmatter) that you manage globally and scaffold into projects per-platform.

# Create a skill
agentshare skills create code-review --description "Code review checklist" --category workflows

# Edit it
# ~/.agentshare/skills/workflows/code-review/SKILL.md

# Scaffold into a project for all platforms
agentshare init skills --path ./my-project --all-platforms

Supported Platforms

Platform MCP Config Agent Rules Detection
Claude Code claude mcp add (fallback: ~/.claude.json) ~/.claude/CLAUDE.md ~/.claude.json or ~/.claude/
Cursor ~/.cursor/mcp.json ~/.cursor/rules/agentshare.mdc ~/.cursor/
Windsurf ~/.codeium/windsurf/mcp_config.json ~/.codeium/windsurf/memories/global_rules.md ~/.codeium/windsurf/

Platforms are auto-detected based on the presence of their config directories.

CLI Reference

agentshare --version              Show version

agentshare mcp init --global      Register MCP server + inject agent rules + install CLI skill globally
agentshare mcp init               Write .mcp.json to current project (local install)
agentshare mcp serve              Start MCP server (used internally by platforms)
agentshare mcp remove             Remove MCP config + rules + CLI skill from all platforms

agentshare skills list            List all registered skills
agentshare skills add <path>      Import a skill directory
agentshare skills remove <name>   Remove a skill
agentshare skills create <name>   Create a new skill  [-d description] [-c category]

agentshare init skills            Scaffold skills into a project
                                  [--path] [--platform] [--all-platforms] [--category]

Development

git clone https://github.com/devashar13/agentshare.git
cd agentshare
uv venv && source .venv/bin/activate
uv pip install ".[dev]"

# Run tests
uv run pytest -v

Note: After making code changes, re-run uv pip install . to pick them up.

Requires Python 3.11+.

Architecture

~/.agentshare/
  skills/              # Global skills registry
    <category>/<name>/SKILL.md
  context.db           # SQLite + FTS5 session store

src/agentshare/
  cli.py               # Typer CLI app
  config.py            # Paths, platform detection
  context/
    models.py          # Session model (Pydantic)
    store.py           # SQLite CRUD + full-text search
  mcp/
    server.py          # FastMCP server (4 tools)
    installer.py       # Platform config + rules injection
  skills/
    registry.py        # Skill CRUD
    scaffold.py        # Copy skills into project dirs

License

MIT

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

agentshare-0.1.2.tar.gz (62.2 kB view details)

Uploaded Source

Built Distribution

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

agentshare-0.1.2-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file agentshare-0.1.2.tar.gz.

File metadata

  • Download URL: agentshare-0.1.2.tar.gz
  • Upload date:
  • Size: 62.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agentshare-0.1.2.tar.gz
Algorithm Hash digest
SHA256 40a294abf7984e147c335db9a6b994b2ee09c349b4a0a739d8ad3cf7956056ce
MD5 80991ab901596efb705cdc18cfe6bf7e
BLAKE2b-256 f8182c726faf385eb7d18ebd7510aa2b7b68f5c071b80f9389d1fe723d4ae116

See more details on using hashes here.

File details

Details for the file agentshare-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: agentshare-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for agentshare-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d303cd3b1603f5ca1e14a7119ad2fa06fe31fa9bf2b241a59a9b81b31ba0f6e
MD5 0060a423f001e57fb1ac16302fb376db
BLAKE2b-256 3925d897bfdb0db5b4be60f30f786dad42e8244e6272f5ec3c295d7e7757a799

See more details on using hashes here.

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