Skip to main content

AI-powered developer workflows for Claude with cost optimization, multi-agent orchestration, and workflow automation.

Project description

Attune AI

Multi-agent developer workflows for Claude Code.

PyPI Downloads Downloads/month Downloads/week Tests Coverage Security Python License


18 multi-agent workflows, 14 auto-triggering Claude Code skills, and 36 MCP tools — specialist teams of 2–6 Claude subagents that review your code, surface vulnerabilities, generate tests, and plan refactors. The same system doubles as the authoring and assistance toolkit for building and maintaining knowledge bases at scale.

Managing and creating help content and docs? That's attune-gui — a dedicated Living Docs dashboard wrapping attune-rag, attune-help, and attune-author in a single UI. attune-ai is the developer workflow hub; attune-gui is the docs hub.


Ecosystem

Package Role Install
attune-ai Developer workflow hub (this package) pip install attune-ai
attune-gui Living Docs dashboard — create, manage, search help content standalone app
attune-rag RAG pipeline (core dep of attune-ai, v0.1.11+) bundled
attune-author Help content authoring, staleness detection pip install 'attune-ai[author]'
attune-help Progressive-depth template runtime pip install attune-help

attune-rag ships as a core dependency of attune-ai (v0.1.11, >=0.1.5,<0.2). attune-help is standalone — not pulled in by a standard attune-ai install, but available as an optional corpus for attune-rag via pip install 'attune-rag[attune-help]'.


How It Works

1. Skills trigger automatically

Say what you need in Claude Code and the right skill activates:

"review my code"        → code-quality skill
"scan for vulns"        → security-audit skill
"generate tests"        → smart-test skill
"plan this feature"     → planning skill

No command to remember. Claude reads your intent and picks the skill. Each skill runs a specialist multi-agent team, not a single prompt.

2. Multi-agent teams, not single prompts

Every workflow dispatches 2–6 subagents in parallel. Each reads your code with Read, Glob, and Grep. An orchestrator synthesizes their findings into a unified result:

security-audit → vuln-scanner + secret-detector + auth-reviewer + remediation-planner
code-review    → security + quality + perf + architect
test-gen       → identifier + designer + writer

Subagents are assigned models by task complexity — Opus for deep reasoning, Sonnet for analysis, Haiku for fast scanning — keeping cost proportional to value.

3. Socratic before execution

Workflows ask questions before executing, not after. The spec workflow brainstorms, then plans, then executes. planning clarifies scope before writing a line of code. This eliminates the most common failure mode: confidently solving the wrong problem.

4. RAG-grounded generation

attune-rag (core dep) grounds LLM generation in retrieved corpus passages and enforces citation-per-claim, cutting hallucination from 46.7% → 6.7% on the benchmark set. Retrieved passages are wrapped in sentinel tags to prevent prompt injection. The Claude provider automatically caches the stable RAG context prefix, eliminating repeated token costs across calls.


Get Started in 60 Seconds

Plugin (works standalone)

claude plugin marketplace add Smart-AI-Memory/attune-ai
claude plugin install attune-ai@attune-ai

Then say "what can attune do?" in Claude Code.

Add Python Package (unlocks CLI + MCP)

pip install 'attune-ai[developer]'

What Each Layer Adds

Capability Plugin only Plugin + pip
14 auto-triggering skills Yes Yes
Security hooks Yes Yes
Prompt-based analysis Yes Yes
36 MCP tools -- Yes
attune CLI -- Yes
Multi-agent workflows -- Yes
Help system maintenance -- Yes
CI/CD automation -- Yes

Note: Skills use your Claude subscription at no extra cost. CLI and MCP tools make direct Anthropic API calls — API key required. See API Mode.


Cheat Sheet

