Slack/CLI/Web invocation → PR
How to trigger AI agent tasks from natural language interfaces - a Slack message, a CLI command, a web form - and have the agent autonomously produce a pull request.
- ·Unattended agents (Stripe Minions model, Cursor Automations) execute tasks without developer presence
- ·Agents are invocable from at least two channels (Slack, CLI, Web, PagerDuty)
- ·Each developer runs 3-5 parallel agent sessions concurrently
- ·Agent task completion rate without human intervention exceeds 60%
- ·Agent invocation produces a PR within a defined SLA (e.g., under 30 minutes for standard tasks)
Evidence
- ·Agent invocation logs from multiple channels with timestamps
- ·Dashboard showing parallel agent session counts per developer
- ·PR history showing agent-authored PRs merged without synchronous developer oversight
What It Is
Slack/CLI/Web invocation is the interface layer that makes AI agents accessible to the full development organization, not just developers comfortable running CLI tools. Instead of opening a terminal, cd-ing to the project root, and running a complex agent command, a developer types /ai implement the new user preferences endpoint per JIRA-4821 in Slack, or clicks "Run" on a web dashboard, or runs ai-task create --from-ticket JIRA-4821. The agent receives the task, works autonomously, and posts a link to the PR when it's done.
The key architectural shift at L4 (Optimized) is that agent invocation becomes an interface, not a workflow. The underlying agent machinery (Claude Code, context loading, sandbox creation, PR creation) is hidden behind a clean interaction surface. The developer doesn't need to know how the agent works - they need to know how to describe what they want.
This pattern is in production at companies of all sizes. Slack bot integrations that trigger Claude Code runs are a common starting point. Web dashboards where PMs can view and trigger agent tasks are more sophisticated implementations. The common thread: the requester describes the desired outcome in natural language, and the system handles the entire implementation lifecycle.
At L4, these invocation paths connect to an automation layer that handles context loading, sandbox provisioning, agent execution, test running, and PR creation as a pipeline. The human provides the intent; the system provides the execution.
Why It Matters
Multi-interface invocation multiplies the reach of agent capabilities beyond the developer who runs them:
- Democratizes agent access - non-developers (PMs, QA, DevRel) can request tasks without knowing CLI syntax or agent configuration
- Reduces invocation friction - a Slack message is lower friction than any terminal workflow; lower friction means higher usage
- Enables async task delegation - fire-and-forget invocation means developers don't wait for agents; they get a notification when the PR is ready
- Creates an audit trail - every Slack command or web form submission is logged; you have a record of who requested what, when, and with what result
- Bridges AI to existing workflows - developers already live in Slack; bringing AI invocation there meets them where they are
The PR as output is equally important. The PR is the canonical interface for code change review in modern engineering. By having agents produce PRs - with a task description, diff, and test results - the review workflow is unchanged from human-authored PRs. The agent fits into the existing process rather than requiring a new one.
Design your Slack bot or web interface to require the same task specification structure your agents need: what, where, acceptance criteria, what not to touch. Enforce structure at the interface layer to prevent vague invocations that produce vague results. A form with required fields beats a free-text message.
Getting Started
6 steps to get from here to the next level
Common Pitfalls
Mistakes teams actually make at this stage - and how to avoid them
How Different Roles See It
Bob loves the concept of Slack-triggered agent tasks but is worried about control. What happens when someone requests something the agent shouldn't do? What if an intern fires off a Slack command that triggers a dangerous refactoring of the auth system?
What Bob should do - role-specific action plan
Sarah sees multi-interface invocation as the key to making AI productivity scale across the organization without requiring every employee to become a prompt engineer. But she needs to demonstrate that the interface layer adds business value beyond what developers already have with the CLI.
What Sarah should do - role-specific action plan
Victor has already built a personal wrapper script that takes a task description, runs Claude Code in a worktree, and creates a PR - the same pipeline the Slack bot would use. He runs it from his terminal 10-15 times per day. He wants to scale this to the team without everyone needing to set up and maintain their own scripts.
What Victor should do - role-specific action plan
Further Reading
6 resources worth reading - hand-picked, not scraped
From the Field
Recent releases, projects, and discussions relevant to this maturity level.