Skip to content

Commit bf28e55

Browse files
ersinkocclaude
andcommitted
πŸ“ docs: remove all remaining background agent references
- CLAUDE.md: BackgroundAgentRunner β†’ ClawRunner, Fleet 4β†’5 workers - README.md: remove BG Agent section, API endpoints, DB tables, update service/repo lists - SERVICE_CATALOG.md: remove 3 deleted service entries - Migration 026: update subagent parent_type constraint ('background-agent' β†’ 'claw') - Update comments across core/gateway/ui/website Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2a447b5 commit bf28e55

File tree

12 files changed

+33
-101
lines changed

12 files changed

+33
-101
lines changed

β€ŽCLAUDE.mdβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ packages/
2828
- **Habit Tracking**: 8 AI tools in `packages/gateway/src/tools/habit-tools.ts`, DB repo in `db/repositories/habits.ts` (645 lines), REST API in `routes/productivity.ts`, HabitsPage UI with streak heatmap
2929
- **Utilities**: `TTLCache<K,V>` in `packages/gateway/src/utils/ttl-cache.ts` β€” generic cache with auto-prune. `chat-post-processor.ts` in `assistant/` β€” extracted from conversation-service
3030
- **Extension splits**: `extension-trigger-manager.ts` (trigger lifecycle), `extension-scanner.ts` (directory scanning), `cli-chat-parsers.ts` (CLI output parsers + arg builders)
31-
- **Cost tracking**: `calculateExecutionCost(provider, model, usage)` in `agent-runner-utils.ts` β€” wraps `@ownpilot/core` `calculateCost()`. Used by BackgroundAgentRunner, SubagentRunner, FleetWorker, SoulHeartbeatService
31+
- **Cost tracking**: `calculateExecutionCost(provider, model, usage)` in `agent-runner-utils.ts` β€” wraps `@ownpilot/core` `calculateCost()`. Used by ClawRunner, SubagentRunner, FleetWorker, SoulHeartbeatService
3232
- **Workflow system**: 24 node types (including `clawNode`), copilot prompt in `routes/workflow-copilot-prompt.ts`, executors in `services/workflow/node-executors.ts`, service in `services/workflow/workflow-service.ts`. Centralized `dispatchNode()` method handles all node types. Copilot uses short type names (e.g. `"llm"`, `"claw"`) β€” UI's `convertDefinitionToReactFlow()` converts to `*Node` suffix
33-
- **Fleet Command**: FleetManager + FleetWorker with 4 worker types (ai-chat, coding-cli, api-call, mcp-bridge). 68 tests in `fleet-manager.test.ts`. Task dependencies cascade failures via `failDependentTasks()`
33+
- **Fleet Command**: FleetManager + FleetWorker with 5 worker types (ai-chat, coding-cli, api-call, mcp-bridge, claw). 68 tests in `fleet-manager.test.ts`. Task dependencies cascade failures via `failDependentTasks()`
3434
- **Claw Runtime**: Unified autonomous agent composing LLM + workspace + soul + coding agents + 250+ tools. Types in `core/src/services/claw-types.ts`. Runner/Manager/Service in `gateway/src/services/claw-{runner,manager,service}.ts`. 16 claw tools + 7 management tools in `tools/claw-tools.ts` + `tools/claw-management-tools.ts`. DB: `claws`, `claw_sessions`, `claw_history`, `claw_audit_log` (migrations 022, 023). REST: `/api/v1/claws` (16 endpoints including `/stats`, `/audit`, `/deny-escalation`). UI: ClawsPage (8-tab management panel + search/filter + bulk actions) + ClawsWidget (live WS updates). 117+ tests. Modes: `continuous` / `interval` / `event` / `single-shot`. Limits: MAX_CONCURRENT_CLAWS=50, MAX_CLAW_DEPTH=3, mission 10K chars. `.claw/` directive system: INSTRUCTIONS.md, TASKS.md, MEMORY.md, LOG.md (auto-scaffolded, injected into prompt). Working Memory: `claw_set_context`/`claw_get_context` for persistent cross-cycle state. Stop conditions: `max_cycles:N`, `on_report`, `on_error`, `idle:N`. Auto-fail after 5 consecutive errors. Daily cleanup: 90d history, 30d audit retention. Workflow: `clawNode` type in workflow system. Triggers can call `start_claw` tool action
3535