Input What Happens
"what can attune do?" Auto-triggers attune-hub — guided discovery
"build this feature from scratch" Auto-triggers spec — brainstorm, plan, execute
"review my code" Auto-triggers code-quality skill
"scan for vulnerabilities" Auto-triggers security-audit skill
"generate tests for src/" Auto-triggers smart-test skill
"fix failing tests" Auto-triggers fix-test skill
"predict bugs" Auto-triggers bug-predict skill
"generate docs" Auto-triggers doc-gen skill
"plan this feature" Auto-triggers planning skill
"refactor this module" Auto-triggers refactor-plan skill
"prepare a release" Auto-triggers release-prep skill
"tell me more" Auto-triggers coach — progressive depth help
"run all workflows" Auto-triggers workflow-orchestration skill

Workflows

Workflow Agents What It Does
code-review security, quality, perf, architect 4-perspective code review
security-audit vuln-scanner, secret-detector, auth-reviewer, remediation Finds vulnerabilities and generates fix plans
deep-review security, quality, test-gap Multi-pass deep analysis
perf-audit complexity, bottleneck, optimization Identifies bottlenecks and O(n²) patterns
bug-predict pattern-scanner, risk-correlator, prevention Predicts likely failure points
health-check dynamic team (2–6) Project health across tests, deps, lint, CI, docs, security
test-gen identifier, designer, writer Writes pytest code for untested functions
test-audit coverage, gap-analyzer, planner Audits coverage and prioritizes gaps
doc-gen outline, content, polish Generates documentation from source
doc-audit staleness, accuracy, gap-finder Finds stale docs and drift
dependency-check inventory, update-advisor Audits outdated packages and advisories
refactor-plan debt-scanner, impact, plan-generator Plans large-scale refactors
simplify-code complexity, simplification, safety Proposes simplifications with safety review
release-prep health, security, changelog, assessor Go/no-go readiness check
doc-orchestrator inventory, outline, content, polish Full-project documentation
secure-release security, health, dep-auditor, gater Release pipeline with risk scoring
research-synthesis summarizer, pattern-analyst, writer Multi-source research synthesis

MCP Tools

36 tools organized into 4 categories:

Workflow (20)

security_audit code_review bug_predict performance_audit refactor_plan simplify_code deep_review test_generation test_audit test_gen_parallel doc_gen doc_audit doc_orchestrator release_prep health_check dependency_check secure_release research_synthesis analyze_batch analyze_image

Help (5)

help_lookup help_init help_status help_update help_maintain

Memory (4)

memory_store memory_retrieve memory_search memory_forget

Utility (7)

auth_status auth_recommend telemetry_stats context_get context_set attune_get_level attune_set_level


Accuracy & Faithfulness

RAG grounding — hallucination down 46.7% → 6.7%

Measured on a 15-query golden set with retrieval held constant:

Prompt variant Hallucination rate Mean faithfulness
baseline (no grounding rule) 46.67% 0.938
strict ("answer only from context") 26.67% 0.968
citation (shipped default) 6.67% 0.996

The gain comes from the prompting contract (citation-per-claim), not from retrieval. Full methodology:

Help resolver — 48/48 benchmark queries pass at P@1

Bucket Count P@1 Notes
easy 22 22/22 (100%) feature-name synonyms
medium 26 26/26 (100%) paraphrases + industry terminology
hard 4 0/4 (XFAIL) shared-tag collisions — structural ambiguity

Why Attune?

Attune AI Static Docs Agent Frameworks Coding CLIs
Ready-to-use workflows 18 built-in None Build from scratch None
Multi-agent teams 2–6 agents per workflow None Yes No
MCP integration 36 native tools None No No
Auto-triggering skills 14 skills, natural language None None None
Socratic discovery Questions before execution None None None
Portable security hooks PreToolUse + PostToolUse None No No

Installation Options

# Recommended (agents, memory, RAG)
pip install 'attune-ai[developer]'

# Minimal (CLI + workflows + RAG)
pip install attune-ai

# With help authoring (generate / maintain .help/ templates)
pip install 'attune-ai[author]'

# All features
pip install 'attune-ai[all]'

