aidevops 2.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/AGENTS.md +614 -0
- package/.agent/accounts.md +65 -0
- package/.agent/aidevops/add-new-mcp-to-aidevops.md +456 -0
- package/.agent/aidevops/api-integrations.md +335 -0
- package/.agent/aidevops/architecture.md +510 -0
- package/.agent/aidevops/configs.md +274 -0
- package/.agent/aidevops/docs.md +244 -0
- package/.agent/aidevops/extension.md +311 -0
- package/.agent/aidevops/mcp-integrations.md +340 -0
- package/.agent/aidevops/mcp-troubleshooting.md +162 -0
- package/.agent/aidevops/memory-patterns.md +172 -0
- package/.agent/aidevops/providers.md +217 -0
- package/.agent/aidevops/recommendations.md +321 -0
- package/.agent/aidevops/requirements.md +301 -0
- package/.agent/aidevops/resources.md +214 -0
- package/.agent/aidevops/security-requirements.md +174 -0
- package/.agent/aidevops/security.md +350 -0
- package/.agent/aidevops/service-links.md +400 -0
- package/.agent/aidevops/services.md +357 -0
- package/.agent/aidevops/setup.md +153 -0
- package/.agent/aidevops/troubleshooting.md +389 -0
- package/.agent/aidevops.md +124 -0
- package/.agent/build-plus.md +244 -0
- package/.agent/content/guidelines.md +109 -0
- package/.agent/content.md +87 -0
- package/.agent/health.md +59 -0
- package/.agent/legal.md +59 -0
- package/.agent/loop-state/full-loop.local.md +16 -0
- package/.agent/loop-state/ralph-loop.local.md +10 -0
- package/.agent/marketing.md +440 -0
- package/.agent/memory/README.md +260 -0
- package/.agent/onboarding.md +796 -0
- package/.agent/plan-plus.md +245 -0
- package/.agent/research.md +100 -0
- package/.agent/sales.md +333 -0
- package/.agent/scripts/101domains-helper.sh +701 -0
- package/.agent/scripts/add-missing-returns.sh +140 -0
- package/.agent/scripts/agent-browser-helper.sh +311 -0
- package/.agent/scripts/agno-setup.sh +712 -0
- package/.agent/scripts/ahrefs-mcp-wrapper.js +168 -0
- package/.agent/scripts/aidevops-update-check.sh +71 -0
- package/.agent/scripts/ampcode-cli.sh +522 -0
- package/.agent/scripts/auto-version-bump.sh +156 -0
- package/.agent/scripts/autogen-helper.sh +512 -0
- package/.agent/scripts/beads-sync-helper.sh +596 -0
- package/.agent/scripts/closte-helper.sh +5 -0
- package/.agent/scripts/cloudron-helper.sh +321 -0
- package/.agent/scripts/codacy-cli-chunked.sh +581 -0
- package/.agent/scripts/codacy-cli.sh +442 -0
- package/.agent/scripts/code-audit-helper.sh +5 -0
- package/.agent/scripts/coderabbit-cli.sh +417 -0
- package/.agent/scripts/coderabbit-pro-analysis.sh +238 -0
- package/.agent/scripts/commands/code-simplifier.md +86 -0
- package/.agent/scripts/commands/full-loop.md +246 -0
- package/.agent/scripts/commands/postflight-loop.md +103 -0
- package/.agent/scripts/commands/recall.md +182 -0
- package/.agent/scripts/commands/remember.md +132 -0
- package/.agent/scripts/commands/save-todo.md +175 -0
- package/.agent/scripts/commands/session-review.md +154 -0
- package/.agent/scripts/comprehensive-quality-fix.sh +106 -0
- package/.agent/scripts/context-builder-helper.sh +522 -0
- package/.agent/scripts/coolify-cli-helper.sh +674 -0
- package/.agent/scripts/coolify-helper.sh +380 -0
- package/.agent/scripts/crawl4ai-examples.sh +401 -0
- package/.agent/scripts/crawl4ai-helper.sh +1078 -0
- package/.agent/scripts/crewai-helper.sh +681 -0
- package/.agent/scripts/dev-browser-helper.sh +513 -0
- package/.agent/scripts/dns-helper.sh +396 -0
- package/.agent/scripts/domain-research-helper.sh +917 -0
- package/.agent/scripts/dspy-helper.sh +285 -0
- package/.agent/scripts/dspyground-helper.sh +291 -0
- package/.agent/scripts/eeat-score-helper.sh +1242 -0
- package/.agent/scripts/efficient-return-fix.sh +92 -0
- package/.agent/scripts/extract-opencode-prompts.sh +128 -0
- package/.agent/scripts/find-missing-returns.sh +113 -0
- package/.agent/scripts/fix-auth-headers.sh +104 -0
- package/.agent/scripts/fix-common-strings.sh +254 -0
- package/.agent/scripts/fix-content-type.sh +100 -0
- package/.agent/scripts/fix-error-messages.sh +130 -0
- package/.agent/scripts/fix-misplaced-returns.sh +74 -0
- package/.agent/scripts/fix-remaining-literals.sh +152 -0
- package/.agent/scripts/fix-return-statements.sh +41 -0
- package/.agent/scripts/fix-s131-default-cases.sh +249 -0
- package/.agent/scripts/fix-sc2155-simple.sh +102 -0
- package/.agent/scripts/fix-shellcheck-critical.sh +187 -0
- package/.agent/scripts/fix-string-literals.sh +273 -0
- package/.agent/scripts/full-loop-helper.sh +773 -0
- package/.agent/scripts/generate-opencode-agents.sh +497 -0
- package/.agent/scripts/generate-opencode-commands.sh +1629 -0
- package/.agent/scripts/generate-skills.sh +366 -0
- package/.agent/scripts/git-platforms-helper.sh +640 -0
- package/.agent/scripts/gitea-cli-helper.sh +743 -0
- package/.agent/scripts/github-cli-helper.sh +702 -0
- package/.agent/scripts/gitlab-cli-helper.sh +682 -0
- package/.agent/scripts/gsc-add-user-helper.sh +325 -0
- package/.agent/scripts/gsc-sitemap-helper.sh +678 -0
- package/.agent/scripts/hetzner-helper.sh +485 -0
- package/.agent/scripts/hostinger-helper.sh +229 -0
- package/.agent/scripts/keyword-research-helper.sh +1815 -0
- package/.agent/scripts/langflow-helper.sh +544 -0
- package/.agent/scripts/linkedin-automation.py +241 -0
- package/.agent/scripts/linter-manager.sh +599 -0
- package/.agent/scripts/linters-local.sh +434 -0
- package/.agent/scripts/list-keys-helper.sh +488 -0
- package/.agent/scripts/local-browser-automation.py +339 -0
- package/.agent/scripts/localhost-helper.sh +744 -0
- package/.agent/scripts/loop-common.sh +806 -0
- package/.agent/scripts/mainwp-helper.sh +728 -0
- package/.agent/scripts/markdown-formatter.sh +338 -0
- package/.agent/scripts/markdown-lint-fix.sh +311 -0
- package/.agent/scripts/mass-fix-returns.sh +58 -0
- package/.agent/scripts/mcp-diagnose.sh +167 -0
- package/.agent/scripts/mcp-inspector-helper.sh +449 -0
- package/.agent/scripts/memory-helper.sh +650 -0
- package/.agent/scripts/monitor-code-review.sh +255 -0
- package/.agent/scripts/onboarding-helper.sh +706 -0
- package/.agent/scripts/opencode-github-setup-helper.sh +797 -0
- package/.agent/scripts/opencode-test-helper.sh +213 -0
- package/.agent/scripts/pagespeed-helper.sh +464 -0
- package/.agent/scripts/pandoc-helper.sh +362 -0
- package/.agent/scripts/postflight-check.sh +555 -0
- package/.agent/scripts/pre-commit-hook.sh +259 -0
- package/.agent/scripts/pre-edit-check.sh +169 -0
- package/.agent/scripts/qlty-cli.sh +356 -0
- package/.agent/scripts/quality-cli-manager.sh +525 -0
- package/.agent/scripts/quality-feedback-helper.sh +462 -0
- package/.agent/scripts/quality-fix.sh +263 -0
- package/.agent/scripts/quality-loop-helper.sh +1108 -0
- package/.agent/scripts/ralph-loop-helper.sh +836 -0
- package/.agent/scripts/ralph-upstream-check.sh +341 -0
- package/.agent/scripts/secretlint-helper.sh +847 -0
- package/.agent/scripts/servers-helper.sh +241 -0
- package/.agent/scripts/ses-helper.sh +619 -0
- package/.agent/scripts/session-review-helper.sh +404 -0
- package/.agent/scripts/setup-linters-wizard.sh +379 -0
- package/.agent/scripts/setup-local-api-keys.sh +330 -0
- package/.agent/scripts/setup-mcp-integrations.sh +472 -0
- package/.agent/scripts/shared-constants.sh +246 -0
- package/.agent/scripts/site-crawler-helper.sh +1487 -0
- package/.agent/scripts/snyk-helper.sh +940 -0
- package/.agent/scripts/sonarcloud-autofix.sh +193 -0
- package/.agent/scripts/sonarcloud-cli.sh +191 -0
- package/.agent/scripts/sonarscanner-cli.sh +455 -0
- package/.agent/scripts/spaceship-helper.sh +747 -0
- package/.agent/scripts/stagehand-helper.sh +321 -0
- package/.agent/scripts/stagehand-python-helper.sh +321 -0
- package/.agent/scripts/stagehand-python-setup.sh +441 -0
- package/.agent/scripts/stagehand-setup.sh +439 -0
- package/.agent/scripts/system-cleanup.sh +340 -0
- package/.agent/scripts/terminal-title-helper.sh +388 -0
- package/.agent/scripts/terminal-title-setup.sh +549 -0
- package/.agent/scripts/test-stagehand-both-integration.sh +317 -0
- package/.agent/scripts/test-stagehand-integration.sh +309 -0
- package/.agent/scripts/test-stagehand-python-integration.sh +341 -0
- package/.agent/scripts/todo-ready.sh +263 -0
- package/.agent/scripts/tool-version-check.sh +362 -0
- package/.agent/scripts/toon-helper.sh +469 -0
- package/.agent/scripts/twilio-helper.sh +917 -0
- package/.agent/scripts/updown-helper.sh +279 -0
- package/.agent/scripts/validate-mcp-integrations.sh +250 -0
- package/.agent/scripts/validate-version-consistency.sh +131 -0
- package/.agent/scripts/vaultwarden-helper.sh +597 -0
- package/.agent/scripts/vercel-cli-helper.sh +816 -0
- package/.agent/scripts/verify-mirrors.sh +169 -0
- package/.agent/scripts/version-manager.sh +831 -0
- package/.agent/scripts/webhosting-helper.sh +471 -0
- package/.agent/scripts/webhosting-verify.sh +238 -0
- package/.agent/scripts/wordpress-mcp-helper.sh +508 -0
- package/.agent/scripts/worktree-helper.sh +595 -0
- package/.agent/scripts/worktree-sessions.sh +577 -0
- package/.agent/seo/dataforseo.md +215 -0
- package/.agent/seo/domain-research.md +532 -0
- package/.agent/seo/eeat-score.md +659 -0
- package/.agent/seo/google-search-console.md +366 -0
- package/.agent/seo/gsc-sitemaps.md +282 -0
- package/.agent/seo/keyword-research.md +521 -0
- package/.agent/seo/serper.md +278 -0
- package/.agent/seo/site-crawler.md +387 -0
- package/.agent/seo.md +236 -0
- package/.agent/services/accounting/quickfile.md +159 -0
- package/.agent/services/communications/telfon.md +470 -0
- package/.agent/services/communications/twilio.md +569 -0
- package/.agent/services/crm/fluentcrm.md +449 -0
- package/.agent/services/email/ses.md +399 -0
- package/.agent/services/hosting/101domains.md +378 -0
- package/.agent/services/hosting/closte.md +177 -0
- package/.agent/services/hosting/cloudflare.md +251 -0
- package/.agent/services/hosting/cloudron.md +478 -0
- package/.agent/services/hosting/dns-providers.md +335 -0
- package/.agent/services/hosting/domain-purchasing.md +344 -0
- package/.agent/services/hosting/hetzner.md +327 -0
- package/.agent/services/hosting/hostinger.md +287 -0
- package/.agent/services/hosting/localhost.md +419 -0
- package/.agent/services/hosting/spaceship.md +353 -0
- package/.agent/services/hosting/webhosting.md +330 -0
- package/.agent/social-media.md +69 -0
- package/.agent/templates/plans-template.md +114 -0
- package/.agent/templates/prd-template.md +129 -0
- package/.agent/templates/tasks-template.md +108 -0
- package/.agent/templates/todo-template.md +89 -0
- package/.agent/tools/ai-assistants/agno.md +471 -0
- package/.agent/tools/ai-assistants/capsolver.md +326 -0
- package/.agent/tools/ai-assistants/configuration.md +221 -0
- package/.agent/tools/ai-assistants/overview.md +209 -0
- package/.agent/tools/ai-assistants/status.md +171 -0
- package/.agent/tools/ai-assistants/windsurf.md +193 -0
- package/.agent/tools/ai-orchestration/autogen.md +406 -0
- package/.agent/tools/ai-orchestration/crewai.md +445 -0
- package/.agent/tools/ai-orchestration/langflow.md +405 -0
- package/.agent/tools/ai-orchestration/openprose.md +487 -0
- package/.agent/tools/ai-orchestration/overview.md +362 -0
- package/.agent/tools/ai-orchestration/packaging.md +647 -0
- package/.agent/tools/browser/agent-browser.md +464 -0
- package/.agent/tools/browser/browser-automation.md +400 -0
- package/.agent/tools/browser/chrome-devtools.md +282 -0
- package/.agent/tools/browser/crawl4ai-integration.md +422 -0
- package/.agent/tools/browser/crawl4ai-resources.md +277 -0
- package/.agent/tools/browser/crawl4ai-usage.md +416 -0
- package/.agent/tools/browser/crawl4ai.md +585 -0
- package/.agent/tools/browser/dev-browser.md +341 -0
- package/.agent/tools/browser/pagespeed.md +260 -0
- package/.agent/tools/browser/playwright.md +266 -0
- package/.agent/tools/browser/playwriter.md +310 -0
- package/.agent/tools/browser/stagehand-examples.md +456 -0
- package/.agent/tools/browser/stagehand-python.md +483 -0
- package/.agent/tools/browser/stagehand.md +421 -0
- package/.agent/tools/build-agent/agent-review.md +224 -0
- package/.agent/tools/build-agent/build-agent.md +784 -0
- package/.agent/tools/build-mcp/aidevops-plugin.md +476 -0
- package/.agent/tools/build-mcp/api-wrapper.md +445 -0
- package/.agent/tools/build-mcp/build-mcp.md +240 -0
- package/.agent/tools/build-mcp/deployment.md +401 -0
- package/.agent/tools/build-mcp/server-patterns.md +632 -0
- package/.agent/tools/build-mcp/transports.md +366 -0
- package/.agent/tools/code-review/auditing.md +383 -0
- package/.agent/tools/code-review/automation.md +219 -0
- package/.agent/tools/code-review/best-practices.md +203 -0
- package/.agent/tools/code-review/codacy.md +151 -0
- package/.agent/tools/code-review/code-simplifier.md +174 -0
- package/.agent/tools/code-review/code-standards.md +309 -0
- package/.agent/tools/code-review/coderabbit.md +101 -0
- package/.agent/tools/code-review/management.md +155 -0
- package/.agent/tools/code-review/qlty.md +248 -0
- package/.agent/tools/code-review/secretlint.md +565 -0
- package/.agent/tools/code-review/setup.md +250 -0
- package/.agent/tools/code-review/snyk.md +563 -0
- package/.agent/tools/code-review/tools.md +230 -0
- package/.agent/tools/content/summarize.md +353 -0
- package/.agent/tools/context/augment-context-engine.md +468 -0
- package/.agent/tools/context/context-builder-agent.md +76 -0
- package/.agent/tools/context/context-builder.md +375 -0
- package/.agent/tools/context/context7.md +371 -0
- package/.agent/tools/context/dspy.md +302 -0
- package/.agent/tools/context/dspyground.md +374 -0
- package/.agent/tools/context/llm-tldr.md +219 -0
- package/.agent/tools/context/osgrep.md +488 -0
- package/.agent/tools/context/prompt-optimization.md +338 -0
- package/.agent/tools/context/toon.md +292 -0
- package/.agent/tools/conversion/pandoc.md +304 -0
- package/.agent/tools/credentials/api-key-management.md +154 -0
- package/.agent/tools/credentials/api-key-setup.md +224 -0
- package/.agent/tools/credentials/environment-variables.md +180 -0
- package/.agent/tools/credentials/vaultwarden.md +382 -0
- package/.agent/tools/data-extraction/outscraper.md +974 -0
- package/.agent/tools/deployment/coolify-cli.md +388 -0
- package/.agent/tools/deployment/coolify-setup.md +353 -0
- package/.agent/tools/deployment/coolify.md +345 -0
- package/.agent/tools/deployment/vercel.md +390 -0
- package/.agent/tools/git/authentication.md +132 -0
- package/.agent/tools/git/gitea-cli.md +193 -0
- package/.agent/tools/git/github-actions.md +207 -0
- package/.agent/tools/git/github-cli.md +223 -0
- package/.agent/tools/git/gitlab-cli.md +190 -0
- package/.agent/tools/git/opencode-github-security.md +350 -0
- package/.agent/tools/git/opencode-github.md +328 -0
- package/.agent/tools/git/opencode-gitlab.md +252 -0
- package/.agent/tools/git/security.md +196 -0
- package/.agent/tools/git.md +207 -0
- package/.agent/tools/opencode/oh-my-opencode.md +375 -0
- package/.agent/tools/opencode/opencode-anthropic-auth.md +446 -0
- package/.agent/tools/opencode/opencode.md +651 -0
- package/.agent/tools/social-media/bird.md +437 -0
- package/.agent/tools/task-management/beads.md +336 -0
- package/.agent/tools/terminal/terminal-title.md +251 -0
- package/.agent/tools/ui/shadcn.md +196 -0
- package/.agent/tools/ui/ui-skills.md +115 -0
- package/.agent/tools/wordpress/localwp.md +311 -0
- package/.agent/tools/wordpress/mainwp.md +391 -0
- package/.agent/tools/wordpress/scf.md +527 -0
- package/.agent/tools/wordpress/wp-admin.md +729 -0
- package/.agent/tools/wordpress/wp-dev.md +940 -0
- package/.agent/tools/wordpress/wp-preferred.md +398 -0
- package/.agent/tools/wordpress.md +95 -0
- package/.agent/workflows/branch/bugfix.md +63 -0
- package/.agent/workflows/branch/chore.md +95 -0
- package/.agent/workflows/branch/experiment.md +115 -0
- package/.agent/workflows/branch/feature.md +59 -0
- package/.agent/workflows/branch/hotfix.md +98 -0
- package/.agent/workflows/branch/refactor.md +92 -0
- package/.agent/workflows/branch/release.md +96 -0
- package/.agent/workflows/branch.md +347 -0
- package/.agent/workflows/bug-fixing.md +267 -0
- package/.agent/workflows/changelog.md +129 -0
- package/.agent/workflows/code-audit-remote.md +279 -0
- package/.agent/workflows/conversation-starter.md +69 -0
- package/.agent/workflows/error-feedback.md +578 -0
- package/.agent/workflows/feature-development.md +355 -0
- package/.agent/workflows/git-workflow.md +702 -0
- package/.agent/workflows/multi-repo-workspace.md +268 -0
- package/.agent/workflows/plans.md +709 -0
- package/.agent/workflows/postflight.md +604 -0
- package/.agent/workflows/pr.md +571 -0
- package/.agent/workflows/preflight.md +278 -0
- package/.agent/workflows/ralph-loop.md +773 -0
- package/.agent/workflows/release.md +498 -0
- package/.agent/workflows/session-manager.md +254 -0
- package/.agent/workflows/session-review.md +311 -0
- package/.agent/workflows/sql-migrations.md +631 -0
- package/.agent/workflows/version-bump.md +283 -0
- package/.agent/workflows/wiki-update.md +333 -0
- package/.agent/workflows/worktree.md +477 -0
- package/LICENSE +21 -0
- package/README.md +1446 -0
- package/VERSION +1 -0
- package/aidevops.sh +1746 -0
- package/bin/aidevops +21 -0
- package/package.json +75 -0
- package/scripts/npm-postinstall.js +60 -0
- package/setup.sh +2366 -0
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: CrewAI multi-agent orchestration - setup, usage, and integration
|
|
3
|
+
mode: subagent
|
|
4
|
+
tools:
|
|
5
|
+
read: true
|
|
6
|
+
write: true
|
|
7
|
+
edit: true
|
|
8
|
+
bash: true
|
|
9
|
+
glob: true
|
|
10
|
+
grep: true
|
|
11
|
+
webfetch: true
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# CrewAI - Multi-Agent Orchestration Framework
|
|
15
|
+
|
|
16
|
+
<!-- AI-CONTEXT-START -->
|
|
17
|
+
|
|
18
|
+
## Quick Reference
|
|
19
|
+
|
|
20
|
+
- **Purpose**: Role-playing autonomous AI agents working as teams
|
|
21
|
+
- **License**: MIT (fully open-source, commercial use permitted)
|
|
22
|
+
- **Setup**: `bash .agent/scripts/crewai-helper.sh setup`
|
|
23
|
+
- **Start**: `~/.aidevops/scripts/start-crewai-studio.sh`
|
|
24
|
+
- **Stop**: `~/.aidevops/scripts/stop-crewai-studio.sh`
|
|
25
|
+
- **Status**: `~/.aidevops/scripts/crewai-status.sh`
|
|
26
|
+
- **URL**: http://localhost:8501 (CrewAI Studio)
|
|
27
|
+
- **Config**: `~/.aidevops/crewai/.env`
|
|
28
|
+
- **Install**: `pip install crewai` in venv at `~/.aidevops/crewai/venv/`
|
|
29
|
+
|
|
30
|
+
**Key Features**:
|
|
31
|
+
|
|
32
|
+
- Role-based autonomous agents
|
|
33
|
+
- Hierarchical task delegation
|
|
34
|
+
- YAML-based configuration
|
|
35
|
+
- Flows for event-driven control
|
|
36
|
+
- Sequential and parallel processes
|
|
37
|
+
|
|
38
|
+
<!-- AI-CONTEXT-END -->
|
|
39
|
+
|
|
40
|
+
## Overview
|
|
41
|
+
|
|
42
|
+
CrewAI is a lean, lightning-fast Python framework for orchestrating role-playing, autonomous AI agents. It empowers agents to work together seamlessly, tackling complex tasks through collaborative intelligence.
|
|
43
|
+
|
|
44
|
+
## Key Concepts
|
|
45
|
+
|
|
46
|
+
### Crews
|
|
47
|
+
|
|
48
|
+
Teams of AI agents with defined roles, goals, and backstories working together on tasks.
|
|
49
|
+
|
|
50
|
+
### Agents
|
|
51
|
+
|
|
52
|
+
Individual AI entities with:
|
|
53
|
+
|
|
54
|
+
- **Role**: Job title/function (e.g., "Senior Data Researcher")
|
|
55
|
+
- **Goal**: What the agent aims to achieve
|
|
56
|
+
- **Backstory**: Context that shapes behavior
|
|
57
|
+
- **Tools**: Capabilities the agent can use
|
|
58
|
+
|
|
59
|
+
### Tasks
|
|
60
|
+
|
|
61
|
+
Specific assignments with:
|
|
62
|
+
|
|
63
|
+
- **Description**: What needs to be done
|
|
64
|
+
- **Expected Output**: Format/content of results
|
|
65
|
+
- **Agent**: Who performs the task
|
|
66
|
+
|
|
67
|
+
### Flows
|
|
68
|
+
|
|
69
|
+
Event-driven workflows for precise control over complex automations.
|
|
70
|
+
|
|
71
|
+
## Installation
|
|
72
|
+
|
|
73
|
+
### Automated Setup (Recommended)
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Run the setup script
|
|
77
|
+
bash .agent/scripts/crewai-helper.sh setup
|
|
78
|
+
|
|
79
|
+
# Configure API keys
|
|
80
|
+
nano ~/.aidevops/crewai/.env
|
|
81
|
+
|
|
82
|
+
# Start CrewAI Studio
|
|
83
|
+
~/.aidevops/scripts/start-crewai-studio.sh
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Manual Installation
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
# Create directory and virtual environment
|
|
90
|
+
mkdir -p ~/.aidevops/crewai
|
|
91
|
+
cd ~/.aidevops/crewai
|
|
92
|
+
python3 -m venv venv
|
|
93
|
+
source venv/bin/activate
|
|
94
|
+
|
|
95
|
+
# Install CrewAI
|
|
96
|
+
pip install crewai
|
|
97
|
+
|
|
98
|
+
# Install with tools
|
|
99
|
+
pip install 'crewai[tools]'
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Create a New Project
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Create a new CrewAI project
|
|
106
|
+
crewai create crew my-project
|
|
107
|
+
cd my-project
|
|
108
|
+
|
|
109
|
+
# Install dependencies
|
|
110
|
+
crewai install
|
|
111
|
+
|
|
112
|
+
# Run the crew
|
|
113
|
+
crewai run
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Configuration
|
|
117
|
+
|
|
118
|
+
### Environment Variables
|
|
119
|
+
|
|
120
|
+
Create `~/.aidevops/crewai/.env`:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
# OpenAI Configuration (Required)
|
|
124
|
+
OPENAI_API_KEY=your_openai_api_key_here
|
|
125
|
+
|
|
126
|
+
# Anthropic Configuration (Optional)
|
|
127
|
+
ANTHROPIC_API_KEY=your_anthropic_key_here
|
|
128
|
+
|
|
129
|
+
# Serper API for web search (Optional)
|
|
130
|
+
SERPER_API_KEY=your_serper_key_here
|
|
131
|
+
|
|
132
|
+
# Local LLM (Ollama)
|
|
133
|
+
OLLAMA_BASE_URL=http://localhost:11434
|
|
134
|
+
|
|
135
|
+
# CrewAI Configuration
|
|
136
|
+
CREWAI_TELEMETRY=false
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### YAML Configuration
|
|
140
|
+
|
|
141
|
+
**agents.yaml**:
|
|
142
|
+
|
|
143
|
+
```yaml
|
|
144
|
+
researcher:
|
|
145
|
+
role: >
|
|
146
|
+
{topic} Senior Data Researcher
|
|
147
|
+
goal: >
|
|
148
|
+
Uncover cutting-edge developments in {topic}
|
|
149
|
+
backstory: >
|
|
150
|
+
You're a seasoned researcher with a knack for uncovering the latest
|
|
151
|
+
developments in {topic}. Known for your ability to find the most relevant
|
|
152
|
+
information and present it in a clear and concise manner.
|
|
153
|
+
|
|
154
|
+
analyst:
|
|
155
|
+
role: >
|
|
156
|
+
{topic} Reporting Analyst
|
|
157
|
+
goal: >
|
|
158
|
+
Create detailed reports based on {topic} data analysis
|
|
159
|
+
backstory: >
|
|
160
|
+
You're a meticulous analyst with a keen eye for detail. You're known for
|
|
161
|
+
your ability to turn complex data into clear and concise reports.
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**tasks.yaml**:
|
|
165
|
+
|
|
166
|
+
```yaml
|
|
167
|
+
research_task:
|
|
168
|
+
description: >
|
|
169
|
+
Conduct thorough research about {topic}.
|
|
170
|
+
Make sure you find any interesting and relevant information.
|
|
171
|
+
expected_output: >
|
|
172
|
+
A list with 10 bullet points of the most relevant information about {topic}
|
|
173
|
+
agent: researcher
|
|
174
|
+
|
|
175
|
+
reporting_task:
|
|
176
|
+
description: >
|
|
177
|
+
Review the context and expand each topic into a full section for a report.
|
|
178
|
+
expected_output: >
|
|
179
|
+
A fully fledged report with main topics, each with a full section.
|
|
180
|
+
Formatted as markdown.
|
|
181
|
+
agent: analyst
|
|
182
|
+
output_file: report.md
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
## Usage
|
|
186
|
+
|
|
187
|
+
### Basic Crew Example
|
|
188
|
+
|
|
189
|
+
```python
|
|
190
|
+
from crewai import Agent, Crew, Process, Task
|
|
191
|
+
|
|
192
|
+
# Define agents
|
|
193
|
+
researcher = Agent(
|
|
194
|
+
role="Senior Researcher",
|
|
195
|
+
goal="Uncover groundbreaking technologies",
|
|
196
|
+
backstory="You are an expert researcher with deep knowledge of AI.",
|
|
197
|
+
verbose=True
|
|
198
|
+
)
|
|
199
|
+
|
|
200
|
+
writer = Agent(
|
|
201
|
+
role="Tech Writer",
|
|
202
|
+
goal="Create engaging content about technology",
|
|
203
|
+
backstory="You are a skilled writer who makes complex topics accessible.",
|
|
204
|
+
verbose=True
|
|
205
|
+
)
|
|
206
|
+
|
|
207
|
+
# Define tasks
|
|
208
|
+
research_task = Task(
|
|
209
|
+
description="Research the latest AI developments",
|
|
210
|
+
expected_output="A comprehensive summary of AI trends",
|
|
211
|
+
agent=researcher
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
writing_task = Task(
|
|
215
|
+
description="Write an article based on the research",
|
|
216
|
+
expected_output="A well-written article about AI",
|
|
217
|
+
agent=writer
|
|
218
|
+
)
|
|
219
|
+
|
|
220
|
+
# Create and run crew
|
|
221
|
+
crew = Crew(
|
|
222
|
+
agents=[researcher, writer],
|
|
223
|
+
tasks=[research_task, writing_task],
|
|
224
|
+
process=Process.sequential,
|
|
225
|
+
verbose=True
|
|
226
|
+
)
|
|
227
|
+
|
|
228
|
+
result = crew.kickoff(inputs={"topic": "AI Agents"})
|
|
229
|
+
print(result)
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Using Flows
|
|
233
|
+
|
|
234
|
+
```python
|
|
235
|
+
from crewai.flow.flow import Flow, listen, start, router
|
|
236
|
+
from crewai import Crew, Agent, Task
|
|
237
|
+
from pydantic import BaseModel
|
|
238
|
+
|
|
239
|
+
class MarketState(BaseModel):
|
|
240
|
+
sentiment: str = "neutral"
|
|
241
|
+
confidence: float = 0.0
|
|
242
|
+
|
|
243
|
+
class AnalysisFlow(Flow[MarketState]):
|
|
244
|
+
@start()
|
|
245
|
+
def fetch_data(self):
|
|
246
|
+
return {"sector": "tech", "timeframe": "1W"}
|
|
247
|
+
|
|
248
|
+
@listen(fetch_data)
|
|
249
|
+
def analyze_with_crew(self, data):
|
|
250
|
+
analyst = Agent(
|
|
251
|
+
role="Market Analyst",
|
|
252
|
+
goal="Analyze market data",
|
|
253
|
+
backstory="Expert in market analysis"
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
task = Task(
|
|
257
|
+
description="Analyze {sector} sector for {timeframe}",
|
|
258
|
+
expected_output="Market analysis report",
|
|
259
|
+
agent=analyst
|
|
260
|
+
)
|
|
261
|
+
|
|
262
|
+
crew = Crew(agents=[analyst], tasks=[task])
|
|
263
|
+
return crew.kickoff(inputs=data)
|
|
264
|
+
|
|
265
|
+
@router(analyze_with_crew)
|
|
266
|
+
def route_result(self):
|
|
267
|
+
if self.state.confidence > 0.8:
|
|
268
|
+
return "high_confidence"
|
|
269
|
+
return "low_confidence"
|
|
270
|
+
|
|
271
|
+
# Run the flow
|
|
272
|
+
flow = AnalysisFlow()
|
|
273
|
+
result = flow.kickoff()
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
### CrewAI Studio (GUI)
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
# Start CrewAI Studio
|
|
280
|
+
~/.aidevops/scripts/start-crewai-studio.sh
|
|
281
|
+
|
|
282
|
+
# Access at http://localhost:8501
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
## Local LLM Support
|
|
286
|
+
|
|
287
|
+
### Using Ollama
|
|
288
|
+
|
|
289
|
+
```python
|
|
290
|
+
from crewai import Agent, LLM
|
|
291
|
+
|
|
292
|
+
# Configure Ollama
|
|
293
|
+
llm = LLM(
|
|
294
|
+
model="ollama/llama3.2",
|
|
295
|
+
base_url="http://localhost:11434"
|
|
296
|
+
)
|
|
297
|
+
|
|
298
|
+
agent = Agent(
|
|
299
|
+
role="Local AI Assistant",
|
|
300
|
+
goal="Help with tasks using local LLM",
|
|
301
|
+
backstory="You run entirely locally for privacy.",
|
|
302
|
+
llm=llm
|
|
303
|
+
)
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
### Using LM Studio
|
|
307
|
+
|
|
308
|
+
```python
|
|
309
|
+
from crewai import LLM
|
|
310
|
+
|
|
311
|
+
llm = LLM(
|
|
312
|
+
model="openai/local-model",
|
|
313
|
+
base_url="http://localhost:1234/v1",
|
|
314
|
+
api_key="not-needed"
|
|
315
|
+
)
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
## Git Integration
|
|
319
|
+
|
|
320
|
+
### Project Structure
|
|
321
|
+
|
|
322
|
+
```text
|
|
323
|
+
my-crew/
|
|
324
|
+
├── .gitignore
|
|
325
|
+
├── pyproject.toml
|
|
326
|
+
├── README.md
|
|
327
|
+
├── .env # gitignored
|
|
328
|
+
└── src/
|
|
329
|
+
└── my_crew/
|
|
330
|
+
├── __init__.py
|
|
331
|
+
├── main.py
|
|
332
|
+
├── crew.py
|
|
333
|
+
├── tools/
|
|
334
|
+
│ └── custom_tool.py
|
|
335
|
+
└── config/
|
|
336
|
+
├── agents.yaml # version controlled
|
|
337
|
+
└── tasks.yaml # version controlled
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### Version Control Best Practices
|
|
341
|
+
|
|
342
|
+
```bash
|
|
343
|
+
# .gitignore
|
|
344
|
+
.env
|
|
345
|
+
__pycache__/
|
|
346
|
+
*.pyc
|
|
347
|
+
.venv/
|
|
348
|
+
venv/
|
|
349
|
+
*.log
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
Track these files:
|
|
353
|
+
|
|
354
|
+
- `config/agents.yaml` - Agent definitions
|
|
355
|
+
- `config/tasks.yaml` - Task definitions
|
|
356
|
+
- `crew.py` - Crew orchestration logic
|
|
357
|
+
- `tools/*.py` - Custom tools
|
|
358
|
+
|
|
359
|
+
## Deployment
|
|
360
|
+
|
|
361
|
+
### Docker
|
|
362
|
+
|
|
363
|
+
```dockerfile
|
|
364
|
+
FROM python:3.11-slim
|
|
365
|
+
|
|
366
|
+
WORKDIR /app
|
|
367
|
+
COPY . .
|
|
368
|
+
|
|
369
|
+
RUN pip install crewai 'crewai[tools]'
|
|
370
|
+
|
|
371
|
+
CMD ["crewai", "run"]
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
### FastAPI Integration
|
|
375
|
+
|
|
376
|
+
```python
|
|
377
|
+
from fastapi import FastAPI
|
|
378
|
+
from crewai import Crew
|
|
379
|
+
|
|
380
|
+
app = FastAPI()
|
|
381
|
+
|
|
382
|
+
@app.post("/run-crew")
|
|
383
|
+
async def run_crew(topic: str):
|
|
384
|
+
crew = create_my_crew()
|
|
385
|
+
result = crew.kickoff(inputs={"topic": topic})
|
|
386
|
+
return {"result": str(result)}
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
## Integration Examples
|
|
390
|
+
|
|
391
|
+
### With Langflow
|
|
392
|
+
|
|
393
|
+
Use CrewAI agents as custom components in Langflow flows.
|
|
394
|
+
|
|
395
|
+
### With aidevops Workflows
|
|
396
|
+
|
|
397
|
+
```bash
|
|
398
|
+
# Create a DevOps automation crew
|
|
399
|
+
crewai create crew devops-automation
|
|
400
|
+
|
|
401
|
+
# Configure agents for:
|
|
402
|
+
# - Code review
|
|
403
|
+
# - Documentation
|
|
404
|
+
# - Testing
|
|
405
|
+
# - Deployment
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
## Troubleshooting
|
|
409
|
+
|
|
410
|
+
### Common Issues
|
|
411
|
+
|
|
412
|
+
**Import errors**:
|
|
413
|
+
|
|
414
|
+
```bash
|
|
415
|
+
# Ensure crewai is installed
|
|
416
|
+
pip install crewai 'crewai[tools]'
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
**API key errors**:
|
|
420
|
+
|
|
421
|
+
```bash
|
|
422
|
+
# Check environment
|
|
423
|
+
echo $OPENAI_API_KEY
|
|
424
|
+
|
|
425
|
+
# Or use .env file
|
|
426
|
+
source .env
|
|
427
|
+
```
|
|
428
|
+
|
|
429
|
+
**Memory issues with multiple agents**:
|
|
430
|
+
|
|
431
|
+
```python
|
|
432
|
+
# Reduce verbosity
|
|
433
|
+
agent = Agent(..., verbose=False)
|
|
434
|
+
|
|
435
|
+
# Use smaller models
|
|
436
|
+
llm = LLM(model="gpt-4o-mini")
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
## Resources
|
|
440
|
+
|
|
441
|
+
- **Documentation**: https://docs.crewai.com
|
|
442
|
+
- **GitHub**: https://github.com/crewAIInc/crewAI
|
|
443
|
+
- **Community**: https://community.crewai.com
|
|
444
|
+
- **Examples**: https://github.com/crewAIInc/crewAI-examples
|
|
445
|
+
- **Courses**: https://learn.crewai.com
|