gossipcat

v0.2.1
io.github.ataberk-xyz/gossipcat Checked 3 days ago Published 7 months ago

Multi-agent orchestration for Claude Code — consensus review, adaptive dispatch, skill learning

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gossip_plan

Plan a task with write-mode suggestions. Decomposes into sub-tasks, assigns agents, and classifies each as read or write with suggested write mode. Returns dispatch-ready JSON for approval before execution. Use this before gossip_dispatch(mode:"parallel") for implementation tasks.

ParameterTypeDescription
task *stringTask description (e.g. "fix the scope validation bug in packages/tools/")
strategystringOverride decomposition strategy. Omit to let the orchestrator decide.

gossip_dispatch

Dispatch tasks to agents. mode:"single" (default) sends to one agent. mode:"parallel" fans out to multiple agents. mode:"consensus" dispatches with cross-review instructions. Returns task IDs for collecting results.

ParameterTypeDescription
_utility_task_idstringInternal: utility task ID for re-entry after native lens generation
agent_idstringAgent ID — required for mode:"single"
modestringDispatch mode: "single" (one agent), "parallel" (fan-out), "consensus" (cross-review)
plan_idstringPlan ID from gossip_plan. Enables chain context from prior steps.
scopestringDirectory scope for "scoped" write mode
stepnumberStep number in the plan (1-indexed).
taskstringTask description — required for mode:"single"
tasksarrayTask array — required for mode:"parallel" and mode:"consensus"
timeout_msnumberWrite task timeout in ms. Default 300000.
write_modestringWrite mode for single dispatch

gossip_collect

Collect results from dispatched tasks. Waits for completion by default. Use consensus: true for cross-review round.

ParameterTypeDescription
consensusbooleanEnable cross-review consensus. Agents review each others findings.
task_idsarrayTask IDs to collect. Empty array for all.
timeout_msnumberMax wait time in ms. Default 5 minutes.

gossip_relay_cross_review

Feed native agent cross-review result back into a pending consensus round. Called after dispatching Agent() for cross-review.

ParameterTypeDescription
agent_id *stringThe agent that performed the cross-review
consensus_id *stringThe consensus_id from the gossip_collect response
result *stringThe agent cross-review output (JSON array of agree/disagree/unverified/new entries)

gossip_status

Check Gossip Mesh system status, host environment, available agents, dashboard URL/key, and agent list with provider/model/skills.

gossip_guide

Show the gossipcat handbook for humans — architectural invariants, operator playbook, caveats, hallucination patterns, glossary. Call this when you want to READ the docs, not when you need LLM context. The LLM-facing auto-load lives in gossip_status().

gossip_update

Check for or apply gossipcat updates. Detects install method (global npm, local dep, git clone) and fetches the latest version from the npm registry.

ParameterTypeDescription
check_onlybooleanOnly check version, do not update
confirmbooleanSet true to actually apply the update

gossip_setup