3636
## Commands

β€ŽREADME.mdβ€Ž

Lines changed: 10 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# OwnPilot
22

3-
> Privacy-first personal AI assistant platform with Claw autonomous agents, soul agents, autonomous background agents, multi-agent orchestration, AI agent creator, tool orchestration, multi-provider support, MCP integration, voice pipeline, browser automation, IoT edge device control, and Telegram + WhatsApp connectivity.
3+
> Privacy-first personal AI assistant platform with Claw autonomous agents, soul agents, multi-agent orchestration, AI agent creator, tool orchestration, multi-provider support, MCP integration, voice pipeline, browser automation, IoT edge device control, and Telegram + WhatsApp connectivity.
44
>
55
>**Self-hosted. Your data stays yours.**
66
@@ -36,7 +36,6 @@
3636
- [Autonomous Hub](#autonomous-hub)
3737
- [Agent Orchestra](#agent-orchestra)
3838
- [Claw Agents](#claw-agents)
39-
- [Background Agents](#background-agents-1)
4039
- [Subagents](#subagents)
4140
- [Tool System](#tool-system)
4241
- [MCP Integration](#mcp-integration)
@@ -141,20 +140,9 @@
141140
- **6 Templates** β€” Research Agent, Code Reviewer, Data Analyst, Monitor & Alert, Content Creator, Event Reactor
142141
- **Resource Limits** β€” MAX_CONCURRENT_CLAWS=50, generous defaults (50 turns, 500 tool calls, 10min timeout, unlimited budget)
143142

144-
### Background Agents
145-
146-
- **Persistent Autonomous Agents** β€” Long-running agents that operate independently with configurable missions, schedules, and tool access
147-
- **3 Scheduling Modes** β€” Interval (fixed timer), continuous (adaptive delays), event-driven (reactive to triggers)
148-
- **Full Tool Access** β€” Same capabilities as chat agents: 250+ tools, extensions, plugins, MCP tools, memory injection
149-
- **Configurable Provider/Model** β€” Each agent can use a different AI provider and model, with fallback to system defaults
150-
- **Workspace Isolation** β€” Each agent gets an isolated file workspace for safe file operations
151-
- **Rate Limiting & Budget** β€” Cycles-per-hour enforcement, budget tracking with auto-stop, auto-pause on consecutive errors
152-
- **Session Persistence** β€” Agent state persisted to DB every 30 seconds, auto-recovery on server restart
153-
- **Inbox Messaging** β€” Send messages to running agents; agents process inbox at the start of each cycle
154-
155143
### Subagents
156144

157-
- **Parallel Task Delegation** β€” Chat agents and background agents can spawn lightweight child agents for concurrent task execution
145+
- **Parallel Task Delegation** β€” Chat agents and claw agents can spawn lightweight child agents for concurrent task execution
158146
- **Fire-and-Forget Model** β€” Spawn returns immediately with a session ID; parent polls for results via `check_subagent`/`get_subagent_result`
159147
- **Budget Enforcement** β€” Configurable concurrent limit (default 5), total spawn limit (default 20), and nesting depth cap (max 2 levels)
160148
- **Full Tool Access** β€” Subagents inherit the parent's full tool pipeline; optional `allowedTools` restriction
@@ -524,7 +512,7 @@ The API server built on [Hono](https://hono.dev/). Handles HTTP/WebSocket commun
524512
| **AI Configuration** | `models.ts`, `providers.ts`, `model-configs.ts`, `local-providers.ts`, `model-routing.ts` |
525513
| **Personal Data** | `personal-data.ts`, `personal-data-tools.ts`, `memories.ts`, `goals.ts`, `expenses.ts`, `custom-data.ts` |
526514
| **Productivity** | `productivity.ts` (Pomodoro, Habits, Captures) |
527-
| **Automation** | `triggers.ts`, `heartbeats.ts`, `plans.ts`, `autonomy.ts`, `workflows.ts`, `workflow-copilot.ts`, `background-agents.ts`, `souls.ts` |
515+
| **Automation** | `triggers.ts`, `heartbeats.ts`, `plans.ts`, `autonomy.ts`, `workflows.ts`, `workflow-copilot.ts`, `souls.ts` |
528516
| **Tools & Extensions** | `tools.ts`, `custom-tools.ts`, `plugins.ts`, `extensions.ts`, `skills.ts`, `mcp.ts`, `composio.ts` |
529517
| **Coding & CLI** | `coding-agents.ts`, `cli-tools.ts`, `cli-providers.ts` |
530518
| **Orchestration** | `orchestra.ts`, `artifacts.ts`, `browser.ts`, `voice.ts`, `bridges.ts` |
@@ -533,9 +521,9 @@ The API server built on [Hono](https://hono.dev/). Handles HTTP/WebSocket commun
533521
| **Configuration** | `settings.ts`, `config-services.ts`, `ui-auth.ts` |
534522
| **System** | `health.ts`, `dashboard.ts`, `costs.ts`, `audit.ts`, `debug.ts`, `database.ts`, `profile.ts`, `workspaces.ts`, `file-workspaces.ts`, `execution-permissions.ts`, `error-codes.ts` |
535523

536-
**Services (108):** MessageBus, ConfigCenter, ToolExecutor, ProviderService, McpClientService, McpServerService, ExtensionService, ComposioService, EmbeddingService, HeartbeatService, AuditService, PluginService, MemoryService, GoalService, TriggerService, PlanService, WorkspaceService, DatabaseService, SessionService, LogService, ResourceService, LocalDiscovery, WorkflowService, AgentSkillsParser, CodingAgentService, CodingAgentSessions, CliToolService, CliToolsDiscovery, ModelRouting, ExecutionApproval, BackgroundAgentManager, BackgroundAgentRunner, ChannelVerificationService, OrchestraEngine, ArtifactService, ArtifactDataResolver, VoiceService, BrowserService, EdgeService, EdgeMqttClient, SubagentService, SubagentManager, SoulService, CrewService, AgentMessagesService, and more.
524+
**Services (108):** MessageBus, ConfigCenter, ToolExecutor, ProviderService, McpClientService, McpServerService, ExtensionService, ComposioService, EmbeddingService, HeartbeatService, AuditService, PluginService, MemoryService, GoalService, TriggerService, PlanService, WorkspaceService, DatabaseService, SessionService, LogService, ResourceService, LocalDiscovery, WorkflowService, AgentSkillsParser, CodingAgentService, CodingAgentSessions, CliToolService, CliToolsDiscovery, ModelRouting, ExecutionApproval, ClawManager, ClawRunner, ChannelVerificationService, OrchestraEngine, ArtifactService, ArtifactDataResolver, VoiceService, BrowserService, EdgeService, EdgeMqttClient, SubagentService, SubagentManager, SoulService, CrewService, AgentMessagesService, and more.
537525

538-
**Repositories (67):** agents, conversations, messages, tasks, notes, bookmarks, calendar, contacts, memories, goals, triggers, plans, expenses, custom-data, custom-tools, plugins, channels, channel-messages, channel-users, channel-sessions, channel-verification, costs, settings, config-services, pomodoro, habits, captures, workspaces, model-configs, execution-permissions, logs, mcp-servers, extensions, local-providers, heartbeats, embedding-cache, workflows, autonomy-log, coding-agent-results, cli-providers, cli-tool-policies, background-agents, orchestra, artifacts, channel-bridges, browser-workflows, edge-devices, edge-commands, edge-telemetry, subagent-history, souls, crews, agent-messages.
526+
**Repositories (67):** agents, conversations, messages, tasks, notes, bookmarks, calendar, contacts, memories, goals, triggers, plans, expenses, custom-data, custom-tools, plugins, channels, channel-messages, channel-users, channel-sessions, channel-verification, costs, settings, config-services, pomodoro, habits, captures, workspaces, model-configs, execution-permissions, logs, mcp-servers, extensions, local-providers, heartbeats, embedding-cache, workflows, autonomy-log, coding-agent-results, cli-providers, cli-tool-policies, claws, orchestra, artifacts, channel-bridges, browser-workflows, edge-devices, edge-commands, edge-telemetry, subagent-history, souls, crews, agent-messages.
539527

540528
### UI (`@ownpilot/ui`)
541529

@@ -573,8 +561,7 @@ Modern web interface built with React 19, Vite 7, and Tailwind CSS 4. Minimal de
573561
| **Models / AI Models / Costs** | AI model browser, configuration, and usage tracking |
574562
| **Providers** | Provider management and status |
575563
| **Model Routing** | Per-process model selection with fallback chains |
576-
| **Autonomous Hub** | Unified command center for soul agents, background agents, crews, messaging, and activity |
577-
| **Background Agents** | Create, monitor, and manage persistent autonomous agents with cycle history |
564+
| **Autonomous Hub** | Unified command center for soul agents, claw agents, crews, messaging, and activity |
578565
| **Event Monitor** | Live EventBus event stream viewer for real-time debugging |
579566
| **Channels** | Channel management with connect/disconnect/logout, user approval, QR code display |
580567
| **Plugins / Workspaces / Wizards** | Extension management, workspace management, guided setup wizards |
@@ -722,7 +709,7 @@ Agents are AI assistants with specific system prompts, tool assignments, model p
722709

723710
## Soul Agents
724711

725-
Soul agents are autonomous agents with rich identity, personality, and heartbeat-driven lifecycle. They combine the scheduling power of background agents with a full identity framework.
712+
Soul agents are autonomous agents with rich identity, personality, and heartbeat-driven lifecycle. They combine scheduling with a full identity framework.
726713

727714
### Soul Configuration
728715

@@ -804,59 +791,14 @@ The creator uses a dedicated agent with a specialized system prompt, ensuring it
804791

805792
---
806793

807-
## Background Agents
808-
809-
Persistent autonomous agents that run independently from user chat sessions.
810-
811-
### Configuration
812-
813-
```typescript
814-
{
815-
name: string // Agent name
816-
mission: string // What the agent should accomplish
817-
mode: 'interval' | 'continuous' | 'event' // Scheduling mode
818-
intervalMs: number // Cycle interval (for interval mode)
819-
provider?: string // AI provider (optional, uses system default)
820-
model?: string // AI model (optional, uses system default)
821-
allowedTools: string[] // Tool whitelist (empty = all tools)
822-
autoStart: boolean // Start on server boot
823-
limits: {
824-
maxTurnsPerCycle: number // Max LLM round-trips per cycle
825-
maxToolCallsPerCycle: number // Max tool invocations per cycle
826-
maxCyclesPerHour: number // Rate limit
827-
cycleTimeoutMs: number // Per-cycle timeout
828-
}
829-
}
830-
```
831-
832-
### Lifecycle
833-
834-
| State | Description |
835-
| --------- | ------------------------------------------------------------------- |
836-
| `running` | Agent is actively executing cycles |
837-
| `paused` | Agent is paused, can be resumed |
838-
| `stopped` | Agent has been terminated |
839-
| `error` | Agent encountered an error (auto-pauses after 5 consecutive errors) |
840-
841-
### Features
842-
843-
- **Full tool access** β€” Same 250+ tools as chat agents, plus extensions, plugins, and MCP tools
844-
- **Memory injection** β€” Agent system prompt enhanced with relevant memories and active goals
845-
- **Workspace isolation** β€” Each agent gets a dedicated file workspace
846-
- **Stop conditions** β€” `MISSION_COMPLETE` sentinel or `max_cycles:N` to auto-stop
847-
- **Budget tracking** β€” Auto-stop when budget exceeded
848-
- **Session persistence** β€” State saved to DB every 30 seconds; auto-recovery on restart
849-
850-
---
851-
852794
## Subagents
853795

854-
Ephemeral child agents for parallel task delegation. Unlike background agents (which are persistent and cycle-based), subagents run once to completion and are discarded.
796+
Ephemeral child agents for parallel task delegation. Unlike claw agents (which are persistent and cycle-based), subagents run once to completion and are discarded.
855797

856798
### How It Works
857799

858800
```
859-
Parent Agent (chat or background agent)
801+
Parent Agent (chat or claw agent)
860802
β”œβ”€ spawn_subagent("Research pricing") β†’ SubagentRunner #1
861803
β”œβ”€ spawn_subagent("Analyze competitors") β†’ SubagentRunner #2
862804
β”œβ”€ spawn_subagent("Draft summary") β†’ SubagentRunner #3
@@ -1235,7 +1177,7 @@ PostgreSQL with 85+ repositories via the `pg` adapter.
12351177

12361178
**Productivity:** `pomodoro_sessions`, `habits`, `captures`
12371179

1238-
**Autonomous AI:** `memories`, `goals`, `triggers`, `plans`, `heartbeats`, `workflows`, `autonomy_log`, `background_agents`, `background_agent_sessions`, `background_agent_history`, `souls`, `crews`, `agent_messages`, `claws`, `claw_sessions`, `claw_history`, `claw_audit_log`
1180+
**Autonomous AI:** `memories`, `goals`, `triggers`, `plans`, `heartbeats`, `workflows`, `autonomy_log`, `souls`, `crews`, `agent_messages`, `claws`, `claw_sessions`, `claw_history`, `claw_audit_log`
12391181

12401182
**Channels:** `channel_messages`, `channel_users`, `channel_sessions`, `channel_verification`
12411183

@@ -1471,22 +1413,6 @@ Sliding window algorithm with configurable window (default 60s), max requests (d
14711413
| `GET` | `/api/v1/souls/messages` | List inter-agent messages |
14721414
| `POST` | `/api/v1/souls/messages` | Send a message between agents |
14731415

1474-
### Background Agents
1475-
1476-
| Method | Endpoint | Description |
1477-
| -------- | --------------------------------------- | ----------------------------- |
1478-
| `GET` | `/api/v1/background-agents` | List all background agents |
1479-
| `POST` | `/api/v1/background-agents` | Create a new background agent |
1480-
| `GET` | `/api/v1/background-agents/:id` | Get agent details + session |
1481-
| `PATCH` | `/api/v1/background-agents/:id` | Update agent config |
1482-
| `DELETE` | `/api/v1/background-agents/:id` | Delete agent |
1483-
| `POST` | `/api/v1/background-agents/:id/start` | Start agent |
1484-
| `POST` | `/api/v1/background-agents/:id/pause` | Pause agent |
1485-
| `POST` | `/api/v1/background-agents/:id/resume` | Resume paused agent |
1486-
| `POST` | `/api/v1/background-agents/:id/stop` | Stop agent |
1487-
| `GET` | `/api/v1/background-agents/:id/history` | Paginated cycle history |
1488-
| `POST` | `/api/v1/background-agents/:id/message` | Send message to agent inbox |
1489-
14901416
### Claw Agents
14911417

14921418
| Method | Endpoint | Description |
@@ -1571,7 +1497,6 @@ Real-time broadcasts via WebSocket at `ws://localhost:8080/ws` (attached to the
15711497
| `channel:user:*` | User events (first_seen, pending, blocked, etc.) |
15721498
| `trigger:executed` | Trigger execution result |
15731499
| `coding-agent:session:*` | Coding agent session lifecycle and output |
1574-
| `bg-agent:*` | Background agent lifecycle and cycle results |
15751500
| `subagent:*` | Subagent spawned, progress, and completion |
15761501
| `pulse:activity` | Pulse system proactive activity |
15771502
| `claw:*` | Claw lifecycle, cycle results, output, escalation |

0 commit comments

Comments
Β (0)