Swarms Multi-Agent Framework
kyegomez/swarms
Teaches the Swarms Python framework: the Agent class, tools, loops, memory and multi-agent structures such as sequential, concurrent and graph workflows.
Reference for building AI agents with the Cline SDK: the Agent runtime, ClineCore sessions, custom tools, plugins, events, providers, scheduling and multi-agent teams.
$ npx skills add cline/cline --skill cline-sdk -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cline/cline cline-sdk --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cline/cline.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/cline-sdk .claude/skills/cline-sdk && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "cline-sdk" agent skill from https://github.com/cline/cline/tree/main/.agents/skills/cline-sdk into .claude/skills/cline-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cline-sdk", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cline/cline/tree/main/.agents/skills/cline-sdkType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cline/cline --skill cline-sdk -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cline/cline cline-sdk --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cline/cline.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/cline-sdk .agents/skills/cline-sdk && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "cline-sdk" agent skill from https://github.com/cline/cline/tree/main/.agents/skills/cline-sdk into .agents/skills/cline-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cline-sdk", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cline/cline --skill cline-sdk -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cline/cline cline-sdk --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cline/cline.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/cline-sdk .cursor/skills/cline-sdk && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "cline-sdk" agent skill from https://github.com/cline/cline/tree/main/.agents/skills/cline-sdk into .cursor/skills/cline-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cline-sdk", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cline/cline.git --path .agents/skills/cline-sdk--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cline/cline --skill cline-sdk -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cline/cline cline-sdk --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cline/cline.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/cline-sdk .gemini/skills/cline-sdk && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "cline-sdk" agent skill from https://github.com/cline/cline/tree/main/.agents/skills/cline-sdk into .gemini/skills/cline-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cline-sdk", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cline/cline cline-sdkInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cline/cline --skill cline-sdk -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cline/cline.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/cline-sdk .github/skills/cline-sdk && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "cline-sdk" agent skill from https://github.com/cline/cline/tree/main/.agents/skills/cline-sdk into .github/skills/cline-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cline-sdk", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cline/cline --skill cline-sdk -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cline/cline cline-sdk --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cline/cline.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/cline-sdk .opencode/skills/cline-sdk && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "cline-sdk" agent skill from https://github.com/cline/cline/tree/main/.agents/skills/cline-sdk into .opencode/skills/cline-sdk/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "cline-sdk", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
cline-sdkReference for building AI agents with the Cline SDK: the Agent runtime, ClineCore sessions, custom tools, plugins, events, providers, scheduling and multi-agent teams.
The skill uses decision trees to pick an entry point and then loads detailed references. Its critical rules are to install @cline/sdk with npm, which re-exports the core, agents, llms and shared packages, to use Node.js 22 or later, to define tools with createTool using snake_case names, to return errors from tools as structured data because throwing counts as a mistake against the agent's limit, to flag run-ending tools with a lifecycle setting, and to call dispose() on ClineCore when finished.
It stresses that the standalone Agent and ClineCore use different event systems. Agent uses agent.subscribe() with runtime event types and reads outputText, while ClineCore uses cline.subscribe() with core session events and reads the result text, and the agent config has no top-level onEvent field. Each main API has a four-file reference set covering overview, API, patterns and gotchas, and cross-cutting topics such as events, plugins, providers, multi-agent teams and production deployment each have their own reference.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit fa840c7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npmFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
docs.cline.botdiscord.ggFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Cline SDK Guide loads about 2.2k tokens when it runs, and up to ~27k if it reads all its reference files. Until then it costs about 68 tokens; SKILL.md has 544 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from cline/cline at commit fa840c7, republished under its Apache-2.0 licence (© cline). 544 words, ~2,198 tokens.
.claude/skills/cline-sdk/SKILL.md (or your agent's skills folder). This skill also uses 18 other files; get the full folder from GitHub.Consolidated skill for building AI agents with the Cline SDK. Use the decision trees below to find the right entry point and API surface, then load detailed references.
Follow these rules in all Cline SDK code:
npm install @cline/sdk. The @cline/sdk package re-exports everything from @cline/core, @cline/agents, @cline/llms, and @cline/shared.createTool() from @cline/sdk (or @cline/shared) to define tools. Tool names must be snake_case.execute functions. Throwing counts as a "mistake" against the agent's mistake limit.lifecycle: { completesRun: true } on tools that should end the agent loop (e.g. a "submit answer" tool).ClineCore, always call dispose() when done to clean up resources.Agent and ClineCore have different event systems. For Agent: use agent.subscribe() to get AgentRuntimeEvent types (text streaming is "assistant-text-delta", result text is result.outputText). For ClineCore: use cline.subscribe() to get CoreSessionEvent types (text streaming is "chunk" with payload.type === "text", result text is result.text). There is no top-level onEvent field on AgentRuntimeConfig -- use agent.subscribe() or hooks.onEvent instead. Do not use event types like "content_update" or "content_start" with agent.subscribe() -- those are internal legacy types from the ClineCore adapter layer.The two main API surfaces (Agent and ClineCore) follow a 4-file pattern. Cross-cutting concepts are single-file guides.
Each main API surface in ./references/<api>/ contains:
| File | Purpose | When to Read |
|---|---|---|
REFERENCE.md | Overview, when to use, quick start | Always read first |
api.md | Full API: classes, methods, config, types | Writing code |
patterns.md | Common patterns, best practices | Implementation guidance |
gotchas.md | Pitfalls, limitations, debugging | Troubleshooting |
Cross-cutting concepts in ./references/<concept>/ have REFERENCE.md as the entry point.
REFERENCE.md for your chosen API surfaceapi.mdpatterns.mdtools/REFERENCE.mdplugins/REFERENCE.mdproviders/REFERENCE.mdevents/REFERENCE.mdproduction/REFERENCE.mdscheduling/REFERENCE.mdmulti-agent/REFERENCE.mdgotchas.md./references/agent/REFERENCE.md # Start here for lightweight agents
./references/clinecore/REFERENCE.md # Start here for full runtime
./references/agent/api.md # Agent class, config, methods
./references/tools/REFERENCE.md # Creating and using tools
./references/plugins/REFERENCE.md # Plugin system
./references/providers/REFERENCE.md # LLM provider configurationWhich API?
+-- I want a simple, stateless agent with custom tools
| +-- agent/ (Agent class from @cline/agents)
+-- I need session persistence, built-in tools, config discovery
| +-- clinecore/ (ClineCore from @cline/core)
+-- I want built-in file/shell/search/web tools
| +-- clinecore/ (has built-in tools; Agent does not)
+-- I want scheduled or recurring agents
| +-- clinecore/ (automation API)
+-- I need multi-process or multi-client session sharing
| +-- clinecore/ (hub-backed runtime)
+-- I'm building a browser-compatible agent
| +-- agent/ (no Node.js dependencies)Tools?
+-- Define a custom tool with schema -> tools/REFERENCE.md
+-- Use built-in tools (bash, editor, read_files) -> tools/REFERENCE.md (built-in section)
+-- Control tool approval/policies -> tools/REFERENCE.md (policies section)
+-- Tool that ends the agent loop -> tools/REFERENCE.md (completion tools)
+-- Package tools as a reusable plugin -> plugins/REFERENCE.mdEvents?
+-- Stream text/reasoning in real time -> events/REFERENCE.md
+-- Track token usage and costs -> events/REFERENCE.md
+-- Watch tool calls -> events/REFERENCE.md
+-- Detect completion/errors -> events/REFERENCE.md
+-- Hook into lifecycle stages -> plugins/REFERENCE.mdProviders?
+-- Anthropic (Claude) -> providers/REFERENCE.md
+-- OpenAI (GPT) -> providers/REFERENCE.md
+-- Google (Gemini/Vertex) -> providers/REFERENCE.md
+-- AWS Bedrock -> providers/REFERENCE.md
+-- Mistral -> providers/REFERENCE.md
+-- OpenAI-compatible (vLLM, Together, etc.) -> providers/REFERENCE.md
+-- Custom/self-hosted provider -> providers/REFERENCE.mdPlugins?
+-- Package tools + hooks together -> plugins/REFERENCE.md
+-- Observe tool calls (logging, metrics) -> plugins/REFERENCE.md
+-- Intercept lifecycle events -> plugins/REFERENCE.md
+-- Add system prompt rules -> plugins/REFERENCE.md
+-- Distribute via npm/git -> plugins/REFERENCE.mdMulti-agent?
+-- Spawn one-off background agents -> multi-agent/REFERENCE.md (sub-agents)
+-- Persistent cross-session teams -> multi-agent/REFERENCE.md (teams)
+-- Parent-child delegation -> multi-agent/REFERENCE.md (sub-agents)
+-- Peer-to-peer task board -> multi-agent/REFERENCE.md (teams)Scheduling?
+-- Recurring cron jobs -> scheduling/REFERENCE.md
+-- One-off scheduled tasks -> scheduling/REFERENCE.md
+-- Event-driven triggers -> scheduling/REFERENCE.md
+-- CLI schedule management -> scheduling/REFERENCE.mdProduction?
+-- Error handling and status checks -> production/REFERENCE.md
+-- Cost control and token limits -> production/REFERENCE.md
+-- Observability (OpenTelemetry) -> production/REFERENCE.md
+-- Security and sandboxing -> production/REFERENCE.md
+-- Deployment patterns -> production/REFERENCE.mdtools/REFERENCE.md (completion tools)agent/gotchas.md or clinecore/gotchas.mdproviders/REFERENCE.mdclinecore/gotchas.mdproduction/REFERENCE.md (cost control)clinecore/gotchas.mdplugins/REFERENCE.mdevents/REFERENCE.md| API | Entry File | Description |
|---|---|---|
| Agent | ./references/agent/REFERENCE.md | Lightweight stateless agent loop |
| ClineCore | ./references/clinecore/REFERENCE.md | Full runtime with sessions, persistence, built-in tools |
| Concept | Entry File | Description |
|---|---|---|
| Tools | ./references/tools/REFERENCE.md | Built-in and custom tool creation |
| Plugins | ./references/plugins/REFERENCE.md | Extension system with hooks |
| Events | ./references/events/REFERENCE.md | Real-time streaming events |
| Providers | ./references/providers/REFERENCE.md | LLM provider configuration |
| Production | ./references/production/REFERENCE.md | Deployment, security, observability |
| Scheduling | ./references/scheduling/REFERENCE.md | Cron jobs and automation |
| Multi-Agent | ./references/multi-agent/REFERENCE.md | Teams and sub-agents |
| Package | Purpose |
|---|---|
@cline/sdk | Everything you need, install this one |
@cline/core | Sessions, persistence, built-in tools, config, hub |
@cline/agents | Stateless agent loop, tool orchestration, streaming |
@cline/llms | LLM provider gateway |
@cline/shared | Types, tool helpers, hook engine |
Repository: https://github.com/cline/cline SDK Source: https://github.com/cline/cline/tree/main/sdk Documentation: https://docs.cline.bot/sdk/overview Discord: https://discord.gg/cline
© cline, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 18 other files (references) in .agents/skills/cline-sdk of cline/cline.
Open the folder on GitHubat commit fa840c7
Cline SDK Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Cline SDK Guide this skillcline/cline | 70k | — | ~2.2k | Automated safety check: Pass | Apache-2.0 | |
| Swarms Multi-Agent Frameworkkyegomez/swarms | 7.2k | — | ~5.5k | Automated safety check: Pass | Apache-2.0 | |
| Agent Squad Python Guide2FastLabs/agent-squad | 7.8k | — | ~4.7k | Automated safety check: Pass | Apache-2.0 | |
| Agent Squad for TypeScript2FastLabs/agent-squad | 7.8k | — | ~4.3k | Automated safety check: Pass | Apache-2.0 | |
| Langgraph Agent Patternssoba-labs/langchain-agent-skills | 107 | — | ~3.6k | Automated safety check: Pass | MIT | |
| Openai Agentscoco-research/coco | 503 | — | ~3.3k | Automated safety check: Pass | MIT |
kyegomez/swarms
Teaches the Swarms Python framework: the Agent class, tools, loops, memory and multi-agent structures such as sequential, concurrent and graph workflows.
2FastLabs/agent-squad
Map of the agent-squad Python framework for async multi-agent orchestration: which agent, classifier, storage and tool provider to pick, and the pitfalls to avoid.
2FastLabs/agent-squad
Guide to building Node.js and TypeScript apps on the agent-squad package: orchestrator, agent types, classifier routing, storage, retrievers and MCP tools.
soba-labs/langchain-agent-skills
Implement multi-agent coordination patterns (supervisor-subagent, router, orchestrator-worker, handoffs) for LangGraph applications.
coco-research/coco
Build AI applications with OpenAI Agents SDK - text agents, voice agents, multi-agent handoffs, tools with Zod schemas, guardrails, and streaming.
omer-metin/skills-for-antigravity
Expert in designing and building autonomous AI agents. An agent skill from omer-metin/skills-for-antigravity.
cline/cline
Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.
cline/cline
Helps build terminal user interfaces with OpenTUI using its core imperative API or its React and Solid reconcilers, with references for layout, keyboard, animation and testing.
cline/cline
Guides publishing a one-time What's new dialog in the Cline desktop app: deciding if one is due, picking highlights from the changelog and editing one content file.
cline/cline
Covers preparing, tagging and publishing a Cline desktop app release on the stable, beta or nightly channel through the desktop-publish GitHub workflow.
cline/cline
Validates and publishes the standalone @cline/ui npm package through its own release workflow, separate from the Cline SDK runtime packages.
cline/cline
Walks through releasing the Cline CLI package to npm: release notes, version bump, matching git tag, and either the GitHub workflow or a local publish.
Categories
Reference for building AI agents with the Cline SDK: the Agent runtime, ClineCore sessions, custom tools, plugins, events, providers, scheduling and multi-agent teams. The skill uses decision trees to pick an entry point and then loads detailed references.js 22 or later, to define tools with createTool using snake_case names, to return errors from tools as structured data because throwing counts as a mistake against the agent's limit, to flag run-ending tools with a lifecycle setting, and to call dispose() on ClineCore when finished.
Cline SDK Guide fits situations like: writing an agent with the Cline SDK; defining custom tools with createTool; subscribing to Agent or ClineCore events; building multi-agent teams or scheduling runs.
Run `npx skills add cline/cline --skill cline-sdk -a claude-code`. Or copy the skill folder (.agents/skills/cline-sdk in cline/cline) into .claude/skills/cline-sdk in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cline/cline --skill cline-sdk -a codex`. Or copy the skill folder (.agents/skills/cline-sdk in cline/cline) into .agents/skills/cline-sdk in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cline/cline --skill cline-sdk -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cline-sdk, .gemini/skills/cline-sdk, .github/skills/cline-sdk and .opencode/skills/cline-sdk in your project.
Going by SKILL.md and its folder, Cline SDK Guide needs the command-line tools its instructions call (npm). Our summary lists: Node.js 22 or later; The @cline/sdk package.
SKILL.md names 2 domains. As links in the text: docs.cline.bot and discord.gg. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Cline SDK Guide is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 25k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Cline SDK Guide: Swarms Multi-Agent Framework (kyegomez/swarms, 7.2k stars), Agent Squad Python Guide (2FastLabs/agent-squad, 7.8k stars), Agent Squad for TypeScript (2FastLabs/agent-squad, 7.8k stars) and Langgraph Agent Patterns (soba-labs/langchain-agent-skills, 107 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cline (a GitHub organization) maintains it in cline/cline, which has 70,041 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 9, 2026.
Source: cline/cline on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.