# Development (contributing)
git clone https://github.com/Smart-AI-Memory/attune-ai.git
cd attune-ai && pip install -e '.[dev]'

The [rag] extra is a no-op alias kept for backward compatibility — attune-rag is now a core dependency included in every install.


API Mode

export ANTHROPIC_API_KEY="sk-ant-..."     # Required
export REDIS_URL="redis://localhost:6379"  # Optional

Model Routing

Model Agents Rationale
Opus security, vuln, architect Deep reasoning
Sonnet quality, plan, research Balanced analysis
Haiku complexity, lint, coverage Fast scanning
export ATTUNE_AGENT_MODEL_SECURITY=sonnet  # Save cost
export ATTUNE_AGENT_MODEL_DEFAULT=opus     # Max quality

Budget Controls

Depth Budget Use Case
quick $0.50 Fast checks
standard $2.00 Normal analysis (default)
deep $5.00 Thorough multi-pass review
export ATTUNE_MAX_BUDGET_USD=10.0  # Override

Security

  • Path traversal protection on all file operations (CWE-22)
  • Memory ownership checks (created_by validation)
  • MCP rate limiting (60 calls/min per tool)
  • Hook import restriction (attune.* modules only)
  • PreToolUse security guard (blocks eval/exec, path traversal)
  • Prompt input sanitization (backticks, control chars, truncation)
  • PII scrubbing in telemetry
  • Automated security scanning (CodeQL, bandit, detect-secrets)

See SECURITY.md for vulnerability reporting and full security details.


Migration

attune-help and attune-author have moved to their own marketplace at Smart-AI-Memory/attune-docs. If you previously installed either from the attune-ai marketplace:

  1. /plugin marketplace add Smart-AI-Memory/attune-docs
    
  2. /plugin uninstall attune-help@attune-ai
    /plugin uninstall attune-author@attune-ai
    
  3. /plugin install attune-help@attune-docs
    /plugin install attune-author@attune-docs
    

New users: add Smart-AI-Memory/attune-docs directly.


Links

Apache License 2.0 — Free and open source.

If you find Attune useful, give it a star — it helps others discover the project.

Acknowledgments

  • Anthropic — For Claude AI, the Model Context Protocol, and the Agent SDK patterns behind the multi-agent orchestration layer
  • Boris Cherny — Creator of Claude Code, whose workflow posts validated Attune's plan-first, multi-agent approach
  • Affaan Mustafa — For battle-tested Claude Code configurations that inspired the hook system

View Full Acknowledgements


Built by Patrick Roebuck using Claude Code.

Project details


Release history Release notifications | RSS feed

This version

6.5.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

attune_ai-6.5.5.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

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

attune_ai-6.5.5-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file attune_ai-6.5.5.tar.gz.

File metadata

  • Download URL: attune_ai-6.5.5.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for attune_ai-6.5.5.tar.gz
Algorithm Hash digest
SHA256 73633ff8beea1230aa0f35bf1070c631de105b009a91e9811d24ffcaab4d7085
MD5 50f419c08fa157e4ec6484376a0d883b
BLAKE2b-256 c1caaf114fe5484177979539b4fc1821332d950eddce2fa3c62a0e7385ea74ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for attune_ai-6.5.5.tar.gz:

Publisher: publish-pypi.yml on Smart-AI-Memory/attune-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file attune_ai-6.5.5-py3-none-any.whl.

File metadata

  • Download URL: attune_ai-6.5.5-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for attune_ai-6.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 13462cab788afc865533170761e9079cb8e60af1365b521eb4af90e4e53fe620
MD5 27c8d727344b25d052209386cfa4ec59
BLAKE2b-256 2f493c21a51d3c71749b95d894d9c3291a1f28e42baaf5f592f252df5591036c

See more details on using hashes here.

Provenance

The following attestation bundles were made for attune_ai-6.5.5-py3-none-any.whl:

Publisher: publish-pypi.yml on Smart-AI-Memory/attune-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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