https://github.com/askalf/askalf
The first self-healing AI workforce. Autonomous agents with a nervous system, immune system, and collective memory. Self-hosted or standalone (npx create-askalf). Open source.
https://github.com/askalf/askalf
agent-framework ai ai-agents ai-workforce autonomous-agents claude collective-memory docker llm mcp multi-agent nervous-system ollama open-source self-healing self-hosted typescript
Last synced: 11 days ago
JSON representation
The first self-healing AI workforce. Autonomous agents with a nervous system, immune system, and collective memory. Self-hosted or standalone (npx create-askalf). Open source.
- Host: GitHub
- URL: https://github.com/askalf/askalf
- Owner: askalf
- License: mit
- Created: 2026-02-22T19:52:02.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-04-03T01:49:35.000Z (15 days ago)
- Last Synced: 2026-04-03T04:45:01.780Z (14 days ago)
- Topics: agent-framework, ai, ai-agents, ai-workforce, autonomous-agents, claude, collective-memory, docker, llm, mcp, multi-agent, nervous-system, ollama, open-source, self-healing, self-hosted, typescript
- Language: TypeScript
- Homepage: https://askalf.org
- Size: 19.6 MB
- Stars: 7
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# AskAlf
### The First Self-Healing AI Workforce
Autonomous agents with a nervous system, immune system, and collective memory. They communicate, heal, learn overnight, and evolve through natural selection.
**Not a chatbot. An organism.**
[](https://github.com/askalf/askalf/releases)
[](https://www.npmjs.com/package/@askalf/agent)
[](LICENSE)
[](https://github.com/askalf/askalf/actions)
[](https://discord.gg/fENVZpdYcX)
**[askalf.org](https://askalf.org)** · **[Demo](https://demo.askalf.org)** · **[Discord](https://discord.gg/fENVZpdYcX)** · **[@ask_alf](https://x.com/ask_alf)** · **[Changelog](CHANGELOG.md)**

---
## Get Started
### Standalone
```bash
npx create-askalf
```
One command. Runs in a single Node.js process with PGlite (in-process PostgreSQL) and in-memory cache. No Docker, no Postgres, no Redis. Just Node.js.
### Docker (Production)
```bash
curl -fsSL https://get.askalf.org | bash
```
Full stack: PostgreSQL + pgvector, Redis, Ollama, SearxNG. 6 core containers + 3 optional. Running at `localhost:3001` in 60 seconds.
### Migrate: Standalone → Docker
Outgrew standalone? One command to migrate — keeps your data, secrets, and config:
```bash
bash scripts/migrate-to-docker.sh
```
Exports PGlite database, generates Docker `.env` with your existing secrets, imports data into PostgreSQL. Your standalone install stays untouched.
---
## Always Running
Pick any 8-hour window. This is what you'll find.
```
09:12 AM Analytics pulls weekly traffic report. Engagement up 23%. $0.03
09:45 AM Support resolves 4 tickets. Avg response time: 3 minutes. $0.06
10:30 AM Writer drafts blog post on Q1 results. 2,400 words. $0.11
11:15 AM Watchdog catches API latency spike. Creates ticket.
11:17 AM Builder claims ticket, traces root cause, deploys fix. $0.14
01:20 PM Social schedules 6 posts across 3 platforms. $0.04
02:00 PM Researcher competitive analysis complete. 3 opportunities flagged. $0.18
02:30 PM Fleet Chief Dream Cycle. Replays 31 executions. 4 patterns extracted.
04:00 PM Fleet Chief Rewrites Support prompt — resolution quality up 12%.
05:12 PM Watchdog All clear. 8 agents, 24 executions, 8 hours. $0.71
```
---
## The Organism
Six biological systems working together.
**Nervous System** — Agents signal each other in real time. Confidence, urgency, stuck status propagate across the fleet. Fleet Chief auto-intervenes on critical signals.
**Immune System** — When something breaks, agents form response teams. After fixing, antibodies prevent the same issue from recurring.
**Collective Memory** — Shared knowledge graph that grows with every execution. Agents query it for context before acting.
**Dream Cycles** — 2–6 AM: the fleet replays its day, extracts patterns, writes procedural memories, generates predictions.
**The Watcher** — Learns your daily patterns. Pre-runs tasks 30 minutes before you ask.
**Natural Selection** — Every agent scored on completion, cost, consistency, quality. Top performers promoted. Underperformers retrained. The fleet evolves itself.
---
## The Fleet
| Agent | Role | Model | Schedule |
|-------|------|-------|----------|
| Fleet Chief | Meta-Agent | Sonnet | 6hr |
| Builder | Engineer | Sonnet | On tickets |
| Watchdog | Monitor | Haiku | Hourly |
| Security Auditor | Security | Sonnet | 6hr |
| Cost Optimizer | Analyst | Haiku | 12hr |
| GitHub Manager | DevOps | Haiku | 2hr |
| Discord Manager | Community | Haiku | 2hr |
| Analytics Tracker | Metrics | Haiku | 6hr |
| KB Writer | Documentation | Haiku | 12hr |
Fleet Chief creates new agents when gaps are found. The fleet grows on its own.
---
## Try the Demo
**[demo.askalf.org](https://demo.askalf.org)** — Tell Alf what you need. Watch it design an agent team in real time.
---
## Any Industry
| | | | | |
|---|---|---|---|---|
| Software Dev | DevOps | Marketing | Support | E-Commerce |
| Research | Personal | Agency | Finance | Custom |
109 templates across 16 categories.
---
## Connect Any Device
```bash
npm i -g @askalf/agent
askalf-agent connect --url ws://server:3005 --name prod-box --install
```
Installs as a service (systemd / launchd / Windows). Runs on boot. Auto-reconnect. See [@askalf/agent](https://www.npmjs.com/package/@askalf/agent).
---
## Under the Hood
| | |
|---|---|
| **Templates** | 109 across 16 categories |
| **Tools** | 70 MCP tools |
| **Channels** | 16 — Slack, Discord, Telegram, WhatsApp, Teams, Email, Twilio, and more |
| **Integrations** | 47 across 13 categories |
| **AI Models** | Claude, GPT, Gemini, Llama, Mistral, DeepSeek, Ollama — any OpenAI-compatible API |
| **Federation** | Cross-instance learning (opt-in) |
**Stack:** TypeScript · Node.js 22 · React 18 · Fastify 5 · PostgreSQL 17 · pgvector · Redis 8 · PGlite · Docker
---
## Why AskAlf
| | AskAlf | AutoGPT | CrewAI | Relevance AI | n8n |
|---|:---:|:---:|:---:|:---:|:---:|
| Open source + self-hosted | ✓ | ✓ | ✓ | ✗ | ✓ |
| Standalone (no infra needed) | ✓ | ✗ | ✗ | ✗ | ✗ |
| Autonomous 24/7 fleet | ✓ | ~ | ✗ | ~ | ~ |
| Agent-to-agent communication | ✓ | ✗ | ~ | ✗ | ✗ |
| Self-healing (immune system) | ✓ | ✗ | ✗ | ✗ | ✗ |
| Overnight learning (dream cycles) | ✓ | ✗ | ✗ | ✗ | ✗ |
| Collective memory / knowledge graph | ✓ | ✗ | ✗ | ✗ | ✗ |
| Natural selection / reputation | ✓ | ✗ | ✗ | ✗ | ✗ |
| 109 pre-built templates | ✓ | ✗ | ~ | ~ | ✓ |
| Remote device execution | ✓ | ✗ | ✗ | ✗ | ✗ |
| Any AI model (bring your own) | ✓ | ~ | ✓ | ✗ | ✓ |
---
## Releases
| Version | Name | Highlights |
|---------|------|-----------|
| **v2.9.9** | Natural Selection | Standalone mode, reputation economy, federation |
| **v2.9.5** | The Immune System | Self-healing response teams, antibodies |
| **v2.9.0** | The Nervous System | Agent-to-agent signals, collective memory |
| **v2.8.0** | Self-Evolving | Dream cycles, The Watcher, webhook triggers |
| **v2.7.0** | Autonomous Fleet | Fleet Chief, Builder, unified dispatcher |
See [CHANGELOG](CHANGELOG.md) for full history.
---
**[askalf.org](https://askalf.org)** · **[Demo](https://demo.askalf.org)** · **[Discord](https://discord.gg/fENVZpdYcX)** · **[npm](https://www.npmjs.com/package/@askalf/agent)** · **[@ask_alf](https://x.com/ask_alf)**
MIT — [askalf.org](https://askalf.org)