Delegation Core logo

Delegation Core

Community
athola
delegation-core

Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer). Use for execution tasks. Do not use for secrets.

Overview

Publisherathola
Repositoryclaude-night-market
Skill namedelegation-core
Stars
343
Forks
37
Bundled files
7
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by athola on GitHub. Read the source before you install it.

Installation

Install the Delegation Core AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/athola/claude-night-market/tree/master/plugins/conjure/skills/delegation-core
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/athola/claude-night-market.git /tmp/claude-night-market
mkdir -p .claude/skills
cp -r /tmp/claude-night-market/plugins/conjure/skills/delegation-core .claude/skills/delegation-core
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Delegation Core in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Delegation Core on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Delegation Core is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Delegation Core Framework

Overview

A method for deciding when and how to delegate tasks to external LLM services. Core principle: delegate execution, retain high-level reasoning.

Default Posture

Delegation is on. Declining it is the step that takes a decision.

Any conjure operation, mission phase, or workflow that reaches eligible work delegates it without being asked. Eligible means the work is execution rather than reasoning, which the philosophy below defines and modules/task-assessment.md classifies. An operator who wants delegation off says so once, in one of the two places under Declining Delegation.

This inverts the earlier framing, which listed the occasions on which to delegate and so made delegation something a caller had to remember. The occasions were correct and are now the exception list instead.

Keep Local

Delegation stops at the boundary the philosophy draws. Keep the work local when any of these hold:

  • The task is reasoning: architecture, design, trade-offs, judgment.
  • The prompt or context carries a secret, a credential, or data that should not leave the machine.
  • The task needs iteration with the operator turn by turn.
  • Correctness cannot be validated after the fact.

The first is the standing exception and covers most of what Claude does. The rest are the red flags modules/task-assessment.md already lists.

Declining Delegation

Two switches, environment over file.

ScopeHowEffect
One runCONJURE_DELEGATION=offNo provider is probed or spawned
One machine"enabled": false in ~/.claude/hooks/delegation/config.jsonSame, until the key changes

CONJURE_DELEGATION accepts off, 0, false, no and their opposites, in any case. Setting it to an on spelling re-enables delegation that the config file turned off, so the narrower scope wins. A disabled delegator returns a result whose fallback_reason is delegation_disabled and spawns nothing, so opting out costs nothing.

When No Provider Answers

smart_delegate works down the registry order and returns the first real answer. A provider that is missing, unauthenticated, failing, or answering with an empty stdout is recorded and the chain moves on.

When it reaches the end, it returns a result with fallback_reason set to providers_exhausted and an attempts trail naming what each provider did. That result is the instruction to do the work locally. Read it, say which providers were tried and why none answered, and then do the task yourself. Do not treat it as an error to report and stop on: a machine with no CLI installed is the ordinary case for this default, not a fault.

When the operator wants providers answering rather than falling back, modules/provider-onboarding.md carries the per-provider steps and the failure shapes that do not look like authentication problems. Start with make -C plugins/conjure delegate-doctor.

Philosophy

Delegate execution, retain reasoning. Claude handles architecture, strategy, design, and review. External LLMs perform data processing, pattern extraction, bulk operations, and summarization.

Delegation Flow

  1. Task Assessment: Classify task by complexity and context size.
  2. Suitability Evaluation: Check prerequisites and service fit.
  3. Handoff Planning: Formulate request and document plan.
  4. Execution & Integration: Run delegation, validate, and integrate results.

Quick Decision Matrix

ComplexityContextRecommendation
HighAnyKeep local
LowLargeDelegate
LowSmallEither

High Complexity: Architecture, design decisions, trade-offs, creative problem solving.

Low Complexity: Pattern counting, bulk extraction, boilerplate generation, summarization.

Detailed Workflow Steps

1. Task Assessment (delegation-core:task-assessed)

Classify the task:

  • See modules/task-assessment.md for classification criteria.
  • Use token estimates to determine thresholds.
  • Apply the decision matrix.

Exit Criteria: Task classified with complexity level, context size, and delegation recommendation.

2. Suitability Evaluation (delegation-core:delegation-suitability)

Verify prerequisites:

  • See modules/handoff-patterns.md for checklist.
  • Evaluate cost-benefit ratio using modules/cost-estimation.md.
  • Check for red flags (security, real-time iteration).

Exit Criteria: Service authenticated, quotas verified, cost justified.

3. Handoff Planning (delegation-core:handoff-planned)

Create a delegation plan:

  • See modules/handoff-patterns.md for request template.
  • Document service, command, input context, expected output.
  • Define validation method.

Exit Criteria: Delegation plan documented.

4. Execution & Integration (delegation-core:results-integrated)

Execute and validate results:

  • Run delegation and capture output.
  • Validate format and correctness.
  • Integrate only after validation passes.
  • Log usage.

Exit Criteria: Results validated and integrated, usage logged.

MCP Authentication

OAuth Client Credentials (Claude Code 2.1.30+)

For MCP servers that don't support Dynamic Client Registration (e.g., Slack), pre-configured OAuth client credentials can be provided:

bash
claude mcp add <server-name> --client-id <id> --client-secret <secret>

This enables delegation workflows through MCP servers that require pre-configured OAuth, expanding the range of external services available for task delegation.

Claude.ai MCP Connectors (Claude Code 2.1.46+)

As an alternative to manual OAuth setup, users can configure MCP servers directly in claude.ai at claude.ai/settings/connectors. These connectors are automatically available in Claude Code when logged in with a claude.ai account: no claude mcp add or credential management required. This provides a browser-based auth flow that may be simpler for services with complex OAuth requirements.

Worktree Isolation for File-Modifying Delegations (Claude Code 2.1.49+)

When delegating tasks that modify files to subagents, use isolation: worktree in the agent frontmatter to run each agent in a temporary git worktree. This prevents file conflicts when multiple delegated agents operate in parallel on overlapping paths. The worktree is auto-cleaned if no changes are made; preserved with commits if the agent produces changes.

yaml
# Agent frontmatter for isolated delegation
isolation: worktree

Leyline Infrastructure

Conjure uses leyline infrastructure:

Leyline SkillUsed For
quota-managementTrack service quotas and thresholds.
usage-loggingSession-aware audit trails.
service-registryUnified service configuration.
error-patternsConsistent error handling.
authentication-patternsAuth verification.

See modules/cost-estimation.md for leyline integration examples.

Service-Specific Skills

For detailed service workflows:

  • Skill(conjure:gemini-delegation): Gemini CLI specifics.
  • Skill(conjure:qwen-delegation): Qwen MCP specifics.
  • Skill(conjure:minimax-delegation): MiniMax CLI specifics.
  • Skill(conjure:glm-delegation): GLM via the Z.ai endpoint swap.
  • Skill(conjure:muse-delegation): Meta Muse Code CLI specifics.
  • Skill(conjure:codex-delegation): OpenAI Codex CLI specifics.
  • Skill(conjure:opencode-delegation): OpenCode CLI specifics.

Execution Modes

When delegating to multiple agents, choose the appropriate execution mode:

ModeWhen to UseHow It Works
single-sessionSequential tasks, same-file editsClaude works through tasks in order
subagentsParallel independent tasksAgents work independently, report back
agent-teamParallel coordinated tasksAgents can communicate with each other

See references/execution-modes.md for the selection decision matrix, mode compatibility notes, and anti-patterns to avoid.

Module Reference

  • provider-onboarding.md: Install and auth per provider, and how to read a half-configured one.
  • task-assessment.md: Complexity classification, decision matrix.
  • cost-estimation.md: Pricing, budgets, cost tracking.
  • handoff-patterns.md: Request templates, workflows.
  • troubleshooting.md: Common problems, service failures.

Exit Criteria

  • Task assessed and classified.
  • Work that stayed local names which Keep Local clause held it.
  • A providers_exhausted result was reported with its attempts trail and then completed locally, not abandoned.
  • Results validated before integration.
  • Lessons captured.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Delegation Core AI skill do?

Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer). Use for execution tasks. Do not use for secrets.

Why use Delegation Core on TypingMind?

Because you install it once and use it with any model. Delegation Core is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Delegation Core in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/athola/claude-night-market/tree/master/plugins/conjure/skills/delegation-core. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Delegation Core?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Delegation Core?

As many as you like. As long as a model supports skills, you can use Delegation Core with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Delegation Core AI skill free?

Yes. It is published on GitHub by athola under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