<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Paul Awolesi on Medium]]></title>
        <description><![CDATA[Stories by Paul Awolesi on Medium]]></description>
        <link>https://medium.com/@paulawolesi?source=rss-97a846fdc75------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RgiPYCiSd7azMD4lwZQwAw.jpeg</url>
            <title>Stories by Paul Awolesi on Medium</title>
            <link>https://medium.com/@paulawolesi?source=rss-97a846fdc75------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 09:43:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paulawolesi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Got Tired of Killing Ports Manually, So I Built a Desktop App for It]]></title>
            <link>https://paulawolesi.medium.com/i-got-tired-of-killing-ports-manually-so-i-built-a-desktop-app-for-it-3bd8eb0584cb?source=rss-97a846fdc75------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bd8eb0584cb</guid>
            <category><![CDATA[sports]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[electron]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[desktop-app]]></category>
            <dc:creator><![CDATA[Paul Awolesi]]></dc:creator>
            <pubDate>Tue, 16 Jun 2026 14:47:14 GMT</pubDate>
            <atom:updated>2026-06-16T14:47:14.047Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OnNOZQFBpeZGyUaEmHq7rw.png" /></figure><p>There are some developer problems that are not difficult enough to feel serious, but they are annoying enough to break your flow.</p><p>For me, one of those problems is the classic:</p><pre>Port 3000 is already in use.</pre><p>If you build web apps often, you probably know the routine.</p><p>I start a React app. Maybe it is Vite. Maybe it is Next.js. Maybe I was testing something earlier and forgot to stop it properly. Then I run the command again and the terminal tells me the port is already occupied.</p><p>At that point, I have to stop what I am doing and switch into process-hunting mode.</p><p>On Windows, that usually means something like:</p><pre>netstat -ano | findstr :3000<br>taskkill /PID 12345 /F</pre><p>It works.</p><p>But it always feels like a small tax on my focus.</p><p>And the funny thing is, this kind of problem is exactly the sort of thing I now like solving with AI. Not because it is glamorous. Not because it is some massive product idea. But because it is a real irritation in my daily workflow, and if I can remove it, my day gets slightly better.</p><p>So I built a small Windows desktop app for it.</p><p>I called it <strong>Port Guard</strong>.</p><h3>What I Wanted</h3><p>I did not want a complicated tool.</p><p>I wanted something I could open quickly, search quickly, and use without thinking too much.</p><p>The basic idea was simple:</p><ol><li>Show me all the active ports on my machine.</li><li>Let me search by port, process name, PID, path, or command.</li><li>Show me what process is using the port.</li><li>Let me stop it safely.</li><li>Let me go back to the terminal and run my command again.</li></ol><p>Basically, I wanted a version of Task Manager that thinks like a developer.</p><p>Task Manager is useful, but it is not built around the question I usually care about:</p><blockquote><em>What is using this port, and can I stop it?</em></blockquote><p>That was the whole product brief.</p><h3>Building Port Guard</h3><p>I built Port Guard as a Windows desktop app using Electron, React, Vite, and TypeScript.</p><p>The app opens into a searchable table of active listeners. Each row shows the port, protocol, local address, PID, process name, risk level, executable path, and action buttons.</p><p>The important part is that search is the center of the experience.</p><p>If I know port 3000 is blocked, I type 3000.</p><p>If I know it is probably a Node process, I type node.</p><p>If I want to see everything related to Vite, I type vite.</p><p>That sounds basic, but for this kind of utility, basic is the point. The app should not ask me to learn a new workflow. It should just remove the annoying part of the existing one.</p><h3>The Safety Part Mattered More Than I Expected</h3><p>At first, this sounded like a simple app:</p><p>List ports. Stop process. Done.</p><p>But once I started thinking about it properly, I realized the dangerous part was not listing ports.</p><p>The dangerous part was giving a desktop app the ability to stop processes.</p><p>That changes the problem.</p><p>I did not want the app to become a big red button that could casually kill important Windows services. So I added a safety model.</p><p>Every process gets classified into a category:</p><ul><li>Developer</li><li>Database</li><li>Browser</li><li>System</li><li>Unknown</li></ul><p>And each process gets a risk level:</p><ul><li>Low</li><li>Medium</li><li>High</li></ul><p>A local Node or Vite server is usually low risk.</p><p>A database, browser, or editor process is medium risk.</p><p>Windows system processes are high risk or fully protected.</p><p>For example, Port Guard blocks protected processes like PID 0, PID 4, svchost, lsass, and other critical Windows services.</p><p>Here is a simplified version of that classification logic:</p><pre>export function classifyProcess(process: ProcessIdentity): ProcessClassification {<br>  const name = normalize(process.processName);<br>  const path = normalize(process.executablePath);</pre><pre>  if (<br>    process.pid === 0 ||<br>    process.pid === 4 ||<br>    includesAny(name, protectedNames) ||<br>    path.startsWith(&quot;c:\\windows\\system32&quot;)<br>  ) {<br>    return {<br>      category: &quot;System&quot;,<br>      risk: &quot;High&quot;,<br>      isProtected:<br>        process.pid === 0 ||<br>        process.pid === 4 ||<br>        includesAny(name, protectedNames),<br>      reason: &quot;Windows system process or protected system path&quot;<br>    };<br>  }</pre><pre>  if (includesAny(name, [&quot;node&quot;, &quot;npm&quot;, &quot;pnpm&quot;, &quot;vite&quot;, &quot;python&quot;, &quot;dotnet&quot;])) {<br>    return {<br>      category: &quot;Developer&quot;,<br>      risk: &quot;Low&quot;,<br>      isProtected: false,<br>      reason: &quot;Common local development process&quot;<br>    };<br>  }</pre><pre>  return {<br>    category: &quot;Unknown&quot;,<br>    risk: &quot;Medium&quot;,<br>    isProtected: false,<br>    reason: &quot;Unrecognized listening process&quot;<br>  };<br>}</pre><p>This is where the app became more interesting to me.</p><p>The goal was not simply to kill a process quickly.</p><p>The goal was to make the safe thing easy and the dangerous thing hard.</p><p>That is a very different design problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HhDgJbG76Uwisxm_Fi_saQ.png" /></figure><h3>I Also Had to Handle Stale Data</h3><p>Another issue I had to think about was stale data.</p><p>Imagine Port Guard shows that PID 12345 owns port 3000. Then, before I click stop, that process exits and another process takes over the same port.</p><p>If the app blindly kills the original PID or assumes the old port owner is still valid, that is risky.</p><p>So before Port Guard stops anything, it checks again.</p><p>It confirms that the same PID still owns the same port and protocol.</p><p>Only then does it stop the process.</p><pre>const current = records.find(<br>  (record) =&gt;<br>    record.pid === request.pid &amp;&amp;<br>    record.localPort === request.localPort &amp;&amp;<br>    record.protocol === request.protocol<br>);</pre><pre>if (!current) {<br>  return {<br>    ok: false,<br>    message: &quot;Port ownership changed or the process already exited.&quot;,<br>    pid: request.pid,<br>    localPort: request.localPort,<br>    stoppedAt<br>  };<br>}</pre><p>That one check made the app feel a lot more trustworthy.</p><p>It is a reminder that small tools still need proper thinking behind them.</p><h3>The First Packaged Version Was Blank</h3><p>Of course, the first packaged version did not work properly.</p><p>It opened as a dark blank window.</p><p>No table.</p><p>No search.</p><p>Nothing.</p><p>The app shell was there, but React was not loading.</p><p>The cause was one of those small packaging issues that can waste a surprising amount of time. Vite had built the asset paths like this:</p><pre>&lt;script src=&quot;/assets/index.js&quot;&gt;&lt;/script&gt;</pre><p>That works fine during development.</p><p>But inside a packaged Electron app, the page is loaded through file://. So /assets/... does not mean &quot;inside my app folder.&quot; It points somewhere else entirely.</p><p>The fix was simple:</p><pre>export default defineConfig({<br>  base: &quot;./&quot;,<br>  plugins: [react()]<br>});</pre><p>That told Vite to build asset paths relatively.</p><p>After that, the packaged app loaded correctly.</p><p>Small bug. Small fix. But very satisfying.</p><h3>The UX Problem I Noticed Immediately</h3><p>Once the app was working, I noticed another issue.</p><p>The table was too wide.</p><p>The stop buttons were on the far right, and I had to scroll all the way to the bottom just to move horizontally.</p><p>That was ridiculous because the whole purpose of the app was speed.</p><p>If I have to fight the UI to stop a process, then I have simply replaced one annoyance with another.</p><p>So I changed the layout.</p><p>The app itself no longer scrolls like a long webpage. The table owns the vertical scroll. The columns are constrained. The action buttons stay visible.</p><p>That small UX change made the tool feel much more like a desktop utility and much less like a web page trapped inside a desktop window.</p><p>This was one of my favourite lessons from the build:</p><blockquote><em>Sometimes making something “awesome” is not about adding more features. Sometimes it is about removing the one thing that makes it annoying.</em></blockquote><h3>Why I Built This With AI</h3><p>This is the kind of thing I enjoy building with AI.</p><p>Not because AI magically knows what I want.</p><p>It does not.</p><p>But because I can describe a real workflow problem in plain language, iterate quickly, test the result, and keep tightening it until it feels useful.</p><p>The human part is still important.</p><p>I had to decide what the app should do.</p><p>I had to notice that killing processes needs a safety model.</p><p>I had to catch the blank packaged window.</p><p>I had to look at the UI and say, “No, I should not have to scroll to the bottom just to reach the stop button.”</p><p>AI helped with the speed of implementation.</p><p>But the taste, judgment, and annoyance came from actually using the thing.</p><p>That is where these small tools become interesting.</p><p>They are not abstract demos.</p><p>They come from daily friction.</p><h3>What I Ended Up With</h3><p>At the end, I had a working Windows desktop app that can:</p><ul><li>list active TCP and UDP ports</li><li>search by port, PID, process, path, command, protocol, and category</li><li>classify processes by risk</li><li>block protected Windows system processes</li><li>stop developer servers safely</li><li>show recent stop attempts</li><li>handle access denied errors</li><li>package as a Windows installer</li></ul><p>I also tested it with a real temporary Node server on port 4321.</p><p>Port Guard found the listener, identified the process, and stopped the exact PID.</p><p>That was the moment the tool became real for me.</p><p>Not a mockup.</p><p>Not a concept.</p><p>A tiny app that solved a tiny problem.</p><p>And honestly, that is enough.</p><p>Here is the link to the <a href="https://github.com/Ocolus1/port-guard">repo</a>.</p><p><em>If you found this useful, give it a clap (or 50!) and follow for more deep dives into AI engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bd8eb0584cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an AI Business Consultant: How I Made Specialised Agents Work Together Like a Real…]]></title>
            <link>https://paulawolesi.medium.com/building-an-ai-business-consultant-how-i-made-specialised-agents-work-together-like-a-real-6bb5a7947ade?source=rss-97a846fdc75------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bb5a7947ade</guid>
            <category><![CDATA[multiagent-system]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-consulting]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Paul Awolesi]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 20:17:14 GMT</pubDate>
            <atom:updated>2025-12-08T20:17:14.780Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an AI Business Consultant: How I Made Specialised Agents Work Together Like a Real Consulting Team</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qWRFxp3WvwqzbvyP4zpqVw.png" /></figure><p><em>What happens when you stop asking one AI to do everything and instead build a team of specialists?</em></p><p>I’ve been fascinated by a question lately: <strong>Why do consulting firms hire specialists instead of generalists?</strong></p><p>McKinsey doesn’t send one person to handle your market research, financial analysis, strategy development, AND risk assessment. They send a <em>team</em>. Each person brings deep expertise in their domain, and the magic happens when they collaborate.</p><p>So I wondered: Could I build an AI system that works the same way?</p><p>Spoiler alert: Yes. And the results were far better than I expected.</p><h3>The Problem with “Jack of All Trades” AI</h3><p>If you’ve ever asked ChatGPT for business advice, you’ve probably noticed something. It’s… fine. Generic. Surface-level.</p><p>Ask it to analyse the sustainable packaging market and recommend a go-to-market strategy for a startup, and you’ll get a decent response. But it lacks the depth you’d expect from a real consultant. The research is vague, the analysis is shallow, and the recommendations feel like they came from a business textbook rather than someone who actually understands your market.</p><p>Here’s what I realised: <strong>We’re asking one model to context-switch between being a researcher, analyst, strategist, and risk assessor; all in one breath.</strong></p><p>That’s like asking your friend who’s “pretty good at Excel” to build your company’s entire financial model, market analysis, and five-year projection. Sure, they might produce <em>something</em>, but would you bet your business on it?</p><p>I decided to try a different approach.</p><h3>The Architecture: A Team of Specialised Agents</h3><p>Instead of one AI doing everything, I built four specialised agents that work together:</p><pre>┌──────────────┐    ┌──────────────┐    ┌──────────────┐    ┌──────────────┐<br>│   Market     │───▶│   Market     │───▶│   Strategy   │───▶│    Risk      │<br>│  Researcher  │    │   Analyst    │    │  Consultant  │    │   Assessor   │<br>└──────────────┘    └──────────────┘    └──────────────┘    └──────────────┘<br>      │                    │                    │                    │<br>      ▼                    ▼                    ▼                    ▼<br>   Web Search          SWOT Analysis      Phased Timelines    Risk Mitigation<br>   Real-time Data      Porter&#39;s 5 Forces  KPIs &amp; Metrics      Contingency Plans<br>   Source Citations    Opportunities      Implementation      Impact Ratings</pre><p>Each agent has:</p><ul><li><strong>A specific role</strong> with clear responsibilities</li><li><strong>Domain expertise</strong> baked into their instructions</li><li><strong>A defined output format</strong> that feeds into the next agent’s work</li></ul><p>The key insight? Each agent only focuses on what they’re good at. The researcher doesn’t try to give strategy advice. The strategist doesn’t pretend to be a risk expert. They stay in their lane, and the quality shows.</p><h3>Let’s See It In Action</h3><p>Here’s what the actual application looks like. I built a clean, modern interface that makes it feel less like a chatbot and more like a consultation session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*phpstgDiMTWMFTLWZDA8SA.png" /></figure><p><em>The home screen presents four core capabilities and suggests example questions to get users started.</em></p><p>When you submit a business question, something interesting happens. Instead of immediately generating a response, the system kicks off a <strong>research phase</strong> first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ybbhMoHalssXRQAUpu8fRQ.png" /></figure><p><em>The research phase shows real-time progress as the agent searches for current market data.</em></p><p>See that progress bar? The system is actually conducting web searches, gathering current market data, and compiling sources. No hallucinated statistics. No “as of my knowledge cutoff” disclaimers. Real, current information.</p><h3>The Magic of Phased Consultation</h3><p>Here’s where it gets interesting. After the research is complete, you don’t just get a wall of text. You get <strong>research findings with citations,</strong> and then <em>you</em> decide what happens next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GQlD8v6am2tdySiYkdsb9Q.png" /></figure><p><em>After the research is complete, users can choose which phases to run next. Notice the 11 sources cited at the bottom.</em></p><p>Look at those action buttons: <strong>Run Analysis</strong>, <strong>Run Strategy</strong>, <strong>Run Risk Assessment</strong>, and <strong>Generate Report</strong>.</p><p>This was a deliberate design choice. Traditional AI assistants dump everything on you at once. But real consultants don’t work that way. They present findings, get feedback, and then go deeper on what matters to <em>you</em>.</p><p>Maybe you only care about the competitive analysis. Skip the strategy phase. Maybe you want to dive deep into risks before committing to a direction. Run risk assessment first.</p><p><strong>The user is in control.</strong></p><h3>Under the Hood: How the Agents Communicate</h3><p>Let me show you what’s actually happening in the code. Each agent is defined with specific instructions that shape their expertise:</p><pre>RESEARCH_AGENT_INSTRUCTIONS = &quot;&quot;&quot;You are an expert market researcher <br>with access to real-time web data.</pre><pre>Your responsibilities:<br>1. Search the web for current, relevant market data and trends<br>2. Find competitor information, industry news, and market reports<br>3. Gather statistics, expert opinions, and recent developments<br>4. Always cite your sources</pre><pre>Research methodology:<br>- Start with broad industry search, then narrow to specifics<br>- Look for recent data (prioritize last 12 months)<br>- Cross-reference multiple sources for accuracy<br>- Focus on quantitative data where available<br>&quot;&quot;&quot;</pre><p>Notice how specific this is. The agent isn’t told to “be helpful” or “answer questions.” It’s told to be a <em>researcher</em> with a methodology, priorities, and output expectations.</p><p>The analysis agent is completely different:</p><pre>ANALYSIS_AGENT_INSTRUCTIONS = &quot;&quot;&quot;You are a senior market analyst <br>with expertise in business intelligence.</pre><pre>Analysis framework:<br>- Use SWOT-style thinking (Strengths, Weaknesses, Opportunities, Threats)<br>- Consider Porter&#39;s Five Forces where applicable<br>- Identify market gaps and unmet needs<br>- Assess market timing and readiness</pre><pre>Output requirements:<br>- Support all conclusions with data from the research<br>- Quantify opportunities where possible<br>- Rank findings by importance/impact<br>- Be objective and highlight uncertainties<br>&quot;&quot;&quot;</pre><p>This agent doesn’t search the web. It doesn’t need to; it receives the researcher’s output as context. Its job is purely analytical. Apply frameworks. Find patterns. Rank opportunities.</p><p>The strategy agent then receives <em>both</em> the research and analysis:</p><pre>STRATEGY_AGENT_INSTRUCTIONS = &quot;&quot;&quot;You are a strategic business consultant <br>with expertise in growth strategies.</pre><pre>Timeline structure:<br>- Short-term (0-6 months): Quick wins, foundation building<br>- Medium-term (6-18 months): Core strategy execution<br>- Long-term (18+ months): Scale and optimize</pre><pre>Output requirements:<br>- Each recommendation should be specific and actionable<br>- Include rationale for prioritization<br>- Define clear KPIs for each initiative<br>- Note dependencies between recommendations<br>&quot;&quot;&quot;</pre><p>See how each agent builds on the previous one’s work? The researcher gathers data. The analyst interprets it. The strategist turns insights into action. The risk assessor stress-tests the plan.</p><p>It’s a pipeline, not a monologue.</p><h3>The Technical Stack</h3><p>For those interested in building something similar, here’s what powers this system:</p><p><strong>Backend:</strong></p><ul><li><strong>FastAPI</strong> for the REST API</li><li><strong>OpenAI Agents SDK</strong> for multi-agent orchestration</li><li><strong>SQLite</strong> for session persistence</li><li><strong>WebSearchTool</strong> for real-time research</li></ul><p><strong>Frontend:</strong></p><ul><li><strong>React 18</strong> with TypeScript</li><li><strong>TailwindCSS</strong> for styling</li><li><strong>Vite</strong> for blazing-fast builds</li></ul><p>The OpenAI Agents SDK was crucial here. It handles the complexity of agent handoffs, tool calling, and conversation memory. Here’s how the orchestrator chains the agents together:</p><pre>class ConsultantOrchestrator:<br>    def _setup_agents(self):<br>        # Create specialized agents<br>        self.research_agent = create_research_agent(self.model)<br>        self.analysis_agent = create_analysis_agent(self.model)<br>        self.strategy_agent = create_strategy_agent(self.model)<br>        self.risk_agent = create_risk_agent(self.model)<br>        <br>        # Set up handoff chain: Research -&gt; Analysis -&gt; Strategy -&gt; Risk<br>        self.research_agent = Agent(<br>            name=&quot;MarketResearcher&quot;,<br>            instructions=RESEARCH_AGENT_INSTRUCTIONS,<br>            tools=[WebSearchTool()],<br>            handoffs=[handoff(self.analysis_agent)],<br>        )</pre><p>The handoffs parameter is the secret sauce. When the research agent completes its work, it automatically passes context to the analysis agent. No manual orchestration needed.</p><h3>Measuring What Matters: The Evaluation Dashboard</h3><p>One thing I learned from building AI systems: if you can’t measure it, you can’t improve it.</p><p>That’s why I built an evaluation dashboard directly into the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*imlpsGEUoBLFWM60TPFTAQ.png" /></figure><p><em>The evaluation dashboard tracks consultation metrics, completion rates, and response times.</em></p><p>Every consultation is tracked:</p><ul><li><strong>Query and response details</strong></li><li><strong>Processing time per phase</strong></li><li><strong>Number of citations found</strong></li><li><strong>Success/failure rates</strong></li></ul><p>This isn’t just vanity metrics. When you’re iterating on agent instructions, you need to know if your changes actually improve output quality. Did that tweak to the research agent’s instructions lead to more citations? Did restructuring the analysis framework reduce response times?</p><p>Data-driven development, applied to AI.</p><h3>What I Learned Building This</h3><h3>1. Specialisation beats generalisation</h3><p>A focused agent with clear instructions dramatically outperforms a general-purpose prompt. When the researcher only has to research, not analyse, strategise, or assess risk, it does research <em>really well</em>.</p><h3>2. Context is everything</h3><p>Each agent receives the cumulative output of previous agents. The strategist doesn’t just see the original question; they see the research findings AND the analytical framework. This layered context produces recommendations that are grounded in actual data.</p><h3>3. User control matters</h3><p>The phase-based workflow wasn’t in my original design. I added it after realising that dumping a 2,000-word report on users wasn’t actually helpful. Letting users choose their path, research only, full analysis, and skip to strategy made the tool genuinely useful.</p><h3>4. Real-time data changes everything</h3><p>The WebSearchTool integration was a game-changer. Instead of relying on training data cutoffs, the system pulls current market information. When someone asks about sustainable packaging trends in 2024, they get 2024 data. With citations.</p><h3>5. Evaluation is not optional</h3><p>Building the metrics dashboard felt like extra work at the time. Now I can’t imagine iterating without it. Seeing that average response time crept up after a change or watching citation counts drop gives immediate feedback on what’s working.</p><h3>Try These Prompts</h3><p>If you want to see what this system can do, here are some prompts that showcase its capabilities:</p><p><strong>Market Entry:</strong></p><blockquote><em>“What are the opportunities for entering the electric vehicle market in Southeast Asia?”</em></blockquote><p><strong>Competitive Analysis:</strong></p><blockquote><em>“Compare the business models of Spotify, Apple Music, and YouTube Music”</em></blockquote><p><strong>Strategic Planning:</strong></p><blockquote><em>“What growth strategies should a mid-size fintech company pursue in 2024?”</em></blockquote><p><strong>Industry Analysis:</strong></p><blockquote><em>“What are the emerging trends in the healthcare technology sector?”</em></blockquote><p><strong>Risk Assessment:</strong></p><blockquote><em>“What are the main risks of expanding into the Chinese market?”</em></blockquote><p>Each of these will trigger the research phase, then let you decide how deep to go with analysis, strategy, and risk assessment.</p><h3>What’s Next?</h3><p>This project taught me that the future of AI isn’t better single models, it’s better orchestration of specialised capabilities.</p><p>I’m exploring a few directions:</p><ol><li><strong>More specialised agents</strong> — What if there were a financial modelling agent? A competitive intelligence specialist?</li><li><strong>Memory across sessions</strong> — Imagine if the system remembered your industry context and built on previous consultations.</li><li><strong>Collaborative editing</strong> — What if users could refine the research before it goes to analysis? Human-AI collaboration at each step.</li><li><strong>Custom agent creation</strong> — Let users define their own specialist agents for domain-specific consulting.</li></ol><p>The multi-agent architecture opens up possibilities that monolithic approaches simply can’t match.</p><h3>The Bottom Line</h3><p>We’ve been using AI wrong.</p><p>Instead of asking one model to be everything, we should be asking: <em>What would a team of specialists do?</em></p><p>Build that team. Give each agent clear expertise. Let them collaborate. Let users control the flow.</p><p>The result isn’t just better output, it’s a fundamentally different experience. One that feels less like talking to a chatbot and more like working with actual consultants.</p><p>And honestly? That’s the point.</p><p><em>Want to build your own multi-agent system? The code for this project is available on </em><a href="https://github.com/Ocolus1/ai_consultant_agent"><em>GitHub</em></a><em>. Feel free to fork it, break it, improve it, and share what you learn.</em></p><p><em>Have questions or want to discuss multi-agent architectures? Find me on </em><a href="https://www.linkedin.com/in/paul-awolesi/"><em>LinkedIn</em></a><em>.</em></p><p><em>If you found this useful, give it a clap (or 50!) and follow for more deep dives into AI engineering.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bb5a7947ade" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Built a Natural Language Database Query Agent. The First Query Took 24 Seconds.]]></title>
            <link>https://paulawolesi.medium.com/i-built-a-natural-language-database-query-agent-the-first-query-took-24-seconds-73479be5145a?source=rss-97a846fdc75------2</link>
            <guid isPermaLink="false">https://medium.com/p/73479be5145a</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[python-packages]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[multi-agent-systems]]></category>
            <dc:creator><![CDATA[Paul Awolesi]]></dc:creator>
            <pubDate>Fri, 24 Oct 2025 09:51:36 GMT</pubDate>
            <atom:updated>2025-10-24T09:51:36.661Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DSq4LeRIkqS9Sa51Km8WJQ.png" /></figure><p>I spent the last month building something I thought would be straightforward: a Python package that lets you query databases using plain English. Turns out, making AI talk to databases is the easy part. Making it fast enough that people actually want to use it? That’s the real challenge.</p><h3>The Problem Nobody Talks About</h3><p>Here’s what I learned the hard way: in chat-like features, speed isn’t just important. It’s everything.</p><p>I had a working prototype in week one. Users could type “How many users signed up last month?” and get back perfectly valid SQL with results. Beautiful. Except it took 6 seconds per query. I watched people literally walk away from the demo. Three seconds is the magic number. Beyond that, you’ve lost them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-uGxnpVynL_PCLZGSUakuQ.png" /></figure><p>This isn’t a blog post about building yet another text-to-SQL system. This is about the journey from “it works” to “people actually use it.”</p><h3>The Architecture That Almost Killed Performance</h3><p>My first instinct was to go full multi-agent. I mean, that’s what everyone’s doing, right? I built this elaborate system:</p><ul><li>A <strong>Router Agent</strong> to understand intent</li><li>A <strong>Schema Agent</strong> to find relevant tables</li><li>A <strong>SQL Agent</strong> to generate queries</li><li>A <strong>Validator Agent</strong> to check safety</li><li>A <strong>Conversational Agent</strong> to make responses friendly</li></ul><p>It was beautiful. It was also completely unusable. Each agent meant another LLM call. Five agents, five API calls, 15+ seconds per query. I had built a technically impressive system that nobody would ever use in production.</p><p>The wake-up call came when I benchmarked different LLMs. GPT-4o-mini could generate SQL in 2 seconds with 100% execution success. My five-agent system took 15 seconds to do the same thing. I had made it 7.5x slower for… what exactly?</p><h3>The Rewrite: Two Agents, One Call</h3><p>I threw out the complex orchestration and rebuilt with a simple rule: one LLM call per query, maximum.</p><p>The new architecture:</p><ul><li><strong>Conversational Agent</strong>: The only interface users see</li><li><strong>SQL Agent</strong>: A tool the conversational agent calls when needed</li></ul><p>That’s it. Two agents, but only one LLM call per query because the SQL agent is just a function tool. The conversational agent handles everything: greetings, help requests, casual chat, and when it needs data, it calls the SQL agent as a tool.</p><pre># The SQL agent is just a tool<br>@function_tool<br>async def query_database_tool(<br>    ctx: RunContextWrapper[DatabaseContext],<br>    user_question: str<br>) -&gt; str:<br>    &quot;&quot;&quot;Query the database using natural language.&quot;&quot;&quot;<br>    # Generate SQL, execute, return results<br>    # All in one tool call</pre><p>Response time dropped from 15 seconds to 2–3 seconds. Users stopped walking away.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zy0ZSjINeZ75BEK2BxBtXg.png" /></figure><h3>The Speed Reality Check</h3><p>Here’s the uncomfortable truth: the first query takes about 24 seconds. Yeah, I know. That’s 8x slower than the acceptable threshold.</p><p>But here’s what’s actually happening on that first query:</p><ol><li><strong>Database wake-up</strong> (~5–10 seconds): If you’re using serverless databases (like Neon, PlanetScale, or AWS RDS with auto-pause), they go to sleep after inactivity. The first connection wakes them up.</li><li><strong>Connection health check</strong> (~1–2 seconds): I use pool_pre_ping=True to verify connections before using them. This adds overhead but prevents using stale connections.</li><li><strong>Schema introspection</strong> (~3–5 seconds): On the first query, the system needs to inspect your entire database schema. Every table, every column, every relationship. This is expensive.</li><li><strong>LLM API call</strong> (~2–3 seconds): Generating the SQL query.</li><li><strong>Query execution</strong> (~1–2 seconds): Actually running the query.</li></ol><p>Add it all up, and you get 24 seconds. It’s painful to watch.</p><h3>Caching: The Real Performance Win</h3><p>But here’s where it gets interesting. The second query? 2–3 seconds. The third? Half a second if it’s similar to a previous one.</p><p>I implemented aggressive caching:</p><ol><li><strong>Schema cache</strong> (1 hour TTL): After the first introspection, the schema is cached. No more 5-second delays.</li><li><strong>Query result cache</strong> (5 minutes TTL): Same question, same answer, instant response.</li><li><strong>LLM response cache</strong> (1 hour TTL): If someone asks “count users” twice, don’t call the API twice.</li></ol><p>The impact? Subsequent queries went from 24 seconds to 0.5–3 seconds. That’s 80–95% faster.</p><pre># Check cache first<br>if self.cache_enabled and self.cache_manager:<br>    schema_hash = str(hash(str(schema)))<br>    cached = self.cache_manager.get_llm_response(question, schema_hash)<br>    if cached:<br>        return cached  # 0.5s instead of 2s</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D6KyeTpTAb2pWQTdPg_7SA.png" /></figure><h3>The Warmup Solution</h3><p>The 24-second first query was still a problem. So I added a warmup option that runs on application startup:</p><pre>agent = DatabaseQueryAgent.from_env(<br>    warmup_on_init=True  # Pre-load schema and wake database<br>)</pre><p>This connects to the database, wakes it up if it’s sleeping, extracts the schema, and caches everything before the first user query arrives. The application startup takes 15–20 seconds, but users never see it. They just experience fast queries from the start.</p><p><strong>Result</strong>: First user query drops from 24 seconds to 2–3 seconds. Much more acceptable.</p><h3>Adaptive Model Selection</h3><p>Not all queries are created equal. “Count all users” doesn’t need GPT-4.1. “Show me the correlation between user engagement and revenue across regions for Q4, broken down by customer segment” definitely does.</p><p>I built a complexity detector:</p><pre>def select_model(self, query: str) -&gt; str:<br>    # Simple queries: count, basic SELECT<br>    if self._is_simple_query(query):<br>        return &quot;gpt-4o-mini&quot;  # 2s, 73% accuracy<br>    <br>    # Complex: multiple joins, subqueries<br>    else:<br>        return &quot;gpt-4.1-mini&quot;  # 3s, 87% accuracy</pre><p>Simple queries got 50% faster. Complex queries stayed accurate. Win-win.</p><h3>Streaming Responses</h3><p>Even with all the optimizations, some queries still take 2–3 seconds. That’s an eternity in a chat interface. So I added streaming.</p><p>Instead of waiting for the complete response, tokens start appearing in 500ms. The actual generation time didn’t change, but the perceived speed improved dramatically. Users see progress immediately and stay engaged.</p><pre>async for chunk in agent.query_stream(&quot;Show me top customers&quot;):<br>    print(chunk, end=&quot;&quot;, flush=True)</pre><p>The psychological difference is huge. Three seconds of staring at a blank screen feels like forever. Three seconds of watching a response build token by token feels fast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WCtk4UWuxB1OZcImT7YF9Q.png" /></figure><h3>The Mistakes That Became Features</h3><h3>Mistake #1: Over-Engineering Session Management</h3><p>I spent two days building a custom session management system with Redis, conversation history, context windows, the works. Then I discovered OpenAI’s Agents SDK has built-in session management with a SQLite backend.</p><p>I deleted 500 lines of code and replaced it with:</p><pre>session = agent.create_session(session_id=&quot;user_123&quot;)<br>response = await session.ask(&quot;Show me all products&quot;)<br># Context is automatically maintained</pre><p>Sometimes the best code is the code you don’t write.</p><h3>Mistake #2: Exposing SQL to Users</h3><p>My first UI showed users the generated SQL. I thought it was cool. “Look, here’s what the AI generated!”</p><p>Users hated it. They didn’t care about SQL. They wanted answers, not a peek behind the curtain.</p><p>I removed all SQL from the UI. Now it’s purely conversational:</p><p><strong>User</strong>: “How many orders last week?”<br><strong>Agent</strong>: “You had 1,247 orders last week.”</p><p>No SQL. No technical jargon. Just answers. User satisfaction went up immediately.</p><h3>Mistake #3: Trying to Support Everything</h3><p>I initially tried to support every database, every edge case, every possible configuration. The codebase became a mess.</p><p>I refocused on the essentials: PostgreSQL, MySQL, SQLite, SQL Server. Read-only mode by default. Simple, safe, fast. The 80/20 rule saved me weeks of work.</p><h3>The Configuration Hell (And How I Fixed It)</h3><p>Early versions required 20 parameters to initialise:</p><pre>agent = DatabaseQueryAgent(<br>    database_url=&quot;...&quot;,<br>    openai_api_key=&quot;...&quot;,<br>    fast_model=&quot;...&quot;,<br>    balanced_model=&quot;...&quot;,<br>    # ... 16 more parameters<br>)</pre><p>Nobody wants to write that. So I built a configuration system with three levels:</p><ol><li><strong>Defaults</strong>: Sensible defaults for everything</li><li><strong>.env file</strong>: Load everything from environment variables</li><li><strong>Direct parameters</strong>: Override specific values</li></ol><p>Now you can do this:</p><pre># Load everything from .env<br>agent = DatabaseQueryAgent.from_env()</pre><pre># Or override specific values<br>agent = DatabaseQueryAgent.from_env(<br>    fast_model=&quot;gpt-4.1&quot;,<br>    enable_statistics=True<br>)</pre><p>One line to get started. Customise only what you need.</p><h3>The Production Reality Check</h3><p>Building a demo is easy. Building something production-ready is hard.</p><h3>Safety First</h3><p>I added multiple safety layers:</p><ul><li><strong>Read-only mode by default</strong>: Only SELECT queries allowed</li><li><strong>SQL injection prevention</strong>: Parse and validate everything with sqlparse</li><li><strong>Query timeouts</strong>: 30 seconds max, no infinite queries</li><li><strong>Table restrictions</strong>: Allowlist/blocklist for sensitive tables</li></ul><p>The agent can’t DROP tables, can’t DELETE data, can’t run for hours. It’s safe by default.</p><h3>Connection Pooling</h3><p>Early versions created a new database connection for every query. Slow and wasteful.</p><p>SQLAlchemy’s connection pooling fixed this:</p><pre>self.engine = create_engine(<br>    database_url,<br>    pool_size=10,        # Keep 10 connections ready<br>    max_overflow=20,     # Allow 20 extra if needed<br>    pool_pre_ping=True   # Check connection health<br>)</pre><p>Query execution dropped from 1 second to 200ms. Connection reuse is magic.</p><h3>Statistics and Monitoring</h3><p>You can’t improve what you don’t measure. I added optional statistics tracking:</p><pre>stats = agent.get_stats()<br>print(f&quot;Total queries: {stats[&#39;total_queries&#39;]}&quot;)<br>print(f&quot;Cache hit rate: {stats[&#39;cache_hits&#39;] / stats[&#39;total_queries&#39;] * 100:.1f}%&quot;)<br>print(f&quot;Average response time: {stats[&#39;avg_response_time&#39;]:.2f}s&quot;)</pre><p>In production, my cache hit rate is 65%. That means two out of every three queries return in under a second. The statistics helped me focus on optimising what actually mattered.</p><h3>The Testing Journey</h3><p>I wrote 133 tests. Not because I’m a testing zealot, but because I kept breaking things.</p><p>Every time I optimised for speed, something broke. Every time I added a feature, edge cases appeared. Tests became my safety net.</p><p>The best decision? Making all tests use mocks. No external API calls, no real databases. The full test suite runs in under 30 seconds. Fast tests are tests you actually run.</p><h3>What I’d Do Differently</h3><p>If I started over tomorrow:</p><ol><li><strong>Start with streaming</strong>: I added it late. Should have been day one.</li><li><strong>Benchmark earlier</strong>: I wasted time optimising things that didn’t matter.</li><li><strong>Simpler architecture from the start</strong>: The five-agent system was a detour.</li><li><strong>More aggressive caching</strong>: I was too conservative initially.</li><li><strong>User testing sooner</strong>: Watching real people use it taught me more than any benchmark.</li></ol><h3>The Numbers (The Honest Version)</h3><p>After all optimisations, here’s the real performance:</p><p><strong>First Query (Cold Start):</strong></p><ul><li><strong>With sleeping database</strong>: 20–24 seconds (database wake-up + schema extraction + LLM + query)</li><li><strong>With active database</strong>: 8–10 seconds (schema extraction + LLM + query)</li></ul><p><strong>Subsequent Queries:</strong></p><ul><li><strong>Cached response</strong>: 0.5 seconds (instant from cache)</li><li><strong>Uncached, simple query</strong>: 2–3 seconds (LLM + query execution)</li><li><strong>Uncached, complex query</strong>: 4–6 seconds (LLM + query execution)</li></ul><p><strong>Production Reality:</strong></p><ul><li><strong>Cache hit rate</strong>: 60–65% (most queries are variations of previous ones)</li><li><strong>Average response time</strong>: 2–3 seconds (after warm-up)</li><li><strong>90% of queries</strong>: Complete in under 5 seconds (after the first one)</li></ul><p>The first query is slow. I won’t sugarcoat it. But in production, with an active database and warm cache, the system averages 2–3 seconds per query. That’s usable.</p><h3>What I Learned About AI Systems</h3><p>Building this taught me that AI engineering is 20% prompt engineering and 80% traditional software engineering.</p><p>The LLM is the easy part. OpenAI’s API works great. The hard parts are:</p><ul><li><strong>Cold starts</strong>: Serverless databases and schema introspection create unavoidable delays</li><li><strong>Caching strategy</strong>: Knowing what to cache and for how long</li><li><strong>Connection management</strong>: Pool pre-ping adds safety but costs time</li><li><strong>User expectations</strong>: Managing the gap between “instant” and “24 seconds”</li><li><strong>Honest communication</strong>: Don’t promise 2-second responses if the first one takes 24</li></ul><p>The biggest lesson? Be honest about performance. The first query is slow because of real infrastructure constraints (sleeping databases, schema introspection). But with proper caching and warmup strategies, subsequent queries are fast enough for production use.</p><p>It’s not about having the fanciest multi-agent system. It’s about solving real problems with the simplest architecture that works, and being honest about the tradeoffs.</p><h3>The Package</h3><p>I published it as db-query-agent on PyPI. You can install it with:</p><pre>pip install db-query-agent</pre><p>And use it in three lines:</p><pre>from db_query_agent import DatabaseQueryAgent</pre><pre>agent = DatabaseQueryAgent.from_env()<br>result = await agent.query(&quot;How many users signed up last month?&quot;)</pre><p>It works with Django, Flask, FastAPI, or any Python app. It’s fast enough, safe by default, and actually usable in production.</p><h3>Who Should Use This (Right Now)</h3><p>Let’s be real about the current state: this tool is best suited for <strong>internal company teams</strong> right now. Data analysts, business intelligence teams, internal support staff. People who need quick database insights but can tolerate a 24-second first query. They understand the tradeoff and appreciate the convenience of natural language queries over writing SQL.</p><p>For <strong>end-user-facing applications</strong>? Not yet. End users don’t have the patience to wait 24 seconds for that first response. They’ll bounce. They’ll complain. They’ll assume it’s broken.</p><p>But that’s the current reality, not the final destination.</p><h3>What’s Next: The Performance Roadmap</h3><p>I’m actively working on improving the first-query performance. The main bottleneck right now is the multi-agent system itself. Even with just two agents and one LLM call, there’s orchestration overhead that adds latency.</p><p><strong>Planned optimisations:</strong></p><ul><li><strong>Multi-agent system optimisation</strong>: Reducing the coordination overhead between agents</li><li><strong>Parallel schema loading</strong>: Loading schema metadata while the database wakes up</li><li><strong>Smarter connection management</strong>: Keeping databases warm with periodic health checks</li><li><strong>Edge caching</strong>: Pre-computing common query patterns</li><li><strong>Model fine-tuning</strong>: Training smaller, faster models specifically for SQL generation</li></ul><p>The goal? Get that first query down to 5–8 seconds. At that point, it becomes viable for end-user applications with proper loading states and streaming.</p><h3>Final Thoughts</h3><p>The biggest lesson? Be honest about performance, and optimise for the real bottlenecks.</p><p>I could have shipped the five-agent system and claimed it was “fast.” But 15 seconds per query is unusable. The two-agent system is simpler and faster, but even then, the first query takes 24 seconds because of infrastructure realities: sleeping databases, schema introspection, connection health checks, and multi-agent coordination.</p><p>The solution isn’t to lie about it. It’s to:</p><ol><li><strong>Be honest about current limitations</strong> and who the tool is for</li><li><strong>Warm up on startup</strong> so users never see the cold start</li><li><strong>Cache aggressively</strong> so subsequent queries are fast</li><li><strong>Stream responses</strong> so users see progress immediately</li><li><strong>Keep optimising</strong> the parts that actually matter</li></ol><p>Right now, it’s perfect for internal teams. With the planned optimisations, it’ll be ready for end users. In production, with warmup enabled and an active database, the system averages 2–3 seconds per query. That’s usable for internal tools. Not instant, but good enough.</p><p>If you’re building AI features, especially chat-like interfaces, measure everything. Understand where the time actually goes. Don’t optimise the LLM call if your database is sleeping for 10 seconds. And most importantly: know your audience. Internal tools have different performance requirements than consumer apps. Build for the users you have today while planning for the users you want tomorrow.</p><p>Your users don’t care about your architecture. They care about getting answers. Internal teams will forgive a slow first query if you’re honest about it and the rest are fast. End users won’t. Know the difference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5VKHrUu5cWocvd0EHcL-Q.png" /></figure><p><em>The full source code is on </em><a href="https://github.com/Ocolus1/db-query-agent"><em>GitHub</em></a><em>. The package is on </em><a href="https://pypi.org/project/db-query-agent/"><em>PyPI</em></a><em>. If you’re building something similar, I hope this saves you from some of my mistakes.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73479be5145a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction: The New Rhythm of Coding]]></title>
            <link>https://paulawolesi.medium.com/introduction-the-new-rhythm-of-coding-e38dedb1e9aa?source=rss-97a846fdc75------2</link>
            <guid isPermaLink="false">https://medium.com/p/e38dedb1e9aa</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <dc:creator><![CDATA[Paul Awolesi]]></dc:creator>
            <pubDate>Wed, 22 Oct 2025 07:21:24 GMT</pubDate>
            <atom:updated>2025-10-22T07:21:24.455Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nlNr_c2mMgy7XV4FYwA5PQ.jpeg" /></figure><h3>Introduction: The New Rhythm of Coding</h3><p>Not too long ago, writing code was a slow, deliberate craft. Developers spent long hours debugging, thinking through architecture, and typing every line themselves. Today, a growing number of programmers are coding through conversation: describing features, prompting AI tools, and reviewing what machines create. This shift, often called <strong><em>vibe coding</em></strong> or <em>agentic coding</em>, has become the new rhythm of modern software development.</p><p>With platforms like <strong>Windsurf Cascade</strong>, <strong>Replit Agents</strong>, <strong>StackBlitz Bolt</strong>, and <strong>Lovable Agent Mode</strong>, AI can now design, write, and even refactor entire applications in a fraction of the time it used to take a human. For many developers, this feels revolutionary. But beneath the speed and automation, there’s an emerging problem: more mental fatigue, less satisfaction, and a changing sense of what it even means to be a developer.</p><p>This article takes a closer look at the cognitive, emotional, and economic effects of this new era of AI-assisted development, and how we can adapt before productivity starts costing us more than it gives.</p><h3>1. The Rise of Agentic Coding</h3><p>The new wave of AI-assisted tools isn’t just about autocomplete. We’re now entering the age of <em>agents where </em>AI systems that don’t just suggest code, but carry out complex, multi-step tasks. A developer might ask:</p><blockquote><em>“Create a dashboard with authentication, charts, and API integrations.”</em></blockquote><p>And in seconds, the agent scaffolds the code, sets up dependencies, runs tests, and deploys it to the cloud.</p><p>Tools like Windsurf’s <strong>Cascade</strong> act as assistants that modify multiple files at once, reasoning about context. <strong>Replit’s Agentic Code</strong> can build an entire web app from a simple description. <strong>StackBlitz Bolt</strong> runs and debugs code automatically in the browser. And <strong>Lovable.dev’s Agent Mode</strong> can plan, implement, and revise apps based on high-level goals.</p><p>In this new landscape, developers are less <em>coders</em> and more <em>conductors, </em>guiding AI systems that produce enormous amounts of work quickly. The challenge isn’t typing the code; it’s making sense of it.</p><h3>2. The Productivity Illusion</h3><p>If AI can produce code ten times faster than a person, shouldn’t developers be ten times more productive? It sounds logical until you realise that generating code isn’t the same as delivering reliable software.</p><p>A 2025 study by the Model Evaluation and Threat Research (METR) group revealed a surprising result: developers using AI tools took <strong>19% longer</strong> to finish real-world coding tasks than those working without them. Why? Because they spent more time <strong>reviewing, debugging, and reworking AI-generated code</strong>.</p><p>Developers in that study reported that they accepted less than half of the AI’s suggestions. In over half the cases, they had to rewrite significant portions of code. The result: while AI made them <em>feel</em> faster, they were actually slower.</p><p>The coding era&#39;s paradox: faster typing, slower shipping. Developers now spend more time contemplating AI&#39;s output than reducing coding time.</p><h3>3. When Speed Outpaces Understanding</h3><p>Coding used to have a rhythm: think, type, debug, reflect. The AI era has compressed that into a blur of generation and review. You ask for a feature, and in seconds, you’re staring at hundreds of new lines of code. Your brain has to play catch-up.</p><p>As developer Stephan Schmidt put it:</p><blockquote><em>“I finish a feature, fix a bug, and start another — all in minutes. But my brain feels foggy, like it hasn’t processed what just happened.</em></blockquote><p>That’s because the pace of AI work breaks our natural thinking cycles. The brain can only absorb information so fast. When complex changes appear all at once, comprehension lags behind creation. It’s like watching a movie on fast-forward and being asked to write a review.</p><p>The result is a new kind of exhaustion. Not from typing, but from <em>tracking</em>. Developers describe feeling mentally overloaded, switching between contexts too often, and struggling to maintain a clear picture of what their software actually does.</p><h3>4. The New Cognitive Load</h3><p>In psychology, <em>cognitive load</em> refers to the total mental effort used in working memory. When that load exceeds capacity, fatigue sets in. AI coding tools, ironically, increase this load by producing more information than developers can comfortably process.</p><p>Here’s what that looks like in practice:</p><ul><li><strong>Too many context switches.</strong> Every AI prompt can touch multiple files. Reviewing those changes means jumping between unrelated parts of a system.</li><li><strong>Loss of architectural intuition.</strong> Because AI writes code so fast, developers have less time to mentally model how everything fits together.</li><li><strong>Unstable dopamine cycles.</strong> Solving a bug used to give satisfaction. Now, instant AI results trigger shallow “wins” that feel good but don’t last.</li><li><strong>Reduced ownership.</strong> Developers start feeling like spectators in their own projects.</li></ul><p>One developer described the experience as “coding without craftsmanship.” The work gets done, but the satisfaction of making something elegant begins to fade.</p><h3>5. Emotional Fatigue and the Creativity Deficit</h3><p>AI tools can make programming exciting again, at first. But over time, constant reliance on automation can create what some call the <em>creativity deficit</em>.</p><p>When every problem can be solved by prompting, the joy of wrestling with complexity disappears. Developers lose the flow state that comes from solving something difficult through insight and persistence. Instead, they get quick dopamine hits from working faster, which fade just as fast.</p><p>As Namanyay Goel wrote in his viral essay, <em>“Vibe Coding Is Creating Braindead Coders”</em>:</p><blockquote><em>“There’s no struggle, no insight, no growth. Just prompts, completions, and the illusion of progress.”</em></blockquote><p>This isn’t universal, many developers still find deep satisfaction in using AI to accelerate creative work. But the danger is clear: if AI replaces our engagement with challenges, it can also drain our sense of purpose.</p><h3>6. The Economic Question: Should Developers Be Paid More?</h3><p>If developers are now managing and reviewing exponentially more code, are they doing <em>more</em> work or <em>less</em>?</p><p>The answer depends on perspective. AI tools offload manual tasks but increase accountability. Developers aren’t just coding; they’re supervising autonomous systems that can make costly mistakes. In that sense, their responsibility has grown.</p><p>A single developer with an AI agent can now produce what a small team once did, but that developer is also responsible for quality, security, and maintainability across all of it. It’s comparable to a senior engineer managing multiple junior devs at once.</p><p>From an economic standpoint, that higher responsibility justifies equal or higher compensation, not less. Companies that see AI as a reason to pay developers less misunderstand how the technology actually works. The code still needs human oversight, and that oversight is intellectually demanding.</p><p>In the long run, the market will likely reward developers who can guide AI systems effectively especially those who understand both the machine’s potential and its blind spots.</p><h3>7. Coping Strategies for Developers</h3><p>AI is here to stay, and learning to work with it without burning out is part of the modern craft. Here are strategies used by developers who’ve adapted well:</p><ol><li><strong>Pace yourself.</strong> Treat AI as an assistant, not a stopwatch. Take breaks between major generations.</li><li><strong>Review before merging.</strong> If you can’t explain what the AI wrote, don’t trust it.</li><li><strong>Use AI for the boring stuff.</strong> Let it handle boilerplate, but own the core logic.</li><li><strong>Rebuild your mental models.</strong> Take time after a big generation to re-map how the new code fits into your system.</li><li><strong>Stay sharp without AI.</strong> Code small projects manually to keep your reasoning and problem-solving skills alive.</li><li><strong>Avoid context-switching overload.</strong> Limit multitasking while AI runs. Stay mentally in one flow.</li><li><strong>Guard your focus.</strong> Use break timers or blockers to prevent distractions when AI is generating code.</li><li><strong>Take full breaks.</strong> Remember, your brain needs rest even if the AI doesn’t.</li></ol><p>Developers who adopt deliberate pacing and reflection report fewer burnout symptoms and greater confidence in their codebases.</p><h3>8. What Employers Can Do Better</h3><p>Employers also have a responsibility to help teams transition sustainably into the AI era. That starts with how they measure and reward work.</p><ul><li><strong>Stop counting lines of code.</strong> More code doesn’t mean more value. In fact, it often means more complexity.</li><li><strong>Redefine productivity.</strong> Focus on clarity, maintainability, and impact instead of velocity.</li><li><strong>Encourage code health.</strong> Allocate dedicated time for refactoring and reviewing AI-generated code.</li><li><strong>Train teams properly.</strong> Provide workshops on prompt engineering and AI-assisted code review.</li><li><strong>Recognise cognitive load.</strong> AI increases mental effort in different ways. Respect that.</li><li><strong>Promote psychological safety.</strong> Developers should feel comfortable admitting when AI output confuses or overwhelms them.</li></ul><p>Companies that combine AI efficiency with human empathy will see the real benefits which is faster innovation <em>and</em> healthier teams.</p><h3>9. Redefining the Role of the Developer</h3><p>Agentic coding doesn’t eliminate the need for developers; it elevates them. The future developer is part engineer, part analyst, part editor they are essentially someone who understands systems holistically and guides AI toward reliable outcomes.</p><p>The most valuable developers won’t be the fastest typists but the best <em>thinkers</em>. They’ll ask better questions, design stronger architectures, and maintain a critical eye toward machine-generated output. In essence, developers are becoming curators of logic, we are basically ensuring what the machine writes reflects human intent and intelligence.</p><p>As one researcher noted:</p><blockquote><em>“AI doesn’t replace developers. It promotes them.”</em></blockquote><h3>10. The Path Forward: Balancing Power and Presence</h3><p>The arrival of AI agents marks a turning point in software history. We can now build faster than ever, but speed alone doesn’t define progress. If we don’t adapt our habits, tools, and expectations, we risk burning out the very people AI was meant to empower.</p><p>Developers should embrace AI as a collaborator, not a replacement. Employers should support slower thinking, thoughtful review, and realistic pacing. Together, we can make this era not just more productive, but more sustainable.</p><p>Because the goal isn’t to code faster, it’s to code better, with minds that can keep up with the machines they’ve built.</p><p><em>If you enjoyed this article, share it with your team or developer community. Sustainable coding is the next great challenge, and the solution begins with awareness.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e38dedb1e9aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an AI Travel Agent: When Planning Your Trip Shouldn’t Take Longer Than the Trip Itself]]></title>
            <link>https://paulawolesi.medium.com/building-an-ai-travel-agent-when-planning-your-trip-shouldnt-take-longer-than-the-trip-itself-4fdf3273b452?source=rss-97a846fdc75------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fdf3273b452</guid>
            <category><![CDATA[ai-travel-planner]]></category>
            <category><![CDATA[crew-ai]]></category>
            <category><![CDATA[multi-agent-systems]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Paul Awolesi]]></dc:creator>
            <pubDate>Mon, 06 Oct 2025 12:47:15 GMT</pubDate>
            <atom:updated>2025-10-06T12:47:15.131Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mjFZ0J1rv4v9X8gF" /></figure><p><em>How I built an intelligent travel companion that researches, plans, and exports personalised itineraries, then answers all your questions about them</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NpdlJDblHeXVl8hEIKZhwQ.png" /></figure><h3>Table of Contents</h3><ol><li><a href="#3515">The Problem: Travel Planning is Exhausting</a></li><li><a href="#d542">The Vision: An AI That Does the Heavy Lifting</a></li><li><a href="#5f7d">Building a Team of AI Specialists</a></li><li><a href="#46af">The Technical Journey (And the Bumps Along the Way)</a></li><li><a href="#725c">The Magic Moment: Asking Questions About Your Trip</a></li><li><a href="#838b">How the System Actually Works</a></li><li><a href="#9cea">What I Learned About Building Travel AI</a></li><li><a href="#e3a2">Try It Yourself</a></li></ol><h3>The Problem: Travel Planning is Exhausting</h3><p>I love travelling. I hate planning travel.</p><p>There’s something uniquely exhausting about the modern travel planning process. You start with excitement, imagining yourself sipping espresso in a Parisian café or hiking through New Zealand mountains. Then reality hits.</p><p>You open 47 browser tabs. You read conflicting TripAdvisor reviews. You spend three hours researching the “best time to visit Sacré-Cœur” only to discover it’s closed for renovation during your trip. You create a Google Doc that somehow becomes 20 pages long. You try to manually add activities to your calendar, but give up after the third event because typing times is tedious.</p><p>Worst of all? After all that work, your friends ask simple questions like “What are we doing on Day 3?” and you can’t remember because the information is scattered across bookmarks, notes, and half-finished spreadsheets.</p><p><strong>There had to be a better way.</strong></p><h3>The Vision: An AI That Does the Heavy Lifting</h3><p>I wanted to build something that would make travel planning feel effortless. Not just a tool that gives you generic recommendations, but an intelligent assistant that:</p><ul><li><strong>Research</strong> destinations like you would find hidden gems, checking current information, and considering seasonal events</li><li><strong>Plans</strong> realistic itineraries that balance sightseeing with downtime</li><li><strong>Exports</strong> everything to your calendar with one click</li><li><strong>Answers questions</strong> about your trip naturally, like a knowledgeable travel companion</li></ul><p>The key insight? This isn’t a job for one AI; it’s a job for a <strong>team</strong> of specialised AI agents working together.</p><h3>Building a Team of AI Specialists</h3><p>I built the AI Travel Agent using CrewAI, a framework for orchestrating multiple AI agents. Unlike my previous AI Data Analyst project (which used a hierarchical manager-agent structure), this system uses a <strong>sequential workflow</strong> where specialised agents pass their work to the next agent in line.</p><p>Think of it like a professional travel agency with three departments:</p><h3>The Research Department: Destination Researcher 🔍</h3><p>This agent is your obsessive travel researcher who lives on travel blogs and review sites.</p><p><strong>Responsibilities:</strong></p><ul><li>Finds top attractions and hidden gems</li><li>Research restaurants and local cuisine</li><li>Discovers seasonal events and festivals</li><li>Checks current information (opening hours, prices, etc.)</li><li>Provides cultural tips and local insights</li></ul><p><strong>Tools:</strong> SerperDev API for real-time web search</p><p>This agent isn’t just pulling generic information. It’s actively searching the web for current, relevant data about your specific destination during your travel dates.</p><h3>The Planning Department: Itinerary Planner 📋</h3><p>Once the researcher finishes, the planner takes over. This agent is the practical one who thinks about logistics.</p><p><strong>Responsibilities:</strong></p><ul><li>Creates balanced day-by-day schedules</li><li>Group nearby attractions to minimise travel time</li><li>Schedules activities at optimal times</li><li>Includes specific meal recommendations</li><li>Estimates the costs for everything</li><li>Builds in downtime so you’re not exhausted</li></ul><p><strong>Key Feature:</strong> It considers realistic constraints like “you can’t visit the Eiffel Tower at 8 AM because it’s not open yet” or “you probably shouldn’t schedule 10 activities in one day.”</p><h3>The Documentation Department: Calendar Formatter 📆</h3><p>The final agent transforms your itinerary into a calendar-ready format.</p><p><strong>Responsibilities:</strong></p><ul><li>Extracts every activity with precise timing</li><li>Formats events for calendar import</li><li>Generates a .ics file compatible with Google Calendar, Apple Calendar, and Outlook</li></ul><p><strong>Tools:</strong> Custom CalendarGeneratorTool (more on this later)</p><p>This agent ensures that with one click, your entire trip appears in your calendar — every museum visit, every restaurant reservation, every activity perfectly scheduled.</p><h3>The Technical Journey (And the Bumps Along the Way)</h3><p>Building this wasn’t a straight line. I hit several interesting challenges that taught me a lot about working with AI agents.</p><h3>Challenge 1: The Calendar File Generator</h3><p>The hardest part wasn’t the AI planning, it was getting the calendar export to work reliably.</p><p><strong>The Problem:</strong> AI agents generate text in varying formats. Sometimes they’d write “9:00 AM” and other times “09:00” or “9 AM”. Parsing this into a valid .ics file was messy.</p><p><strong>The Solution:</strong> I built a custom function tool CalendarGeneratorTool that handles multiple date/time formats gracefully:</p><pre>class CalendarGeneratorTool(BaseTool):<br>    def _create_datetime(self, date_str: str, time_str: str) -&gt; datetime:<br>        # Try multiple formats<br>        date_formats = [&#39;%Y-%m-%d&#39;, &#39;%B %d, %Y&#39;, &#39;%b %d, %Y&#39;]<br>        time_formats = [&#39;%I:%M %p&#39;, &#39;%H:%M&#39;, &#39;%I %p&#39;]<br>        <br>        # Intelligently parse dates and times<br>        # Fallback gracefully if format doesn&#39;t match</pre><p>The tool can handle date formats like “2025–11–05”, “November 5, 2025”, or “Nov 5, 2025” and time formats like “9:00 AM”, “09:00”, or “9 AM”. It’s robust enough to work with whatever the AI generates.</p><h3>Challenge 2: File Overwriting Chaos</h3><p>Early versions had a frustrating bug. Every time you generated a new itinerary, it would overwrite the previous files.</p><p>Generate a Paris trip → files named travel_itinerary.md and calendar_events.txt<br>Generate a Tokyo trip → <strong>same filenames</strong>, Paris trip gone</p><p><strong>The Solution:</strong> Unique file naming based on destination and date:</p><pre>def rename_export_files(destination, start_date):<br>    clean_dest = destination.replace(&#39;, &#39;, &#39;_&#39;).replace(&#39; &#39;, &#39;_&#39;)<br>    date_prefix = start_date.replace(&#39;-&#39;, &#39;&#39;)<br>    <br>    # Creates: 20251105_Paris_France_itinerary.md<br>    # Creates: 20251105_Tokyo_Japan_itinerary.md</pre><p>Now each trip gets uniquely named files that never conflict. You can generate dozens of itineraries without losing anything.</p><h3>Challenge 3: The SerperDev Tool Initialisation</h3><p>The Destination Researcher uses SerperDev API for web search. But what if someone doesn’t have a Serper API key yet?</p><p><strong>The Problem:</strong> The App would crash immediately if the API key was missing.</p><p><strong>The Solution:</strong> Graceful degradation with error handling:</p><pre>def __init__(self):<br>    try:<br>        self.search_tool = SerperDevTool()<br>    except Exception as e:<br>        print(f&quot;Warning: SerperDevTool initialization failed: {e}&quot;)<br>        self.search_tool = None</pre><p>The app works without it (though with less current information). Users can add the API key later without changing code.</p><h3>Challenge 4: CrewAI Timeout Prompts</h3><p>CrewAI would interrupt the workflow with “Would you like to view your execution traces? [y/N] (20s timeout)” which was jarring in a web app.</p><p><strong>The Solution:</strong> Disable telemetry and memory:</p><pre>Crew(<br>    agents=self.agents,<br>    tasks=self.tasks,<br>    process=Process.sequential,<br>    memory=False,  # Disable memory prompts<br>    embedder=None,  # Disable embedder<br>)</pre><p>Plus, adding CREWAI_TELEMETRY=false to the .env file. Clean, uninterrupted workflow.</p><h3>Challenge 5: Dark Theme Redesign</h3><p>The original UI had flashy purple gradients. It looked like a startup landing page, not a professional tool.</p><p><strong>User Feedback:</strong> “Can you make it darker and less… flashy?”</p><p><strong>The Solution:</strong> Complete redesign to a professional dark theme with subtle accents. Navy backgrounds (#1a1f2e), light text (#e2e8f0), and blue/green accent colours. The result feels like a premium tool, not a toy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SJBKylJb7Z3Rj_hXG6e8RA.png" /></figure><p>Each of these challenges made the system better. The tool handles edge cases gracefully, works offline (mostly), and looks professional.</p><h3>The Magic Moment: Asking Questions About Your Trip</h3><p>Here’s where the system really shines. After generating your itinerary, you can <strong>ask questions about it</strong> through a natural chat interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V9d3w3odxMafnYOEqdhI1g.png" /></figure><p>In the screenshot above, I asked: <em>“You want me to explore Montmartre when I visit Paris, what can you tell me about it?”</em></p><p>The AI responded with detailed, contextual information:</p><ul><li><strong>Sacré-Cœur Basilica</strong> — Stunning architecture with panoramic city views</li><li><strong>Place du Tertre</strong> — Artist square near Sacré-Cœur with cafés and portraits</li><li><strong>Artistic History</strong> — Home to Picasso, Van Gogh, and the Moulin Rouge</li><li><strong>Quaint Streets</strong> — Charming shops, bakeries, and hidden gems</li><li><strong>Cafés and Dining</strong> — Historic spots like Le Consulat and La Maison Rose</li><li><strong>Moulin Rouge</strong> — Iconic cabaret venue</li><li><strong>Photography Tips</strong> — Capturing cobblestone streets and vibrant street art</li></ul><p><strong>This is the game-changer.</strong> Instead of just dumping an itinerary on you, the system becomes a knowledgeable companion you can have a conversation with.</p><h3>How the Chat Works</h3><p>Behind the scenes, the chat interface uses GPT-4o with the full itinerary as context:</p><pre>def answer_question(question):<br>    context_messages = [{<br>        &quot;role&quot;: &quot;system&quot;,<br>        &quot;content&quot;: f&quot;&quot;&quot;You are a helpful travel assistant. <br>        You have generated the following itinerary:<br>        <br>        {st.session_state.current_itinerary}<br>        <br>        Answer questions about this itinerary, provide suggestions, <br>        and help the user modify their plans.&quot;&quot;&quot;<br>    }]<br>    <br>    # Add conversation history for context<br>    # Add current question<br>    # Get response from GPT-4o</pre><p>The system maintains <strong>conversation memory</strong> across your session. Ask a follow-up question like “What about on Day 3?” and it remembers the context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0uKM9bRmWl_QplW8FOvYyg.png" /></figure><p>The full itinerary is always available in a dedicated tab (shown above), with every detail from morning activities to evening dining recommendations.</p><h3>How the System Actually Works</h3><p>Let me walk you through what happens when you plan a trip.</p><h3>Step 1: You Provide Trip Details</h3><p>Open the web app and fill in the sidebar form:</p><ul><li><strong>Destination:</strong> “Paris, France”</li><li><strong>Days:</strong> 5</li><li><strong>Start Date:</strong> November 5, 2025</li><li><strong>Preferences:</strong> Budget, interests, travel style, special requests</li></ul><p>Click “🚀 Generate Itinerary” and the AI team springs into action.</p><h3>Step 2: The Research Phase</h3><p>The <strong>Destination Researcher</strong> agent activates:</p><pre>🔍 Researching Paris, France...<br>- Searching for top attractions<br>- Finding local restaurants<br>- Checking seasonal events for November<br>- Discovering hidden gems<br>- Researching transportation options</pre><p>It uses SerperDev to search the web for current information. The output is a comprehensive research report with:</p><ul><li>10–15 attractions with descriptions</li><li>5–7 restaurant recommendations</li><li>3–5 accommodation options</li><li>Practical tips and local insights</li><li>Transportation information</li><li>Weather and packing suggestions</li></ul><h3>Step 3: The Planning Phase</h3><p>The <strong>Itinerary Planner</strong> receives the research and creates a day-by-day schedule:</p><pre>📋 Planning your 5-day itinerary...<br>- Balancing activities and rest time<br>- Grouping nearby attractions<br>- Scheduling optimal visit times<br>- Adding meal recommendations<br>- Estimating costs</pre><p>The output is a detailed itinerary with:</p><ul><li><strong>Morning, Afternoon, Evening</strong> activities for each day</li><li><strong>Specific times</strong> (e.g., “9:00 AM — 12:00 PM: Visit the Louvre”)</li><li><strong>Restaurant suggestions</strong> with cuisine types</li><li><strong>Estimated costs</strong> per activity and per day</li><li><strong>Practical tips</strong> and alternatives</li></ul><h3>Step 4: The Calendar Export Phase</h3><p>The <strong>Calendar Formatter</strong> transforms the itinerary into calendar events:</p><pre>📆 Formatting calendar events...<br>- Extracting activities with times<br>- Creating structured event data<br>- Generating .ics calendar file</pre><p>The output includes:</p><ul><li>calendar_events.txt - Human-readable event list</li><li>Paris_France_itinerary.ics - Importable calendar file</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NpdlJDblHeXVl8hEIKZhwQ.png" /></figure><p>The export tab (shown above) provides all three files in one convenient ZIP download, plus instructions for importing to any calendar app.</p><h3>Step 5: Chat and Explore</h3><p>Now the fun part — ask questions about your trip:</p><ul><li>“What should I know about visiting the Louvre?”</li><li>“Are there any good cafés near the Eiffel Tower?”</li><li>“What’s the best way to get around Paris?”</li><li>“Can you suggest alternatives for Day 3?”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UI61Wr9d7htkchXQ77epng.png" /></figure><p>The chat interface remembers your entire conversation and the generated itinerary, providing contextual, helpful answers.</p><h3>What I Learned About Building Travel AI</h3><p>Building this project taught me several valuable lessons about AI systems and travel planning.</p><h3>Lesson 1: Sequential Can Be Simpler Than Hierarchical</h3><p>In my AI Data Analyst project, I used a hierarchical manager-agent structure because the workflow needed to be dynamic. But for travel planning, a <strong>sequential workflow</strong> is clearer and more predictable:</p><ol><li>Research → 2. Plan → 3. Format</li></ol><p>There’s no need for a manager to decide what to do next. The workflow is always the same. Sometimes simpler is better.</p><h3>Lesson 2: Real-Time Data Makes AI Useful</h3><p>The SerperDev web search integration is crucial. Without it, the AI would rely on training data that might be outdated. With it, the system can:</p><ul><li>Check current opening hours</li><li>Find recent restaurant reviews</li><li>Discover new attractions</li><li>Verify seasonal events</li></ul><p>Real-time data turns the AI from “knowledgeable” to “current.”</p><h3>Lesson 3: The Chat Interface Changes Everything</h3><p>Generating an itinerary is valuable. Being able to <strong>talk about</strong> the itinerary is transformative.</p><p>Users don’t just want a document — they want to explore ideas, ask questions, get clarifications, and understand their options. The chat interface makes the AI feel like a travel companion, not just a tool.</p><h3>Lesson 4: Details Matter for User Experience</h3><p>Small things made a huge difference:</p><ul><li><strong>Unique file naming</strong> prevents accidental overwrites</li><li><strong>Dark theme</strong> makes the UI feel professional</li><li><strong>ZIP downloads</strong> simplify file management</li><li><strong>Session statistics</strong> help users track their interactions</li><li><strong>Clear tab organisation</strong> makes features discoverable</li></ul><p>These weren’t technically challenging, but they dramatically improved the user experience.</p><h3>Lesson 5: Calendar Export is Surprisingly Hard</h3><p>Building the calendar generator taught me that standardised formats don’t mean consistent formats. The iCalendar (.ics) specification is clear, but parsing AI-generated text into it requires handling:</p><ul><li>Multiple date formats</li><li>Various time formats (12h vs 24h)</li><li>Missing information (what if the AI forgets the end time?)</li><li>Timezone considerations</li><li>Special characters in event descriptions</li></ul><p>The solution: <strong>defensive parsing</strong> with fallbacks for every edge case.</p><h3>Lesson 6: Error Handling Defines Quality</h3><p>The difference between a demo and a production tool is how it handles errors:</p><ul><li>Missing API keys → Graceful degradation</li><li>Rate limits → Clear error messages</li><li>Failed file generation → User-friendly warnings</li><li>Empty inputs → Validation with helpful hints</li></ul><p>Handle the errors well, and users will trust your tool.</p><h3>The Technology Stack</h3><p>For those interested in the technical details:</p><p><strong>Core Framework:</strong></p><ul><li><strong>CrewAI</strong> — Multi-agent orchestration with sequential workflow</li><li><strong>OpenAI GPT-4o</strong> — Powers all agents (research, planning, formatting)</li><li><strong>Streamlit</strong> — Modern web interface with session management</li></ul><p><strong>APIs and Tools:</strong></p><ul><li><strong>SerperDev API</strong> — Real-time web search for destination research</li><li><strong>iCalendar</strong> — Calendar file generation library</li><li><strong>Python-dotenv</strong> — Environment variable management</li></ul><p><strong>Key Libraries:</strong></p><ul><li>pytz - Timezone handling for calendar events</li><li>markdown - Format conversion (though mostly unused)</li><li>openai - Direct GPT-4o API access for chat</li></ul><p><strong>Architecture:</strong></p><ul><li>Sequential agent workflow (Research → Plan → Format)</li><li>Session-based memory for chat context</li><li>File export system with unique naming</li><li>Custom calendar generation tool</li></ul><p>The entire system runs locally — no data leaves your machine except API calls to OpenAI and SerperDev.</p><h3>Try It Yourself</h3><p>Here’s what you can do with the AI Travel Agent:</p><p><strong>Quick Trip Planning:</strong></p><ul><li>“5-day Paris itinerary with art museums and cafés”</li><li>“Weekend adventure trip to Queenstown, New Zealand”</li><li>“Family-friendly Orlando vacation for 7 days”</li></ul><p><strong>Interactive Questions:</strong></p><ul><li>“What restaurants do you recommend near the Colosseum?”</li><li>“Is Day 3 too packed? Should I cut something?”</li><li>“What should I pack for November in Paris?”</li><li>“Can you suggest a budget-friendly alternative to this hotel?”</li></ul><p><strong>Export Everything:</strong></p><ul><li>Download complete itinerary as Markdown</li><li>Import the full schedule to Google Calendar, Apple Calendar, or Outlook</li><li>Get all files in one ZIP archive</li></ul><h3>Getting Started</h3><p>The AI Travel Agent is open-source. You can run it locally with just a few commands:</p><pre># Clone the repository<br>git clone https://github.com/Ocolus1/travel-agent-ai<br>cd travel-agent-ai</pre><pre># Install dependencies<br>pip install uv<br>crewai install</pre><pre># Set up API keys in .env<br>echo &quot;OPENAI_API_KEY=your_key&quot; &gt; .env<br>echo &quot;SERPER_API_KEY=your_key&quot; &gt;&gt; .env</pre><pre># Launch the web app<br>streamlit run app.py</pre><p><strong>API Keys:</strong></p><ul><li><strong>OpenAI API Key:</strong> Sign up at <a href="https://platform.openai.com/">OpenAI Platform</a></li><li><strong>Serper API Key:</strong> Free tier available at <a href="https://serper.dev/">Serper.dev</a></li></ul><p>Open your browser localhost:8501 and start planning your dream trip.</p><h3>Final Thoughts: AI as a Travel Companion</h3><p>As I built this tool, I kept thinking about what makes travel planning frustrating. It’s not the research itself, it’s the <strong>cognitive overhead</strong> of juggling dozens of browser tabs, remembering details, and organising information.</p><p>The AI Travel Agent doesn’t replace the human element of travel planning. Instead, it removes the tedious parts so you can focus on the exciting decisions:</p><ul><li>Should we spend more time in museums or cafés?</li><li>Is this itinerary too ambitious or too relaxed?</li><li>What hidden gems should we prioritise?</li><li>How can we balance tourist sites with local experiences?</li></ul><p>These are the fun questions. The AI handles the boring questions — opening hours, travel times, cost estimates, calendar formatting — so you don’t have to.</p><p><strong>The result?</strong> Travel planning that feels less like work and more like the beginning of an adventure.</p><p>And when your friends ask, “What are we doing on Day 3?” you can simply open your calendar app and show them, because everything is already there, perfectly organised, ready to go.</p><h3>Want to Contribute?</h3><p>The AI Travel Agent is open-source and actively maintained. You can:</p><ul><li>Report bugs or request features on <a href="https://github.com/Ocolus1/travel-agent-ai/issues">GitHub Issues</a></li><li>Submit pull requests to improve the code</li><li>Star the repository if you find it useful</li><li>Share it with fellow travellers</li></ul><p>Visit the <a href="https://github.com/Ocolus1/travel-agent-ai">GitHub repository</a> to contribute or explore the code.</p><p>If you found this article helpful, give it a clap and share it with others who spend too much time planning trips. If you have questions about AI agents, travel planning automation, or multi-agent systems, leave a comment. I’d love to discuss!</p><p><strong>Happy travels!</strong></p><h3>Resources</h3><ul><li><strong>GitHub Repository:</strong> <a href="https://github.com/Ocolus1/travel-agent-ai">https://github.com/Ocolus1/travel-agent-ai</a></li><li><strong>CrewAI Documentation:</strong> <a href="https://docs.crewai.com/">https://docs.crewai.com</a></li><li><strong>OpenAI Platform:</strong> <a href="https://platform.openai.com/">https://platform.openai.com</a></li><li><strong>Serper API:</strong> <a href="https://serper.dev/">https://serper.dev</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fdf3273b452" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an AI Data Analyst: When Multiple Agents Work Better Than One]]></title>
            <link>https://paulawolesi.medium.com/building-an-ai-data-analyst-when-multiple-agents-work-better-than-one-7b2ae4910e40?source=rss-97a846fdc75------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b2ae4910e40</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[multi-agent-systems]]></category>
            <dc:creator><![CDATA[Paul Awolesi]]></dc:creator>
            <pubDate>Tue, 30 Sep 2025 19:37:53 GMT</pubDate>
            <atom:updated>2025-09-30T19:37:53.622Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*umxkFiwLcdBv7NUzYoo-rA.png" /></figure><h3>Table of Contents</h3><ol><li><a href="#dedc">The Problem: Data Analysis Shouldn’t Require SQL Expertise</a></li><li><a href="#20cd">The First Attempt: A Sequential Approach That Fell Short</a></li><li><a href="#83aa">The Eureka Moment: Discovering Hierarchical Multi-Agent Systems</a></li><li><a href="#665c">How It Works: A Manager and Three Specialists</a></li><li><a href="#1069">The Technical Challenges (And How I Solved Them)</a></li><li><a href="#7fa3">What I Learned About AI Collaboration</a></li><li><a href="#47f0">Try It Yourself</a></li></ol><h3>The Problem: Data Analysis Shouldn’t Require SQL Expertise</h3><p>I’ve always believed that powerful tools should be accessible to everyone. You shouldn’t need to be a SQL expert to understand your business data. You shouldn’t need to write complex queries just to answer simple questions like “What’s my average sales by region?” or “Show me the top 10 customers.”</p><p>Yet that’s exactly what most data analysis tools demand. They force you to learn their query language, understand their data structures, and wrestle with syntax errors that make no sense.</p><p>So I set out to build something different: an AI-powered data analyst that understands plain English. Upload your Excel file or CSV, ask your questions naturally, and get clear answers with beautiful visualisations. No SQL required. No technical jargon. Just insights.</p><p>What I didn’t expect was that building this tool would teach me something profound about how AI agents should work together.</p><h3>The First Attempt: A Sequential Approach That Fell Short</h3><p>Like most developers, I started with the simplest approach: a sequential workflow. Load the data, then analyse it, then interpret the results. Step 1, Step 2, Step 3. Linear. Predictable. Easy to understand.</p><p>I built it using CrewAI, a framework for orchestrating multiple AI agents. I created three specialised agents:</p><ul><li><strong>Data Loading Specialist</strong>: Handles file uploads and validates the data</li><li><strong>SQL Query Expert</strong>: Converts natural language questions into SQL and executes them</li><li><strong>Data Insights Interpreter</strong>: Takes the results and explains them in plain language</li></ul><p>The agents would run in sequence, passing their output to the next agent in line. It worked… sort of.</p><p>But I quickly noticed problems. The system was rigid. Every query, no matter how simple, went through all three agents. Sometimes the SQL agent would claim “data is not available due to data access issues” even though the data was clearly loaded. Other times it would explain HOW to calculate something without actually calculating it. “The average can be calculated by…” instead of just telling me the average.</p><p>The workflow felt mechanical, not intelligent. It reminded me of those frustrating automated phone systems that make you go through every menu option even when you just need a simple answer.</p><p>There had to be a better way.</p><h3>The Eureka Moment: Discovering Hierarchical Multi-Agent Systems</h3><p>The breakthrough came when I discovered CrewAI’s hierarchical process. Instead of a rigid sequence, I could have a <strong>manager agent</strong> that intelligently coordinates the specialists.</p><p>Think of it like a real workplace. You don’t have a fixed process where every task goes to Person A, then Person B, then Person C — regardless of what the task is. Instead, you have a manager who understands the problem, decides who needs to be involved, and coordinates their work.</p><p>That’s exactly what I built.</p><p>I created a custom manager agent — a “Data Analysis Project Manager” — powered by GPT-4o. This manager agent:</p><ul><li>Understands the user’s question</li><li>Decides which specialists to involve</li><li>Delegates tasks with clear instructions</li><li>Reviews the work to ensure quality</li><li>Validates that tools are actually being used</li><li>Ensures the final answer includes real numbers, not just explanations</li></ul><p>Suddenly, the system came alive. It wasn’t following a script anymore; it was thinking.</p><h3>How It Works: A Manager and Three Specialists</h3><p>Let me walk you through what happens when you ask a question like “What is the average sales amount?”</p><h3>The User’s Journey</h3><ol><li><strong>You upload your data</strong>: Drag and drop your Excel file or CSV into the web interface</li><li><strong>You ask your question</strong>: Type it naturally, like you’re talking to a colleague</li><li><strong>The magic happens</strong>: Behind the scenes, the manager agent springs into action</li></ol><h3>Behind the Scenes</h3><p>The <strong>Manager Agent</strong> receives your question and thinks:</p><ul><li>“The user wants an average — that’s an aggregation”</li><li>“The data is already loaded”</li><li>“I need the SQL Analyst to calculate this”</li><li>“Then I need the Interpreter to present it clearly”</li></ul><p>It creates a plan and delegates:</p><p><strong>Task 1</strong>: Sent to the <strong>SQL Query Expert</strong></p><ul><li>The agent understands it needs the AVG() function</li><li>It writes: SELECT AVG(sales_amount) FROM data</li><li>It executes the query using the SQL Query Tool</li><li>It gets the result: 528.99</li><li>It reports back: “Average is $528.99 from 50 records”</li></ul><p>The <strong>Manager reviews the work</strong>:</p><ul><li>Did the agent actually execute the query?</li><li>Is there a real numerical result?</li><li>Does it answer the question?</li></ul><p><strong>Task 2</strong>: Sent to the <strong>Data Insights Interpreter</strong></p><ul><li>Takes the raw result</li><li>Formats it beautifully:</li></ul><pre>## Answer<br>The average sales amount is $528.99.<br><br>## Key Findings<br>- 50 transactions analyzed<br>- Average per transaction: $528.99<br>- Data range shows healthy variation</pre><p>The <strong>Manager does a final check</strong> and delivers the result to you.</p><h3>The Beautiful Part</h3><p>Here’s what makes this approach special: the workflow adapts to the question.</p><ul><li>Simple question (“What’s the total?”) → Quick path, minimal agents</li><li>Complex question (“Show me sales trends by region with a chart”) → Multiple agents, visualisation tools, detailed analysis</li></ul><p>The manager figures it out dynamically. No hardcoded sequences. No rigid workflows. Just intelligent coordination.</p><h3>The Technical Challenges (And How I Solved Them)</h3><p>Building this wasn’t straightforward. I hit several walls along the way.</p><h3>Challenge 1: The “Data Not Available” Excuse</h3><p>Early versions had a frustrating bug. The SQL agent would claim “data is not available due to data access issues” even though the data was clearly loaded and accessible.</p><p>The root cause? The agent wasn’t explicitly instructed to USE the SQL Query Executor tool. It was delegating instead of doing the work.</p><p><strong>Solution</strong>: I added explicit instructions to the agent’s backstory, set allow_delegation=False to force it to use tools directly, and strengthened the task definition with mandatory workflow steps. The manager also learned to enforce quality, never accepting &quot;data not available&quot; as an answer when data exists.</p><h3>Challenge 2: DuckDB Connection Conflicts</h3><p>I chose DuckDB as the in-memory database because it’s incredibly fast for analytics. But I ran into a Pydantic-related error: &#39;ModelPrivateAttr&#39; object has no attribute &#39;execute&#39;.</p><p>CrewAI’s tool system is built on Pydantic, and there was a conflict with how I was storing the database connection as a class variable.</p><p><strong>Solution</strong>: Moved the DuckDB connection from a class-level variable to a module-level global variable. Simple fix, but it took hours to debug.</p><h3>Challenge 3: Agents Explaining Instead of Answering</h3><p>This one was subtle but critical. The agents would respond with “The average is calculated by summing all values and dividing by the count” instead of “The average is $528.99.”</p><p>They were teaching me how to fish instead of just giving me the fish.</p><p><strong>Solution</strong>: Enhanced the task definitions with explicit examples showing the expected output format. Added instructions like “MUST include actual numerical values” and “Start with the specific answer.” The manager was also trained to reject outputs that don’t include real numbers.</p><h3>Challenge 4: Visualisation Chaos</h3><p>When users uploaded new data, old visualisations from the previous dataset would persist. Worse, charts would appear with unrelated queries.</p><p><strong>Solution</strong>: Implemented proper cleanup when loading new data, tracked which queries generated which visualisations, and ensured each query only displays its own charts. Added a global “Clear History” that removes both analysis results and visualisation files.</p><p>Each of these challenges taught me something important: AI systems need clear, explicit instructions and strong validation. The manager’s quality control role became crucial for catching these issues.</p><h3>What I Learned About AI Collaboration</h3><p>Building this project changed how I think about AI systems.</p><p><strong>Lesson 1: Specialisation Matters</strong></p><p>Each agent has a specific role and specific tools. The Data Loader only loads data. The SQL Analyst only analyses. The Interpreter only interprets. This clarity prevents confusion and improves performance.</p><p>In the same way that software teams work best when each developer has a clear role, AI agents work best when they have focused responsibilities.</p><p><strong>Lesson 2: Coordination is Everything</strong></p><p>The manager agent is the secret sauce. Without intelligent coordination, you’re just chaining API calls together. With it, you have a system that can think, adapt, and validate.</p><p>The manager reviews every step, ensuring tools are actually used and results are meaningful. It’s quality control built into the architecture.</p><p><strong>Lesson 3: Context is King</strong></p><p>The hierarchical approach maintains context throughout the analysis. The manager knows what data is loaded, what’s been done, and what still needs work. This context awareness makes the system feel intelligent rather than mechanical.</p><p><strong>Lesson 4: Dynamic Over Static</strong></p><p>Hardcoded workflows are tempting because they’re predictable. But they’re also limiting. By letting the manager decide the workflow dynamically, the system can handle diverse queries without special-case code.</p><p>Want to add a new agent in the future? Just add it. The manager will automatically start using it when appropriate.</p><p><strong>Lesson 5: AI Still Needs Guardrails</strong></p><p>Even with powerful models like GPT-4o, the system needs explicit instructions, examples, and validation. The agents won’t magically know to include actual numbers or use tools unless you tell them.</p><p>This isn’t a limitation — it’s just reality. AI is a tool that amplifies human intention, not replaces it.</p><h3>The Technology Stack</h3><p>For those interested in the technical details:</p><ul><li><strong>CrewAI</strong>: Multi-agent orchestration framework (hierarchical mode)</li><li><strong>OpenAI GPT-4o</strong>: Powers all agents, especially the manager</li><li><strong>DuckDB</strong>: Lightning-fast in-memory analytics database</li><li><strong>Streamlit</strong>: Clean, modern web interface</li><li><strong>Python</strong>: Pandas for data manipulation, Matplotlib/Seaborn for visualisations</li></ul><p>The whole system is open-source and ready to run locally. No cloud dependencies, no data leaving your machine.</p><h3>Try It Yourself</h3><p>Here’s what you can do with the AI Data Analyst:</p><p><strong>Basic Questions:</strong></p><ul><li>“What is the average sales by region?”</li><li>“Show me the top 10 products by revenue”</li><li>“How many customers are in each category?”</li></ul><p><strong>Complex Analysis:</strong></p><ul><li>“What is the trend of sales over time?” (auto-generates line charts)</li><li>“Find all transactions above $1000 and group by customer type”</li><li>“Calculate total revenue per month and create a visualisation”</li></ul><p><strong>Statistical Summaries:</strong></p><ul><li>“Give me statistical summaries of all numeric columns”</li><li>“What are the outliers in the sales data?”</li></ul><p>Upload a CSV or Excel file, ask your question, and watch the AI agents collaborate to give you answers.</p><h3>Final Thoughts: The Human Element in AI Systems</h3><p>As I built this tool, I kept thinking about the Eureka moments — those magical instances when everything clicks and you solve a hard problem. AI doesn’t experience those moments. It doesn’t feel the satisfaction of fixing a bug or the excitement of seeing a system come alive.</p><p>But AI can amplify our ability to create those moments for others.</p><p>The AI Data Analyst exists so that business analysts, marketers, and managers can have their own Eureka moments. Instead of wrestling with SQL syntax or struggling to make sense of raw data, they can simply ask questions and get insights. They can focus on what those insights mean for their business, not how to extract them.</p><p>That’s the true power of AI: not replacing human intelligence, but removing the barriers that prevent us from using ours effectively.</p><p>Building this project taught me that AI collaboration — when done right — mirrors the best aspects of human collaboration. Specialisation, coordination, context sharing, and quality control. A well-designed AI system isn’t just code; it’s a team.</p><p>And just like a great team, it makes impossible things feel effortless.</p><h3>Want to Build Your Own?</h3><p>The AI Data Analyst is open-source. You can run it locally with just a few commands:</p><pre># Clone the repository<br>git clone https://github.com/Ocolus1/ai_data_analyst<br>cd ai_data_analyst<br><br># Install dependencies<br>crewai install<br># Set up your OpenAI API key in .env<br>MODEL=gpt-4o<br>OPENAI_API_KEY=your_key_here<br># Run the app<br>streamlit run app.py</pre><p>No complicated setup. No cloud services. Just you, your data, and an intelligent AI team ready to help.</p><p>If you found this article helpful, give it a clap and share it with others who might benefit. If you have questions or want to discuss AI agent systems, leave a comment below — I’d love to hear your thoughts.</p><p>Happy analysing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b2ae4910e40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Blog to Podcast: Building an AI‑Powered Production Line with CrewAI]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://paulawolesi.medium.com/from-blog-to-podcast-building-an-ai-powered-production-line-with-crewai-55291ded685c?source=rss-97a846fdc75------2"><img src="https://cdn-images-1.medium.com/max/1536/1*WAj3MzdKM7B2E6jvXDkg-w.png" width="1536"></a></p><p class="medium-feed-snippet">Ever wish your blog posts could speak for themselves?</p><p class="medium-feed-link"><a href="https://paulawolesi.medium.com/from-blog-to-podcast-building-an-ai-powered-production-line-with-crewai-55291ded685c?source=rss-97a846fdc75------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://paulawolesi.medium.com/from-blog-to-podcast-building-an-ai-powered-production-line-with-crewai-55291ded685c?source=rss-97a846fdc75------2</link>
            <guid isPermaLink="false">https://medium.com/p/55291ded685c</guid>
            <category><![CDATA[firecrawl]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[crew-ai]]></category>
            <dc:creator><![CDATA[Paul Awolesi]]></dc:creator>
            <pubDate>Thu, 25 Sep 2025 09:49:54 GMT</pubDate>
            <atom:updated>2025-09-25T09:49:54.999Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[The AI Reality Check: Are We Asking Too Much?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://paulawolesi.medium.com/the-ai-reality-check-are-we-asking-too-much-bc2fca6f541d?source=rss-97a846fdc75------2"><img src="https://cdn-images-1.medium.com/max/1024/1*MuysnR5-ZzWe5vMT8sdeJw.png" width="1024"></a></p><p class="medium-feed-snippet">Ever caught yourself chatting up Siri or Alexa like they&#x2019;re your personal assistant, just hoping they&#x2019;ll nail it this time?</p><p class="medium-feed-link"><a href="https://paulawolesi.medium.com/the-ai-reality-check-are-we-asking-too-much-bc2fca6f541d?source=rss-97a846fdc75------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://paulawolesi.medium.com/the-ai-reality-check-are-we-asking-too-much-bc2fca6f541d?source=rss-97a846fdc75------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc2fca6f541d</guid>
            <category><![CDATA[ai-expectations]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[reality-check]]></category>
            <dc:creator><![CDATA[Paul Awolesi]]></dc:creator>
            <pubDate>Thu, 29 May 2025 20:50:35 GMT</pubDate>
            <atom:updated>2025-05-29T20:50:35.085Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Best Practices for Software Engineers Joining a New Team and Working on an Existing Codebase]]></title>
            <link>https://paulawolesi.medium.com/best-practices-for-software-engineers-joining-a-new-team-and-working-on-an-existing-codebase-f43a4642d4b6?source=rss-97a846fdc75------2</link>
            <guid isPermaLink="false">https://medium.com/p/f43a4642d4b6</guid>
            <category><![CDATA[existing-codebase]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Paul Awolesi]]></dc:creator>
            <pubDate>Sat, 15 Feb 2025 20:25:33 GMT</pubDate>
            <atom:updated>2025-02-15T20:25:33.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E75NBIPz9xouZh1mnsZqsA.png" /></figure><h3>Table of Contents</h3><ol><li><a href="#0bbb">Introduction</a></li></ol><p>2. <a href="#124a">Integrating into a New Team</a></p><ul><li>2.1 <a href="#56a0">Building Relationships</a></li><li>2.2 <a href="#dbb2">Understanding Team Dynamics</a></li><li>2.3 <a href="#b334">Establishing Communication Channels</a></li></ul><p>3. <a href="#4a1d">Navigating the Existing Codebase</a></p><ul><li>3.1 <a href="#8019">Initial Assessment</a></li><li>3.2 <a href="#afe6">Learning the Architecture</a></li><li>3.3 <a href="#92b8">Leveraging Documentation and Tools</a></li></ul><p>4. <a href="#8bcd">Contributing Meaningfully</a></p><ul><li>4.1 <a href="#51f6">Identifying Opportunities for Improvement</a></li><li>4.2<a href="#ac72"> Implementing Changes Safely</a></li><li>4.3 <a href="#e383">Reviewing and Refactoring Code</a></li></ul><p>5. <a href="#999b">Continuous Professional Development</a></p><ul><li>5.1 <a href="#ace8">Staying Updated with Industry Trends</a></li><li>5.2 <a href="#c5bb">Seeking Feedback and Mentorship</a></li><li>5.3 <a href="#6d62">Setting Personal Growth Goals</a></li></ul><h3>1. Introduction</h3><p>Joining a new team and working with an existing codebase is both an exciting and challenging experience for software engineers at any level. This transition demands not only technical adaptability but also an understanding of team culture, communication styles, and collaborative workflows.</p><p>This guide provides best practices to help you integrate smoothly, navigate the codebase effectively, and make meaningful contributions. Whether you are a seasoned professional or a newcomer, these strategies will support your professional growth and long-term success in your new role.</p><h3>2. Integrating into a New Team</h3><h3>2.1 Building Relationships</h3><p>Establishing strong professional relationships is essential for a smooth transition. A well-connected team operates more effectively, fosters trust, and enhances collaboration. To build rapport:</p><ul><li><strong>Engage in Conversations</strong> — Introduce yourself, share your background, and express interest in your colleagues’ work and experiences. Ask open-ended questions to encourage dialogue.</li><li><strong>Participate in Team Activities</strong> — Attend team meetings, social events, or informal gatherings. Building camaraderie outside of work discussions strengthens connections.</li><li><strong>Offer Assistance</strong> — Proactively support colleagues when they encounter challenges. This demonstrates initiative and a willingness to collaborate.</li></ul><p>Effective relationship-building lays the foundation for successful teamwork and professional growth.</p><h3>2.2 Understanding Team Dynamics</h3><p>Each team operates uniquely, influenced by leadership styles, decision-making processes, and communication preferences. To integrate seamlessly:</p><ul><li><strong>Observe Decision-Making</strong> — Determine whether decisions are made by consensus, hierarchical authority, or structured frameworks. Understanding this helps you contribute effectively.</li><li><strong>Analyze Conflict Resolution</strong> — Observe how conflicts are addressed — whether through direct discussion, mediation, or other strategies. This insight enables you to navigate team interactions diplomatically.</li><li><strong>Adapt to Task Delegation</strong> — Note how work is assigned. Align your contributions with existing processes to become a productive team member more quickly.</li></ul><p>By understanding these dynamics, you can better position yourself within the team structure and adapt to its workflow.</p><h3>2.3 Establishing Communication Channels</h3><p>Clear communication is key to collaboration. Familiarize yourself with the team’s preferred communication tools and norms. To ensure effective interactions:</p><ul><li><strong>Master Team Tools</strong> — Learn the ins and outs of platforms like Slack, Jira, or email to align with team workflows.</li><li><strong>Set Communication Expectations</strong> — Clarify preferred response times, meeting cadences, and reporting structures to maintain transparency.</li><li><strong>Practice Active Listening</strong> — Focus on understanding messages rather than just formulating responses. This improves clarity and minimizes misunderstandings.</li></ul><p>Effective communication fosters efficiency and ensures alignment across the team.</p><h3>3. Navigating the Existing Codebase</h3><h3>3.1 Initial Assessment</h3><p>Before making changes, conduct a thorough assessment of the codebase to understand its structure and dependencies. Key steps include:</p><ul><li><strong>Review Documentation</strong> — Start with README files, architecture diagrams, and design documents to gain a high-level overview.</li><li><strong>Identify Core Components</strong> — Break down the codebase into its primary modules and functions to understand its purpose and interactions.</li><li><strong>Analyze Dependencies</strong> — Map out external libraries, frameworks, and services the code relies on to anticipate potential integration challenges.</li></ul><p>A strategic assessment provides a roadmap for deeper exploration and efficient onboarding.</p><h3>3.2 Learning the Architecture</h3><p>Understanding the system’s architecture is essential for effective problem-solving and decision-making. To do so:</p><ul><li><strong>Trace Data Flow</strong> — Identify how data moves through the system, from input sources to outputs, to grasp its operational logic.</li><li><strong>Recognize Design Patterns</strong> — Familiarize yourself with commonly used architectural patterns to anticipate system behaviors.</li><li><strong>Seek Guidance</strong> — Engage with experienced team members to gain insights into the system’s rationale and technical constraints.</li></ul><p>A solid grasp of the architecture enables confident navigation and efficient contributions.</p><h3>3.3 Leveraging Documentation and Tools</h3><p>Leverage available documentation and development tools to enhance your efficiency. Best practices include:</p><ul><li><strong>Update Documentation</strong> — As you gain knowledge, contribute to documentation updates for future developers.</li><li><strong>Optimize Your IDE Workflow</strong> — Learn shortcuts and debugging features in your integrated development environment (IDE) to streamline coding tasks.</li><li><strong>Use Debugging Tools Effectively</strong> — Master debugging utilities to inspect variables, track execution paths, and resolve issues efficiently.</li></ul><p>Strong documentation and tooling support continuous learning and productivity.</p><h3>4. Contributing Meaningfully</h3><h3>4.1 Identifying Opportunities for Improvement</h3><p>Once you understand the codebase, look for areas where improvements can be made. Consider:</p><ul><li><strong>Performance Optimization</strong> — Use profiling tools to detect bottlenecks and enhance efficiency.</li><li><strong>Security Enhancements</strong> — Conduct security reviews and implement best practices.</li><li><strong>User Experience Improvements</strong> — Gather and analyze user feedback to prioritize meaningful enhancements.</li></ul><p>Proactively identifying improvements demonstrates initiative and technical acumen.</p><h3>4.2 Implementing Changes Safely</h3><p>When making modifications, prioritize stability and maintainability. Best practices include:</p><ul><li><strong>Follow Coding Standards</strong> — Adhere to established style guides and best practices.</li><li><strong>Write Comprehensive Tests</strong> — Implement unit and integration tests to validate changes and prevent regressions.</li><li><strong>Use Version Control Effectively</strong> — Work in branches, document commits clearly, and leverage pull requests for peer reviews.</li></ul><p>A structured approach ensures that contributions are robust and maintainable.</p><h3>4.3 Reviewing and Refactoring Code</h3><p>Code reviews and refactoring improve maintainability and promote collaboration. Best practices include:</p><ul><li><strong>Give Constructive Feedback</strong> — Offer insightful, respectful, and actionable suggestions in code reviews.</li><li><strong>Refactor Incrementally</strong> — Make small, incremental improvements rather than overhauling large sections at once.</li><li><strong>Document Changes</strong> — Record refactoring decisions to provide future context for the team.</li></ul><p>A disciplined approach to reviewing and refactoring strengthens overall code quality.</p><h3>5. Continuous Professional Development</h3><h3>5.1 Staying Updated with Industry Trends</h3><p>Software engineering evolves rapidly. Stay informed by:</p><ul><li>Following industry leaders, blogs, and podcasts.</li><li>Attending conferences and online workshops.</li><li>Engaging in technical communities and discussions.</li></ul><p>Keeping up with trends ensures long-term career growth.</p><h3>5.2 Seeking Feedback and Mentorship</h3><p>Actively seek feedback and mentorship to refine your skills. Key strategies include:</p><ul><li><strong>Schedule Regular Check-ins</strong> — Meet with mentors and peers for guidance and performance insights.</li><li><strong>Embrace Constructive Criticism</strong> — Use feedback as an opportunity for growth.</li><li><strong>Mentor Others</strong> — Teaching junior colleagues reinforces your own knowledge and leadership skills.</li></ul><p>Feedback and mentorship accelerate professional development.</p><h3>5.3 Setting Personal Growth Goals</h3><p>Define and track your career goals using the SMART framework:</p><ul><li><strong>Align with Career Aspirations</strong> — Set goals that support your long-term objectives.</li><li><strong>Break Down Large Goals</strong> — Make progress manageable with incremental steps.</li><li><strong>Celebrate Milestones</strong> — Acknowledge achievements to stay motivated.</li></ul><p>Proactive goal-setting ensures continuous skill enhancement.</p><h3>6. Conclusion</h3><p>Successfully joining a new team and navigating an existing codebase requires adaptability, collaboration, and continuous learning. By integrating effectively, mastering the architecture, and making thoughtful contributions, you position yourself for long-term success. Approach each challenge as an opportunity to refine your skills and expand your expertise, ensuring lasting professional growth.</p><p>If you found this article helpful, consider sharing it with others and please give it a clap or two. If you have any questions or feedback, leave them in the comments below. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f43a4642d4b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Behind the Scenes: The Fascinating World of Backend Development (And Why It’s Cooler Than You…]]></title>
            <link>https://paulawolesi.medium.com/behind-the-scenes-the-fascinating-world-of-backend-development-and-why-its-cooler-than-you-c79be909b4db?source=rss-97a846fdc75------2</link>
            <guid isPermaLink="false">https://medium.com/p/c79be909b4db</guid>
            <category><![CDATA[cool]]></category>
            <category><![CDATA[behind-the-scenes]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[backend-development]]></category>
            <dc:creator><![CDATA[Paul Awolesi]]></dc:creator>
            <pubDate>Thu, 06 Feb 2025 20:24:49 GMT</pubDate>
            <atom:updated>2025-02-06T20:24:49.216Z</atom:updated>
            <content:encoded><![CDATA[<h3>Behind the Scenes: The Fascinating World of Backend Development (And Why It’s Cooler Than You Think)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I8_dJ_9LAhOmFnUe5nuRuQ.jpeg" /></figure><p>Imagine building a house. On the surface, you see beautiful walls, elegant furniture, and sparkling lights — the frontend. But beneath all that beauty is something far more critical: the foundation, plumbing, electrical wiring, and structural beams. Without them, the house collapses. That’s exactly what backend developers do — they create the invisible infrastructure that powers everything we love about modern applications.</p><p>If you’ve ever been curious about what goes on in the secret lair of backend developers, buckle up. We’re about to take a journey through the lifecycle of a project, uncovering the essential tools and considerations at each stage. By the end, you’ll not only understand why backend development is so rewarding but also feel inspired to dive into this thrilling field yourself.</p><h4>Phase 1: Laying the Foundation — Planning and Architecture</h4><p>Before a single line of code is written, backend developers act as architects, designing blueprints for the system. This phase is akin to planning a city — where will the roads go? How will water flow? What happens during peak traffic hours?</p><p>At this stage, key decisions revolve around:</p><ul><li>Choosing the Right Stack: Like selecting materials for construction, developers pick programming languages (e.g., Python, Java, Go), frameworks (Django, Spring Boot, Express.js), and databases (PostgreSQL, MongoDB). Each choice has trade-offs; some prioritize speed, others scalability.</li><li>API Design: Think of APIs as bridges connecting different parts of the application. A well-designed API ensures smooth communication between services, much like how efficient highways keep cities running smoothly.</li></ul><p>Tool Spotlight: Tools like Swagger help document APIs, ensuring everyone involved understands how data flows. Meanwhile, UML diagrams serve as visual blueprints, helping teams align on architecture before diving into implementation.</p><p>Why this matters: Just as a poorly planned city leads to chaos, bad architecture can doom a project from the start. Backend developers thrive on solving these puzzles, balancing creativity with logic.</p><h4>Phase 2: Building the Engine Room — Development and Integration</h4><p>With plans in hand, it’s time to roll up sleeves and get to work. If the backend were a car, this would be the engine room — the powerhouse driving performance. Here, developers write code to handle business logic, manage user authentication, process payments, and store data securely.</p><p>Key considerations include:</p><ul><li>Scalability: Imagine hosting a small dinner party versus feeding thousands at a festival. Your backend must adapt seamlessly to growing demands without breaking down.</li><li>Security: Every piece of sensitive information — passwords, credit card details, personal data — is entrusted to the backend. Developers use encryption, hashing, and secure protocols to protect against breaches.</li></ul><p>Tool Spotlight: Frameworks like Node.js simplify server-side scripting, while containerization tools like Docker ensure consistency across environments. For version control, Git reigns supreme, allowing multiple developers to collaborate without stepping on each other’s toes.</p><p>Why this matters: Writing clean, efficient code isn’t just about functionality — it’s about creating systems that users trust implicitly. There’s immense satisfaction in knowing your work impacts millions of lives daily.</p><h4>Phase 3: Testing the Plumbing — Debugging and Optimization</h4><p>Even the best-laid plans encounter hiccups. In this phase, backend developers play detective, hunting down bugs and optimizing performance. Picture a plumber fixing leaks or unclogging pipes — it’s messy but crucial.</p><p>Testing involves:</p><ul><li>Unit Tests: Verifying individual components function correctly.</li><li>Load Testing: Simulating high traffic to identify bottlenecks.</li><li>Error Handling: Ensuring graceful degradation when things go wrong.</li></ul><p>Tool Spotlight: Postman helps test APIs, while monitoring tools like Prometheus and Grafana provide real-time insights into system health. Logging frameworks like ELK Stack track errors, making debugging less daunting.</p><p>Why this matters: Few things rival the thrill of squashing a stubborn bug or shaving milliseconds off response times. These moments remind us why problem-solving is at the heart of backend development.</p><h4>Phase 4: Launch Day — Deployment and Maintenance</h4><p>Finally, after months of hard work, the big day arrives. Deployment is like opening night at a theater — everything needs to run flawlessly. But unlike a play, software requires ongoing maintenance. Servers crash, updates break compatibility, and new features demand integration.</p><p>Best practices include:</p><ul><li>CI/CD Pipelines: Automating deployment reduces human error and speeds up releases.</li><li>Monitoring: Keeping tabs on system metrics ensures quick detection of issues.</li></ul><p>Tool Spotlight: Platforms like AWS, Azure, and Google Cloud offer scalable hosting solutions, while Kubernetes manages container orchestration. Alerting tools like PagerDuty notify teams of emergencies.</p><p>Why this matters: Watching your creation come alive and evolve over time is incredibly fulfilling. Plus, there’s always room to innovate, whether by adding new features or improving efficiency.</p><h4>Why Backend Development Is So Rewarding</h4><p>To outsiders, backend development might seem dry or overly technical. But those who venture into this world discover its unique charm. It’s not just about writing code — it’s about solving complex problems, building resilient systems, and empowering people worldwide.</p><p>For every app you use, every website you visit, there’s a team of backend developers working tirelessly behind the scenes. They may not grab headlines, but they’re the unsung heroes of the digital age.</p><p>So, if you’re intrigued by the idea of shaping the future — one line of code at a time — consider exploring backend development. Who knows? You might just find your calling in this dynamic, ever-evolving field.</p><p>If you found this article helpful, consider sharing it with others and please give it a clap or two. If you have any questions or feedback, leave them in the comments below. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c79be909b4db" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>