🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@blackms/aistack

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blackms/aistack

Clean agent orchestration for Claude Code

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
29
-12.12%
Maintainers
1
Weekly downloads
 
Created
Source

aistack

Clean agent orchestration for Claude Code.

Features

  • 7 Core Agents: coder, researcher, tester, reviewer, architect, coordinator, analyst
  • 25 MCP Tools: Agent, memory, task, session, system, and GitHub operations
  • SQLite + FTS5: Full-text search with optional vector search
  • Multi-Provider: Anthropic, OpenAI, Ollama support
  • Plugin System: Extend with custom agents and tools
  • 4 Hooks: session-start, session-end, pre-task, post-task

Installation

npm install @blackms/aistack

Quick Start

# Initialize project
npx aistack init

# Add MCP server to Claude Code
claude mcp add aistack -- npx aistack mcp start

# Check status
npx aistack status

CLI Commands

CommandDescription
initInitialize a new project
agentManage agents (spawn, list, stop, status)
memoryMemory operations (store, search, list, delete)
mcpStart MCP server
pluginPlugin management
statusSystem status

Usage Examples

Memory Operations

# Store a key-value pair
npx aistack memory store -k "auth-pattern" -v "Use JWT with refresh tokens"

# Search memory
npx aistack memory search -q "authentication"

# List entries
npx aistack memory list -n my-namespace

Agent Operations

# Spawn an agent
npx aistack agent spawn -t coder -n my-coder

# List active agents
npx aistack agent list

# Get agent status
npx aistack agent status -n my-coder

# Stop an agent
npx aistack agent stop -n my-coder

# List available agent types
npx aistack agent types

MCP Server

# Start MCP server
npx aistack mcp start

# List available tools
npx aistack mcp tools

Configuration

Create aistack.config.json:

{
  "version": "1.0.0",
  "memory": {
    "path": "./data/aistack.db",
    "defaultNamespace": "default",
    "vectorSearch": {
      "enabled": false,
      "provider": "openai",
      "model": "text-embedding-3-small"
    }
  },
  "providers": {
    "default": "anthropic",
    "anthropic": {
      "apiKey": "${ANTHROPIC_API_KEY}"
    }
  },
  "agents": {
    "maxConcurrent": 5,
    "defaultTimeout": 300
  },
  "github": {
    "enabled": false,
    "useGhCli": true
  },
  "plugins": {
    "enabled": true,
    "directory": "./plugins"
  }
}

MCP Tools

Agent Tools

  • agent_spawn - Spawn a new agent
  • agent_list - List active agents
  • agent_stop - Stop an agent
  • agent_status - Get agent status
  • agent_types - List available types
  • agent_update_status - Update agent status

Memory Tools

  • memory_store - Store a key-value pair
  • memory_search - Search memory
  • memory_get - Get entry by key
  • memory_list - List entries
  • memory_delete - Delete entry

Task Tools

  • task_create - Create a task
  • task_assign - Assign to agent
  • task_complete - Mark complete
  • task_list - List tasks
  • task_get - Get task by ID

Session Tools

  • session_start - Start session
  • session_end - End session
  • session_status - Get status
  • session_active - Get active session

System Tools

  • system_status - Overall status
  • system_health - Health checks
  • system_config - Current config

GitHub Tools (when enabled)

  • github_issue_create - Create issue
  • github_issue_list - List issues
  • github_issue_get - Get issue
  • github_pr_create - Create PR
  • github_pr_list - List PRs
  • github_pr_get - Get PR
  • github_repo_info - Repo info

Programmatic Usage

import {
  spawnAgent,
  getMemoryManager,
  startMCPServer,
  getConfig,
} from '@blackms/aistack';

// Get config
const config = getConfig();

// Spawn an agent
const agent = spawnAgent('coder', { name: 'my-coder' });

// Use memory
const memory = getMemoryManager(config);
await memory.store('key', 'value', { namespace: 'test' });
const results = await memory.search('query');

// Start MCP server
const server = await startMCPServer(config);

Plugin Development

// my-plugin/index.ts
import type { AIStackPlugin } from '@blackms/aistack';

export default {
  name: 'my-plugin',
  version: '1.0.0',
  agents: [
    {
      type: 'custom-agent',
      name: 'Custom Agent',
      description: 'Does custom things',
      systemPrompt: 'You are a custom agent...',
      capabilities: ['custom-capability'],
    }
  ],
  tools: [
    {
      name: 'custom_tool',
      description: 'A custom tool',
      inputSchema: { type: 'object', properties: {} },
      handler: async (params) => {
        return { result: 'done' };
      }
    }
  ]
} satisfies AIStackPlugin;

Architecture

aistack/
├── src/
│   ├── cli/          # CLI commands
│   ├── agents/       # Agent definitions and spawner
│   ├── memory/       # SQLite store + FTS5 + vector search
│   ├── mcp/          # MCP server and tools
│   ├── providers/    # LLM providers
│   ├── coordination/ # Task queue and message bus
│   ├── plugins/      # Plugin system
│   ├── hooks/        # Event hooks
│   └── github/       # GitHub integration
└── tests/

License

MIT

Keywords

agent

FAQs

Package last updated on 24 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts