Agent-driven daily workflow
This guide shows how to use the Faheem Code as a daily development work queue. The agent gathers work from GitHub and Slack, organizes it by urgency, gives you one task at a time, and can dispatch separate agents for work that can happen in parallel.
The video above demonstrates the same workflow for readers who prefer a video walkthrough. You do not need to watch it to follow this guide.
What you will build
At the end of this guide, one Faheem Code conversation will:
- Collect pull requests, issues, notifications, and relevant Slack activity.
- Produce a prioritized report with links and a recommended first task.
- Help you complete that task or start a separate agent to work on another task.
- Continue with the next task when you are ready.
Prerequisites
- Install and start Faheem Code.
- Complete first-time setup, including an Faheem Code agent profile, a connected backend, and an LLM.
- A GitHub account with access to the repositories you want to review.
- A Slack workspace and permission to create or install a Slack app.
Screenshot: Faheem Code MCP library showing built-in GitHub and Slack integrations.
The MCP library lists built-in integrations, including GitHub and Slack. Choose the HTTP Slack integration shown here when following this guide. The workflow can use other MCP integrations, such as Linear or Jira, but the examples below use GitHub and Slack.
Step 1: connect GitHub
The agent needs GitHub access to find assigned issues, pull requests that need your attention, review requests, notifications, and CI results.
Create a GitHub token
- Open GitHub Developer Settings.
- Select Fine-grained tokens and choose Generate new token.
- Give the token a name, select Only select repositories when possible, and set an expiration date.
- Grant the minimum permissions for the work you want the agent to do:
| Purpose | Permissions |
|---|---|
| Gather and report work | Metadata: read, Contents: read, Issues: read, Pull requests: read, Actions: read, Checks: read |
| Work on code or issues | Add Contents: write and Issues: write |
| Update pull requests or post reviews | Add Pull requests: write |
- Generate the token and copy it. GitHub shows it only once.
Screenshot: Faheem Code GitHub MCP server setup dialog.
The GitHub server dialog shows where to enter the server token and save it as a backend secret.
Add the GitHub MCP server
Use the backend where this conversation will run. The MCP server and its saved secret belong to that backend.
- In Faheem Code, confirm the correct backend in the backend switcher.
- Open Customize in the left navigation.
- Open MCP Servers.
- Select GitHub from the MCP library.
- Paste the token into the token field.
- Leave the option to create a secret enabled, then save the server.
- Wait for the server card to report a healthy connection.
See MCP server settings for general configuration and troubleshooting details. Do not paste tokens into the conversation itself.
Step 2: connect Slack
Slack access lets the agent find mentions, threads, and messages that need your response. The bot can read only channels it can access.
Create and install a Slack app
- Open the Slack API dashboard and select Create New App → From scratch.
- Choose the workspace where the app will read messages.
- In OAuth & Permissions, add these bot scopes:
| Scope | Purpose |
|---|---|
channels:read | List public channels |
channels:history | Read public-channel messages |
groups:history | Read private-channel messages where the bot is a member |
users:read | Resolve people mentioned in messages |
chat:write | Allow the agent to post replies when you explicitly ask it to |
- Select Install to Workspace, approve the permissions, and copy the Bot User OAuth Token.
- Invite the bot to each channel it should monitor. The bot cannot read channels it has not joined.
- Find your workspace ID from your Slack workspace URL or Slack's workspace-ID guide.
Screenshot: Faheem Code Slack MCP server setup dialog.
The built-in Slack integration dialog shows the workspace ID and bot-token fields, along with the option to save each value as a secret.
Add the Slack MCP server
The same Customize → MCP Servers screen is used for Slack.
- In Faheem Code, open Customize → MCP Servers.
- Select Slack from the MCP library.
- Paste the bot token and enter the workspace ID.
- Keep secret creation enabled and save the server.
- Wait for a healthy connection, then verify that the bot can access the channels you want to search.
Step 3: start the daily workflow conversation
Create a new conversation in Faheem Code and send this prompt:
Screenshot: Faheem Code new conversation with the daily workflow prompt.
Do my daily workflow using the connected GitHub and Slack MCP servers.
Gather:
- pull requests that need my attention or review
- assigned issues
- GitHub notifications and failing CI
- Slack mentions, threads, and messages that need a response
Group the results by urgency. For every item, include its title, why it matters,
and a direct link. End with the single highest-priority task for me to start.
Do not make changes or send messages without asking me first.
If you use Linear, Jira, or another connected service, add it explicitly to the prompt. For example:
Also check my assigned Linear issues and current cycle.
The agent may ask clarifying questions, such as which repositories or Slack channels to include. Answer those questions before asking it to produce the final report.
Step 4: read the prioritized report
Ask for a report in this format if the first response is not organized clearly:
Organize the results into:
1. Immediate action
2. PRs waiting for my response
3. PRs requesting my review
4. Assigned issues
5. Slack highlights
6. GitHub notifications
Sort each section by urgency. Include direct links and finish by recommending one first task.
A useful report looks like this:
## Immediate action
- Fix failing CI on PR #123 — blocking the release — <link>
## PRs waiting for my response
- Address requested changes on PR #456 — <link>
## PRs requesting my review
- Review PR #789 — changes authentication behavior — <link>
## Assigned issues
- Document the new API behavior — <link>
## Slack highlights
- Reply to the deployment question in #engineering — <link>
## GitHub notifications
- Workflow failure on repository-name — <link>
## First task
Fix the failing CI on PR #123.
The report is a starting point, not a guarantee that every source contains actionable work. Ask the agent to search a specific repository, channel, or date range when an important item is missing.
Step 5: work through one task at a time
When the agent recommends a task:
- Ask for links if the report does not include them:
Give me the links for that task. - Tell the agent whether you want investigation, implementation, or only a summary.
- Set the safety boundary before it changes anything. For example:
Inspect the failing CI on PR #123, explain the root cause, and propose a fix.
Do not edit files, push changes, or comment on GitHub until I approve the plan.
- After reviewing the result, ask it to implement the approved change, run the relevant checks, and report what changed.
- When the task is complete, ask:
I finished that task. Re-check the remaining work and give me the next highest-priority item.
The agent can inspect and edit files in its configured workspace, but its ability to push code, update GitHub, or post to Slack depends on the permissions granted to the MCP servers and the confirmation policy you use.
Step 6: dispatch parallel work
Use a separate agent only for work that is independent of the task you are handling. For example:
Start a separate agent to inspect the failing CI and unaddressed review comments
on my other open pull requests. It may modify files in its own workspace and
run tests, but it must not push, merge, or post comments. Return a summary and
proposed changes when finished.
Before dispatching, specify:
- Which repositories, pull requests, or issues it may access
- Whether it may edit files
- Which tests it should run
- Whether it may push branches or post comments
- What it should return when finished
Keep related changes in separate workspaces or branches to avoid overwriting your active work. Review a subagent's summary and diff before asking it to push or make external changes. You can continue the original conversation while the separate agent runs, then inspect its conversation from the Faheem Code conversation list.
Troubleshooting
- The agent cannot find GitHub work: confirm the GitHub MCP server is healthy, the token includes the required repositories, and the token has not expired.
- Slack results are empty: confirm the bot is installed in the workspace and invited to each channel you want to search.
- The agent reports no tools: start a new conversation after adding or changing an MCP server; MCP configuration is loaded when a conversation starts.
- The report is too broad: name the repositories, Slack channels, date range, or task categories to include.
- The agent tries to act too early: state that it must ask for approval before editing files, pushing, or posting messages.
Reference
- Daily workflow video — optional video walkthrough
- Faheem Code overview
- Faheem Code first-time setup
- MCP server settings
- Faheem Code configuration