Create or update gossipcat team. Default mode is "merge" — adds/updates specified agents while keeping existing ones. Use "replace" to overwrite entire config. Detects host environment (unknown) and supports both native Claude Code subagents (.claude/agents/*.md) and custom provider agents (Anthropic, OpenAI, Google Gemini).

ParameterTypeDescription
agents *arrayArray of agents to create
instruction_agent_idsAgent IDs for instruction update
instruction_modestringHow to apply instruction update
instruction_updatestringInstruction text to append/replace
main_modelstringModel ID for orchestrator (e.g. gemini-2.5-pro, claude-sonnet-4-6, gpt-4o)
main_providerstringProvider for the orchestrator LLM. Use "none" when no API key is available — features degrade gracefully to profile-based.
modestring"merge" (default) keeps existing agents and adds/updates the ones specified. "replace" overwrites entire config. "update_instructions" updates agent instructions without touching the config.

gossip_relay

Feed a native agent result back into the gossipcat relay. Call this after a Claude Code Agent() completes a task dispatched via gossip_dispatch or gossip_run. Enables consensus cross-review and gossip for native agents.

ParameterTypeDescription
result *stringThe agent output/result text
task_id *stringTask ID returned by gossip_dispatch or gossip_run
agent_started_atnumberTimestamp (ms) when Agent() was launched. Used to measure actual agent execution time vs dispatch overhead.
errorstringError message if the agent failed
relay_tokenstringOne-time token issued at dispatch time. Required for native agent relays — prevents task-ID spoofing.

gossip_run

Run a task on a single agent and return the result. For relay agents (Gemini), this is a single call — dispatches, waits, returns. For native agents (Sonnet/Haiku), returns dispatch instructions with gossip_relay callback. Use agent_id:"auto" to let the orchestrator decompose and assign agents automatically.

ParameterTypeDescription
agent_id *stringAgent to run the task on, or "auto" for orchestrator-driven decomposition
task *stringTask description. Reference file paths — the agent will read them.
scopestringDirectory scope for scoped write mode
write_modestringWrite mode for implementation tasks

gossip_signals

Record or retract consensus performance signals. Use action "record" (default) to record signals after cross-referencing agent findings — call IMMEDIATELY when you verify. Use action "retract" to undo a previously recorded signal.

ParameterTypeDescription
actionstringAction: "record" to add signals, "retract" to undo a previous signal
agent_idstringAgent whose signal to retract (required for action: "retract")
reasonstringWhy this signal is being retracted (required for action: "retract")
signalsarrayArray of consensus signals (required for action: "record")
task_idstringTask ID to link signals to. For record: optional (synthetic ID if omitted). For retract: required.
task_start_timestringISO-8601 timestamp of the underlying task/consensus round. Used as the per-batch fallback timestamp so bulk-recording from a backlog preserves true chronology. Falls back to wall-clock if omitted.

gossip_scores

View agent performance scores from consensus signals. Shows accuracy, uniqueness, reliability, and dispatch weight for each agent. Use to understand which agents are performing well and which need improvement.

gossip_skills

Manage agent skills. Actions: list (show skill index), bind (attach skill to agent), unbind (remove skill from agent), build (create skills from gap suggestions), develop (generate skill from ATI competency data).

ParameterTypeDescription
action *stringAction to perform
_utility_task_idstringInternal: utility task ID for re-entry after native skill generation
agent_idstringAgent ID (required for bind, unbind, develop)
categorystringCategory to improve (required for develop). One of: trust_boundaries, injection_vectors, input_validation, concurrency, resource_exhaustion, type_safety, error_handling, data_integrity
enabledbooleanFor bind: set to false to disable the slot without removing it. Defaults to true.
skillstringSkill name (required for bind, unbind)
skill_namesarrayFor build: filter to specific skills. Omit to get all pending.
skillsarrayFor build: generated skill files to save. Omit for discovery mode.

gossip_session_save

Save a cognitive session summary to project memory. The next session will load this context automatically on MCP connect. Call before ending your session to preserve what was learned.

ParameterTypeDescription
_utility_task_idstringInternal: utility task ID for re-entry after native session summary
forcebooleanBypass the refuse-gate for pending native tasks / consensus rounds. Audited to .gossip/forced-saves.jsonl.
notesstringOptional freeform user context (e.g., "focusing on security hardening")

gossip_remember

Search an agent's archived knowledge files.

ParameterTypeDescription
agent_id *stringAgent ID to search knowledge for
query *stringSearch query (max 500 chars)
max_resultsnumberMax results (default 3, max 10)

gossip_verify_memory

On-demand staleness check for a memory file claim. Reads the memory file, dispatches a native haiku-researcher utility to verify the claim against current code, and returns a structured verdict (FRESH | STALE | CONTRADICTED | INCONCLUSIVE) with file:line evidence. Call before acting on any backlog item from memory. Spec: docs/specs/2026-04-08-gossip-verify-memory.md

ParameterTypeDescription
claim *stringThe specific memory assertion to verify against current code.
memory_path *stringPath to memory file (relative to cwd or absolute). Absolute paths must resolve inside cwd or under ~/.claude/projects/.
_utility_task_idstringInternal: utility task ID for re-entry after native haiku dispatch

gossip_format

Return the canonical CONSENSUS_OUTPUT_FORMAT block. Use this when you need to write an ad-hoc Agent() prompt for a native subagent that should produce findings the consensus engine can parse. Paste the returned string into your prompt verbatim — the format trains the agent to emit <agent_finding> tags instead of prose.

gossip_tools

List all available gossipcat MCP tools with descriptions. Call after /mcp reconnect to discover new tools.

gossip_progress

Show progress of active tasks and consensus rounds. Call during long-running operations to see what agents are doing.

gossip_bug_feedback

File a GitHub issue on the gossipcat repo from an in-session bug report. Dedupes against open issues. Requires authenticated gh CLI.

ParameterTypeDescription
description *stringBug description — what went wrong, what you expected, what happened instead
task_idstringOptional task ID to attach for context