agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Start an agentic session with pre-flight health checks, auto-repair, optional MCP injection, and provider launch
$ npx -y skills add jmagly/aiwg --skill session --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sessionContext preview
The summary Claude sees to decide when to auto-load this skill.
Start an agentic session with pre-flight health checks, auto-repair, optional MCP injection, and provider launch
namespace: aiwg name: session platforms: [all] description: Start an agentic session with pre-flight health checks, auto-repair, optional MCP injection, and provider launch
Start a fully-prepared agentic session. Pre-flight checks run automatically: version currency, health diagnostics, and deployment verification. Issues are auto-repaired before launch. Pass `mcp` to inject configured MCP servers into the provider config first.
For past conversations, cross-provider timelines, or catalog queries, use `aiwg show skill session-explore`. The plural `aiwg sessions` namespace manages history; this skill launches a new provider session.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
| Pattern | Example | Action | |---------|---------|--------| | Default launch | "start a session" | `aiwg session` | | Explicit provider | "launch with codex" | `aiwg session --provider codex` | | With MCP | "start with my MCP servers" | `aiwg session mcp` | | MCP + provider | "launch cursor with MCPs" | `aiwg session mcp --provider cursor` | | Skip repair | "just launch, skip checks" | `aiwg session --no-repair` |
When triggered:
1. **Resolve provider**: `--provider` flag → project config `providers[0]` → user config → `claude`
2. **Pre-flight** (auto-repair enabled by default):
3. **MCP inject** (when `mcp` subcommand is used):
aiwg mcp inject --provider <provider>
4. **Launch**:
**User**: "Start a session"
**Action**:
aiwg session
**Flow**: version check → doctor → deployment check → launch `claude`
**User**: "Start a session with my MCP servers"
**Action**:
aiwg session mcp
**Flow**: version check → doctor → deployment check → `aiwg mcp inject --provider claude` → launch `claude`
**User**: "Launch with codex and inject MCPs"
**Action**:
aiwg session mcp --provider codex
**User**: "Set up my cursor session"
**Action**:
aiwg session --provider cursor
**Flow**: full pre-flight for cursor → deployment check for `.cursor/` → `aiwg mcp inject --provider cursor` (if mcp requested) → prints "Open Cursor in your project directory"
**User**: "Just launch, skip the health checks"
**Action**:
aiwg session --no-repair
If the user's intent is ambiguous:
Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.
Repo: jmagly/aiwg
Crash-resilient external agent loop with state persistence and CI/CD integration
Detect requests for iterative autonomous agent loops and route to the appropriate loop executor
Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern
Enable agent loops to learn from similar past tasks and share patterns across loops
Query and manage the executable feedback debug memory
Execute tests on generated code and iterate until passing