#491: Feeling Judged
About the show
Sponsored by Xweather Xweather combines enterprise-grade weather intelligence with agent-ready APIs, natural language capabilities, and an MCP server so your agents can adapt workflows, automate responses, and make better decisions based on real-world conditions. Michael will tell you more about them later in the show. Get started for free at pythonbytes.fm/xweather Connect with the hosts
- Michael: Mastodon / BlueSky / X / LinkedIn
- Calvin: Mastodon / BlueSky / X / LinkedIn
- Show: Mastodon / BlueSky / X Join us on YouTube at pythonbytes.fm/live to be part of the audience. Usually Tuesday at 7am PT. Older video versions available there too. Finally, if you want an artisanal digest of every week of the show notes in email form? Add your name and email to our friends of the show list, we'll never share it.
Michael #1: Claude Code /insights
- Michael’s Insights: michael-kennedy-claude-code-insights-2026-08-09.html
- Be careful sharing these outputs, they include details references to your projects, errors, security findings, etc. ;)
/insightsreads your last 30 days of local session transcripts and hands back an interactive HTML report on how you actually work.- One command, zero setup: type
/insightsin a session, or runclaude -p "/insights"from the shell for a non-interactive version that just prints the path - Reads what's already on disk: pulls session logs from
~/.claude/projects/, skipping agent sub-sessions and anything under 2 messages or 1 minute - Project areas: clusters your sessions into themes like "CLI Tooling" or "Documentation" with session counts
- Friction analysis: categorizes where things went wrong by root cause - and quotes your own prompts back at you
- Interaction style: tells you whether you're a delegator or a micromanager, plus which workflows are worth doubling down on
- Actually actionable: suggests concrete CLAUDE.md additions and Claude Code features you're not using
- The catch: Haiku does the per-session classification, so the first run takes several minutes; results cache to
~/.claude/usage-data/facets/and the report lands at~/.claude/usage-data/report.html
- One command, zero setup: type
Calvin #2: Post-quantum crypto lands in Python
pyca/cryptography48 ships ML-KEM (key establishment) and ML-DSA (signatures) — NIST's post-quantum standards, now onepip installaway.- Big deal because it's the 11th most-downloaded package on PyPI (~1.2B downloads/month) and sits under Ansible, Certbot, Airflow, and paramiko. No PQ there, no PQ anywhere in Python.
- Trail of Bits did the work (Rust bindings, cross-backend API, tests, AWS-LC backend support), funded by the Sovereign Tech Agency.
- Timing tracks a June 22 White House order setting federal deadlines: PQ key establishment by end of 2030, PQ signatures by end of 2031.
- Not a drop-in swap — the wire sizes explode. ML-DSA-65 signatures are 3,309 bytes vs Ed25519's 64; ML-KEM-768 public keys are 1,184 bytes vs X25519's 32. Hardcoded field sizes and length prefixes will bite.
- API looks like the existing asymmetric primitives, except ML-KEM is encapsulate/decapsulate rather than a Diffie-Hellman exchange. SLH-DSA (the hash-based conservative backstop) is still in progress. The primitives are here, but protocols haven't caught up — so you won't be running post-quantum Certbot this week.
Sponsor: Xweather
You're using agents that can write code, summarize documents, and automate workflows. But they're missing one thing: awareness of the world around them. This is where today's sponsor, Xweather comes in. Xweather combines enterprise-grade weather intelligence with agent-ready APIs, natural language capabilities, and an MCP server built for tools like Claude, Codex, Copilot, and modern IDEs – so your agents can adapt workflows, automate responses, and make better decisions based on real-world conditions. Backed by Vaisala, whose instruments fly on NASA missions to Mars, Xweather delivers trusted data and unique insights that go beyond conditions to actual impact – from real-time lightning strikes to road surface forecasts. Start with 15,000 free API calls each month and pay only for what you use as you grow. Xweather is your full weather stack, for developers by developers. Start building for free today at pythonbytes.fm/xweather. The link is in your podcast player's show notes and on the episode page. Thanks so much to Xweather for supporting Python Bytes.
Calvin #3: MCP goes stateless — and FastMCP gets renamed
- From Philipp Acsany over at Real Python
- The
2026-07-28spec landed July 28 and the Python SDK shipped 2.0.0 the same day. Biggest rewrite since MCP launched, and it's breaking on purpose. Context for scale: the Tier 1 SDKs are pulling close to half a billion downloads a month, with TypeScript and Python each past a billion total. - The headline is the stateless core. The
initialize/initializedhandshake and theMcp-Session-Idheader are both retired — protocol version, client identity, and capabilities now ride in_metaon every request, with an optionalserver/discoverRPC if a client wants capabilities up front. Any request can land on any instance behind plain round-robin, no shared storage. - Server-initiated calls are the hard part of the migration. Sampling, elicitation, and
roots/listno longer call back to the client; instead the server returnsresultType: "input_required"and the client retries withinputResponsesattached. Multi Round-Trip Requests, MRTR. Also:Mcp-MethodandMcp-Nameare now required headers so gateways route on headers instead of cracking JSON bodies, and missing-resource errors move to standard32602. - Deprecation sweep with an actual policy behind it — Roots, Sampling, Logging, and the legacy HTTP+SSE transport all deprecated with a twelve-month minimum offramp. Tasks graduated out of the experimental core into a real extension, which is what the formalized extensions framework was for. MCP Apps is now an official extension too, so a tool call can return sandboxed interactive HTML. Auth picked up RFC 9207 issuer validation, issuer-bound credentials, and a shift from DCR toward CIMD.
- Python SDK 2.0 is where it gets personal:
FastMCPis nowMCPServer, no alias, no shim.McpError→MCPError. Wire types went snake_case (is_error,input_schema) and moved to a standalonemcp_typespackage, withmcp.typeskept as a permanent alias. OneClientobject replaces the old transport +ClientSession+initialize()stack.httpxbecamehttpx2. Sync handlers run on worker threads now, soasyncio.get_running_loop()raises inside them. - The good news: one
MCPServerserves both protocol eras, so 2025-era clients keep working with nothing to configure, and aResolve(fn)parameter lets one tool body cover MRTR and the old path. 1.x is maintenance-and-security-fixes only — pinmcp>=1.28,<2if this week is already full. The Tasks extension isn't in 2.0.0 yet, so Tasks has left the core spec but hasn't landed in the SDK. If you only call MCP servers, you mostly just get the benefits for free. If you ship one, you already know what your week looks like. And if you use the standalonefastmcppackage instead of the official SDK — different project, 3.x line, none of this touches you. The rename is partly to stop the two from being confused.
Michael #4: inshellisense - IDE style command line auto complete
- via Doug Nichols
inshellisenseprovides IDE style autocomplete for shells.- It's a terminal native runtime for autocomplete which has support for 600+ command line tools.
inshellisensesupports Windows, Linux, & macOS.- If you are using a NerdFont patched font, you can enable the NerdFonts support in your config file
Extras
Calvin:
- Django 6.1 Released — https://www.djangoproject.com/weblog/2026/aug/05/django-61-released/
- DjangoCon US is quickly arriving, grab your tickets now! — https://2026.djangocon.us/ Michael:
- AI integration: Python Bytes for AI
- Up and Running with Rust Course is out!
Joke: But they already know
Episode Transcript
Collapse transcript
00:00
00:05
00:10
00:11
00:13
00:14
00:16
00:22
00:24
00:28
00:31
00:38
00:44
00:51
00:57
01:01
01:04
01:08
01:13
01:15
01:19
01:27
01:30
01:35
01:38
01:40
01:42
01:43
01:44
01:47
01:48
01:49
01:50
01:52
01:55
01:55
02:00
02:02
02:07
02:09
02:11
02:14
02:15
02:16
02:16
02:20
02:29
02:29
02:30
02:31
02:32
02:37
02:37
02:38
02:39
02:44
02:49
02:52
02:57
02:59
03:00
03:01
03:02
03:03
03:10
03:13
03:20
03:24
03:26
03:30
03:32
03:32
03:34
03:34
03:40
03:43
03:44
03:45
03:46
03:48
03:51
03:51
03:55
03:57
03:59
04:00
04:04
04:18
04:22
04:26
04:26
04:35
04:44
04:53
04:55
05:10
05:24
05:30
05:31
05:32
05:34
05:35
05:38
05:43
05:44
05:50
05:54
06:02
06:09
06:10
06:11
06:12
06:18
06:22
06:23
06:24
06:26
06:36
06:40
06:42
06:50
06:52
07:01
07:04
07:04
07:08
07:09
07:14
07:15
07:16
07:17
07:18
07:20
07:23
07:24
07:26
07:31
07:35
07:42
07:46
07:50
07:50
07:51
07:55
08:04
08:10
08:13
08:14
08:15
08:17
08:21
08:22
08:23
08:26
08:29
08:32
08:32
08:33
08:36
08:39
08:40
08:46
08:48
08:50
08:51
08:51
08:51
08:57
08:58
09:04
09:06
09:09
09:10
09:15
09:20
09:22
09:28
09:38
09:40
09:41
09:43
09:44
09:45
09:48
09:50
09:55
09:58
10:10
10:13
10:15
10:28
10:42
10:46
10:49
10:53
11:02
11:04
11:05
11:07
11:12
11:20
11:28
11:30
11:36
11:38
11:43
11:47
12:01
12:06
12:09
12:11
12:15
12:17
12:17
12:19
12:20
12:24
12:31
12:37
12:41
12:45
12:47
12:51
12:52
12:56
13:00
13:01
13:02
13:18
13:23
13:32
13:37
13:41
13:43
13:56
14:10
14:24
14:35
14:46
14:58
15:11
15:26
15:32
15:46
15:56
16:09
16:24
16:38
16:49
16:56
17:10
17:12
17:18
17:21
17:24
17:32
17:34
17:40
17:41
17:42
17:45
17:48
17:50
17:52
17:53
17:56
18:01
18:02
18:06
18:09
18:13
18:14
18:15
18:16
18:18
18:19
18:21
18:22
18:24
18:33
18:37
18:41
18:48
18:51
19:02
19:08
19:09
19:25
19:34
19:40
19:43
19:47
19:48
19:55
19:58
20:01
20:04
20:06
20:07
20:08
20:09
20:10
20:11
20:13
20:15
20:20
20:22
20:24
20:37
20:39
20:50
20:57
21:02
21:03
21:05
21:08
21:09
21:18
21:23
21:26
21:31
21:34
21:37
21:38
21:41
21:46
21:47
21:48
21:49
21:51
21:54
21:58
22:04
22:15
22:18
22:21
22:28
22:37
22:40
22:49
22:56
23:02
23:05
23:20
23:23
23:29
23:35
23:39
23:42
23:45
23:52
23:58
24:06
24:17
24:18
24:20
24:22
24:26
24:39
24:50
24:52
24:56
24:57
25:01
25:09
25:09
25:10
25:12
25:13
25:18
25:22
25:23
25:29
25:37
25:38
25:43
25:49
25:52
26:04
26:17
26:25
26:30
26:41
26:54
26:59
27:08
27:14
27:18
27:20
27:20
27:25
27:31
27:34
27:40
27:42
27:46
27:52
27:56
28:12
28:19
28:25
28:31
28:38
28:40
28:47
28:51
28:52
28:57
28:58
29:00
29:03
29:03
29:04
29:04
29:06
29:06
29:08
29:19
29:22
29:24
29:27
29:28
29:29
29:36
29:40
29:45
29:46
29:50
29:55
29:57
29:58
30:05
30:07
30:09
30:13
30:20
30:25
30:39
30:39
30:46
30:54
31:00
31:02
31:03
31:07
31:10
31:15
31:28
31:29
31:34
31:36
31:38
31:42
31:47
31:52
31:54
31:56
31:57
32:01
32:04
32:05
32:06
32:10
32:11
32:13
32:15
32:16
32:22
32:23
32:26
32:26
32:30
32:32
32:32
32:33
32:36
32:40
32:54
32:55
33:00
33:04
33:14
33:16
33:19
33:19
33:20
33:23
33:34
33:37
33:43
33:49
33:52
33:55
33:56
33:56
33:59
34:00
34:02
34:05
34:08
34:12
34:18
34:22
34:28
34:30
34:34
34:39
34:43
34:45
34:55
34:56
34:57
34:57
34:59
34:59
35:04
35:05
35:05
35:07
35:10
35:10
35:11
35:12
35:13
35:14
35:15
35:17
35:21
35:23
35:25
35:28
35:32
35:32
35:34
35:35
35:37
35:38
35:39
35:41
35:41
35:43
35:44
35:48
35:49
35:51
35:53
35:54
35:54
35:55
36:01
36:06
36:07
36:07
36:08
36:10
36:12
36:16
36:19
36:20
36:22
36:26
36:28
36:33
36:33
36:35
36:37
36:49
36:51
36:57
37:05
37:19
37:20
37:24
37:26
37:29
37:30
37:33
37:37
37:40
37:41
37:51
37:54
38:02
38:04
38:05
38:11
38:14
38:20
38:28
38:35
38:37
38:38
38:40
38:42
38:44
38:46
38:47
38:49
38:49
38:51
38:52
38:54
38:54
38:55
39:05
39:07
39:09
39:10
39:10
39:13
39:13
39:13
39:14
39:16
39:17
39:18
39:21
39:22
39:23
39:24
39:24
39:27
39:32
39:35
39:36
39:40
39:42
39:51
39:56
39:56
39:57
39:59
40:01
40:12
40:15
40:16
40:20
40:21
40:22
40:22
40:26
40:27
40:30
40:30
40:31
40:34
40:37
40:38
40:40
40:41
40:44
40:45
40:46
40:46
40:46
40:47
40:49
40:50
40:51
40:55
40:57
40:58
41:02
41:04
41:05
41:14
41:18
41:21
41:25
41:26
41:28
41:31
41:32
41:35
41:37
41:41
41:43
41:43
41:48
41:54
41:56
41:58
42:00
42:01
42:02
42:03
42:04
42:04
42:08
42:10
42:11
42:12
42:12
42:13



