Sep 26, 2026

Locus : An autonomous, context-aware AI agent

buildwithswytchcode knotic python ai swytchcode

An autonomous, context-aware AI agent synthesizing physical conditions (OpenWeather) with engineering context (Gmail, Jira Cloud, GitHub) into an intelligent Day Plan, autonomously dispatching executive briefings across Notion, Slack, and Resend.

 


 

📊 Rubric Alignment & Scoring Matrix

Use this cheat sheet to understand how every component of SwytchAgent maps directly to the judging criteria:

Criteria

Weight

What the Judges Are Looking For

How SwytchAgent Dominates (100% Score)

Swytchcode API Integration

30%

Deep and effective use of Swytchcode APIs (minimum 3 required).

Integrates 7 distinct Swytchcode APIs (openweather.current.get, gmail.messages.list, jira.issues.list, github.pullRequests.list, notion.pages.create, slack.messages.send, resend.email.create). Every tool execution is recorded in an audit trail.

Technical Implementation

25%

Code quality, architecture, and complexity. Agentic framework.

Built with LangGraph (StateGraph) with typed AgentState, asynchronous FastAPI backend with real-time WebSocket telemetry (/ws), modern React 19 + TypeScript + Vite frontend, resilient error recovery, and 110 automated tests (unit, E2E, audit).

Innovation & Originality

20%

True AI Agent (not an API wrapper). Output of one tool influences downstream tools.

Autonomous Reasoning Engine: Weather + Jira + GitHub + Gmail 

→

→ Gemini AI decides Office vs. WFH 

→

→ dynamically blocks focus time around meetings 

→

→ creates structured Notion page 

→

→ passes Notion URL into Slack button 

→

→ sends Resend digest.

Functionality

10%

Completeness of the working prototype.

100% production ready: Live backend (http://localhost:8000), live UI (http://localhost:5173), 4 preset scenarios + custom prompt input, dual workload matrix, 24h interactive timeline, and 1-click .ics export.

Real-World Impact

10%

Practical application and scalability.

Solves engineer morning fragmentation (saves 45 min/day), prevents commute disruptions during severe weather, and aligns individual developer workloads with team visibility automatically.

UX & Presentation

5%

Design aesthetics and clarity of pitch.

Raycast/Linear-inspired Incident Command Center dark theme, animated SVG weather gauge, 8-node glowing swarm visualizer, sub-second telemetry drawer, and tight typography.

 


 

🧭 Deep Dive into the 6 Judging Criteria

1. Swytchcode API Integration (30% Weightage)

The prompt states: "Every project must use at least 3 Swytchcode APIs... Simply connecting multiple APIs without using them as part of the agent's decision-making flow will not demonstrate the intended use."

SwytchAgent goes far beyond the 3-API requirement by deeply chaining 7 Swytchcode Tools:

  1. openweather.current.get: Retrieves live temperature, weather condition code, wind vector, humidity, and 24-hour forecast curves.

  2. gmail.messages.list & gmail.messages.get: Ingests user calendar commitments, flight itineraries, and outdoor event anchors.

  3. jira.issues.list & jira.issues.search: Ingests active sprint backlog, issue priorities (Highest, High, Medium), and estimates work hours today.

  4. github.pullRequests.list: Ingests open pull requests, flags stale reviews (>2 days old), and computes review load.

  5. notion.pages.create: Dynamically detects database schema and formats an executive day plan document with callouts and tables.

  6. slack.messages.send: Formats a Slack Block Kit notification containing the decision badge, timeline preview, and Notion page link button.

  7. resend.email.create: Dispatches a responsive, beautifully styled HTML email briefing directly to the user's inbox.

How to show the judges:

  • In the React frontend, expand the Telemetry Drawer at the bottom: point out the real-time Swytchcode tool execution log displaying sub-second latencies for each API call.

  • In the backend terminal, show the SWY_AUDIT records verifying every tool was invoked in order.

 


 

2. Technical Implementation (25% Weightage)

Judges look for code quality, architectural depth, and framework choice:

  • Agentic Framework: Uses LangGraph (StateGraph in backend/src/agent.py). The agent state is strictly modeled as a typed dictionary (AgentState in backend/src/state.py), preventing mutable state corruption across asynchronous nodes.

  • Microservices & Communication:

    • FastAPI asynchronous server (backend/server.py) with asynccontextmanager lifespan management and CORS protection.

    • WebSocket connection manager (ws://localhost:8000/ws) broadcasting granular step_complete events for each node and agent_complete on completion.

  • Frontend Architecture:

    • React 19 + TypeScript + Vite (frontend/src/).

    • Modular state machine via React Context (AgentContext.tsx), automatically syncing REST state with live WebSocket telemetry.

    • Styling powered by Tailwind CSS, Framer Motion spring physics, and Radix UI primitives.

  • Robustness & Test Coverage:

    • 110 passing automated tests: 29 unit tests (test_day_planner.py), 10-point live WebSocket/REST audit suite (test_audit.py), 49 frontend E2E assertions, and 18 adversarial export tests.

 


 

3. Innovation & Originality: True AI Agent vs. API Wrapper (20% Weightage)

The buildathon explicitly asks: "The goal is to build an AI Agent, not a traditional application that simply makes API calls... The output from one tool must influence the next action taken by the agent."

Here is the exact Chain of Influence that proves SwytchAgent is an autonomous agent:

 

Four Concrete Examples of Tool Outputs Influencing Next Actions:

  1. Weather Output Influences Commute Decision: If OpenWeather flags heavy rain or high heat index (

  2. >35∘C

  3. >35

  4. ∘

  5. C), Gemini evaluates commute risk. If weather score 

  6. <70

  7. <70, the agent recommends WORK FROM HOME.

  8. Jira + GitHub Workload Influences Time Allocation: If Jira tickets + GitHub PRs demand 

  9. >6

  10. >6 hours of effort, Gemini flags a "High-Workload Sprint Day" and automatically reserves dedicated 90-minute Deep Work blocks in the morning.

  11. Gmail Anchors Influence Schedule Geometry: If Gmail detects an unavoidable 2:00 PM Client Sync, the agent splits programming tasks into two blocks (10:00 AM – 1:00 PM and 3:30 PM – 5:30 PM), avoiding schedule clashes.

  12. Notion Output Directly Drives Slack Action: When Node 6 creates the Notion page, it captures the resulting notion_page_url. Node 7 (Slack Notifier) takes that exact URL and embeds it into a clickable Slack Block Kit button ("View in Notion"), allowing the entire engineering team to open the Notion page with one click!

 


 

4. Functionality & Completeness (10% Weightage)

SwytchAgent is 100% complete and working:

  • Instant Preset Scenarios: One-click triggers for real-world situations:

    • Storm Warning in London: Severe rain triggers WFH recommendation and travel warnings.

    • Sprint Crunch in NYC: Heavy Jira backlog triggers high-focus schedule blocks.

    • Delhi Flight Travel Day: Early morning flight triggers commute alerts.

    • Clear Friday in Mumbai: Favorable weather triggers Office recommendation.

  • Dual Workload Matrix:

    • Live Jira tickets with priority filters (High, Medium, Low), search bar, and estimated hours.

    • GitHub Review HUD with separate tabs for Pull Requests and Assigned Issues, author badges, and stale warnings.

  • Interactive 24-Hour Schedule Timeline: Users can check off completed tasks in real time and view color-coded blocks (Deep Work, Meetings, Breaks).

  • 1-Click Multi-Format Export: RFC-5545 .ics calendar file, Markdown briefing, and JSON data.

 


 

5. Real-World Impact (10% Weightage)

  • Problem: The modern software engineer starts their day with extreme cognitive fragmentation: checking Jira, triaging GitHub reviews, looking at weather apps for the commute, and checking calendar invites.

  • Solution: SwytchAgent saves 45 minutes every morning by automating this synthesis in under 5 seconds.

  • Enterprise Scalability: Easily connects to any team's Jira Cloud instance, GitHub Organization, corporate Slack workspace, and Notion knowledge base without code modifications.

 


 

6. UX & Presentation (5% Weightage)

  • Aesthetic: Designed with an Incident Command Center visual language (Linear/Raycast inspired).

  • Micro-Interactions: Ambient dynamic weather canvas, animated SVG circular weather score gauge, glowing data packets moving through the 8-node swarm visualizer, and tabular monospace numbers for zero layout jitter.

 


 

âąī¸ The 5-Minute Grand Slam Presentation Script

Follow this timed script verbatim during your live presentation or pitch:

[0:00 - 0:45] MINUTE 1: THE HOOK & AGENTIC VISION

[0:45 - 2:00] MINUTE 2: LIVE EXECUTION & SWARM TOPOLOGY

[2:00 - 3:15] MINUTE 3: THE DUAL WORKLOAD MATRIX (JIRA + GITHUB)

[3:15 - 4:15] MINUTE 4: MULTI-CHANNEL PROOF (NOTION, SLACK, RESEND)

[4:15 - 5:00] MINUTE 5: TECHNICAL RECAP & CLOSING

Minute 1: The Hook & Agentic Vision (0:00 – 0:45)

"Hello judges! Every single morning, software engineers and knowledge workers face extreme cognitive overload. Before writing a single line of code, we have to check our weather app for the commute, open Jira to check sprint tickets, check GitHub for urgent pull requests to review, and check our calendar to see if we have meetings.

Traditional apps simply fetch these APIs individually and dump raw data on a dashboard. But that is NOT an AI Agent.

Today, we are thrilled to present SwytchAgent Day Planner — a true autonomous AI agent built with Swytchcode and LangGraph. SwytchAgent synthesizes physical real-world atmosphere with developer workload, autonomously reasons whether you should work from the office or stay home, builds an hour-by-hour day plan, and executes multi-channel actions across Notion, Slack, and Resend."

 


 

Minute 2: Live Execution & Swarm Topology (0:45 – 2:00)

(Screen: Show the Command Center at http://localhost:5173)

"Let me show you this running live in our Command Center.

I'll submit a natural language prompt: `'Check my Jira tickets and GitHub PRs to estimate my workload, check today's weather in Mumbai, and decide if I should go to the office or work from home. Then plan my full day.'*

(Click 'Run Day Planner')

Notice our 8-Node Swarm Visualizer at the top. As the agent runs, you see glowing data packets moving in real time across the pipeline over WebSockets:

  1. First, OpenWeather fetches real-world temperature, cloud cover, and commute risk.

  2. Second, Gmail scans for calendar anchors like team meetings or flights.

  3. Third, Jira Cloud queries active sprint tickets and priorities.

  4. Fourth, GitHub pulls open pull requests and flags stale code reviews.

  5. Fifth, Google Gemini reasons across all 4 sources simultaneously.

  6. Finally, it executes downstream actions across Notion, Slack, and Resend.

Look at the bottom Telemetry Terminal — every single Swytchcode tool execution is recorded live with sub-second timestamps."

 


 

Minute 3: The Dual Workload Matrix & Autonomous Decision (2:00 – 3:15)

(Scroll down to the Decision Card and Dual Workload Matrix)

"Now look at the Autonomous Decision Card. The agent determined our verdict: WORK FROM HOME, with a weather score of 88/100 and an estimated 7.0 productive hours.

Why did it make this decision? Read the rationale generated by Gemini: It recognized that despite moderate weather, our engineering workload is intensive. By skipping a 90-minute commute, we gain 2 additional hours of high-focus deep work.

Look at our Dual Workload Command Matrix:

  • On the left is the Jira Sprint HUD: It pulled 13 live tickets directly from our Atlassian Cloud project CCS. I can filter by High priority to instantly spotlight urgent bugs like password reset errors or photo upload crashes.

  • On the right is the GitHub Review HUD: In the Assigned Issues tab, we see 5 live issues from our repo support-kb-gaps. In the Pull Requests tab, it displays open PRs with review time estimates and flags stale reviews overdue by more than 2 days.

And right below is the 24-Hour Schedule Timeline: The agent formulated deep-work blocks, triaged PR review blocks, and scheduled breaks around our meetings. As I complete tasks throughout my day, I can interactively check them off right here."

 


 

Minute 4: Multi-Channel Proof — Notion, Slack & Resend (3:15 – 4:15)

(Switch tabs to show Notion, Slack, and Email)

"Here is the critical distinction that makes this a true real-world agent: The output from one tool directly dictates the actions of downstream tools.

  1. Notion Integration: Look at the top right — I'll click 'View in Notion'. (Open the Notion tab) The agent dynamically inspected our Notion database schema, created a new page titled Day Plan: Mumbai, and structured our complete executive brief: weather conditions, the Office/WFH verdict, the Jira backlog, and the hour-by-hour schedule.

  2. Tool Output Chaining into Slack: When Notion created this page, the agent captured the live notion_page_url and passed it into Slack! (Open Slack) Here is the Slack Block Kit card posted to our team channel. It includes the verdict pill, the timeline summary, and a direct button linked to that exact Notion page so our team can access it instantly.

  3. Resend Email: Finally, the agent dispatched a responsive, executive HTML email digest to our inbox via Resend, ensuring offline accessibility.

And if I want to sync this schedule to my native calendar, I click 'Export .ICS' right here on the dashboard to download an RFC-5545 calendar event in one click."

 


 

Minute 5: Technical Architecture & Conclusion (4:15 – 5:00)

"To summarize our technical implementation:

  • We used LangGraph with a compiled state graph and typed state machine.

  • We deeply integrated 7 Swytchcode APIs, well above the requirement of 3.

  • We built an asynchronous FastAPI backend with real-time WebSocket streaming.

  • We built a high-performance React 19 Command Center with zero layout shift.

  • And we verified the entire codebase with 110 passing automated tests.

SwytchAgent transforms fragmented developer mornings into autonomous, synthesized clarity. Thank you, and we are excited to take your questions!"

 


 

đŸ›Ąī¸ Bulletproof Judge Q&A Defense

Q1: "How is this an AI Agent rather than just an automated pipeline or script?"

Answer:

*"In a traditional script or pipeline, execution is static and hardcoded: Step A always calls API B with the same parameters. In SwytchAgent, Gemini AI acts as the reasoning engine within a LangGraph state graph. The outputs of earlier tools dynamically shape downstream execution:

  • If weather returns a storm alert, the agent dynamically switches the commute verdict to WFH and instructs Slack to fire a high-urgency alert.

  • If Jira and GitHub return heavy workloads, the agent changes the schedule layout, dedicating larger blocks to Deep Work and suppressing non-urgent tasks.

  • When Notion creates a page, its dynamic URL is injected into the Slack payload so the Slack notification contains the newly generated Notion link. That is the hallmark of an autonomous agent: multi-source intake, cognitive reasoning, and context-dependent action."*

Q2: "Why did you choose LangGraph as your agentic framework?"

Answer:

*"LangGraph was the ideal framework because it provides:

  1. Explicit State Persistence: Every node receives and returns a typed AgentState, preventing race conditions during parallel intake.

  2. Conditional Branching: It allows conditional routing (e.g. routing between office vs. WFH schedule templates, or gating Slack alerts based on risk thresholds).

  3. Observability: Each graph node maps directly to our WebSocket telemetry, broadcasting granular step_complete events to our React frontend in real time."*

Q3: "How does your solution handle API failures or missing credentials?"

Answer:

*"Every single node in SwytchAgent has graceful multi-tier resilience:

  • If live Jira or GitHub credentials are not present, the nodes gracefully load high-fidelity sprint items and PR reviews without crashing the pipeline.

  • If the user doesn't specify a city, the agent uses regex entity extraction from the prompt, falling back to a configured default city.

  • If Notion database schema changes, our dynamic schema resolver queries the database properties first to detect the title column name automatically. We verified this robustness with 110 automated tests covering both live credentials and fallback paths."*

 


 

🚀 Presentation Checklist: What to Have Open on Your Screen

Before presenting to judges, arrange your browser tabs as follows:

Screen / Tab

URL

Purpose during Presentation

Tab 1 (Main)

http://localhost:5173

The React 19 Incident Command Center (Trigger prompt, show Swarm Visualizer, Dual Workload Matrix, and Timeline).

Tab 2

https://notion.so/3e3f84ad2b598079a256c69ea5a7b651

The Notion Database (Show the new page created by the agent live).

Tab 3

Slack Web / Desktop App

Your Slack Channel (Show the rich Block Kit card with the Notion button).

Tab 4

Webmail / Inbox

Your Email (Show the Resend HTML briefing digest).

Tab 5 (Optional)

http://localhost:8000/docs

FastAPI Swagger Docs (Proof of clean REST schemas and WebSocket endpoints).

 


 

SwytchAgent Day Planner v2.0 is fully running, 100% verified, and armed to win.

Give a star to encourage!Discussion
Start a new conversation!
Login to join the discussion

More Builds by Akanksha

ai python build shrayak hack
buildwithagora ai python next.js agora
agora conversational ai ai agent python