AgentSession 源码分析 — Pi Coding Agent 核心生命周期管理

对 F:\Pi\packages\coding-agent\src\core\agent-session.ts 的逐段解读与架构分析。涵盖 AgentSession 类结构、事件系统、模型管理、Compaction 机制、自动重试、会话导航与分支、Bash 执行等。

June 27, 2026 · 13 min · 2583 words

Computer Networking — Chapter 1: Computer Networks and the Internet

Notes on Chapter 1 of Computer Networking: A Top-Down Approach (7th Edition). Covers the Internet overview, network edge, network core, delay/loss/throughput, protocol layers, and network security.

June 27, 2026 · 5 min · 970 words

Computer Networking — Chapter 2: Application Layer

Notes on Chapter 2 of Computer Networking: A Top-Down Approach (7th Edition). Covers HTTP, email, DNS, P2P, CDN, video streaming, and socket programming.

June 27, 2026 · 6 min · 1105 words

Computer Networking — Chapter 3: Transport Layer

Notes on Chapter 3 of Computer Networking: A Top-Down Approach (7th Edition). Covers transport-layer services, UDP, reliable data transfer, TCP, and congestion control.

June 27, 2026 · 6 min · 1235 words

Computer Networking — Chapter 4: The Network Layer: Data Plane

Notes on Chapter 4 of Computer Networking: A Top-Down Approach (7th Edition). Covers network layer data plane functions: forwarding, router architecture, IP protocol, addressing, NAT, IPv6, and SDN generalized forwarding.

June 27, 2026 · 4 min · 832 words

Computer Networking — Chapter 5: The Network Layer: Control Plane

Notes on Chapter 5 of Computer Networking: A Top-Down Approach (7th Edition). Covers routing algorithms, OSPF, BGP, SDN control plane, ICMP, and SNMP.

June 27, 2026 · 4 min · 799 words

Computer Networking — Chapter 6: The Link Layer and LANs

Notes on Chapter 6 of Computer Networking: A Top-Down Approach (7th Edition). Covers link-layer services, error detection, multiple access protocols, Ethernet, switches, VLANs, MPLS, data center networking.

June 27, 2026 · 5 min · 965 words

Computer Networking — Chapter 7: Wireless and Mobile Networks

Notes on Chapter 7 of Computer Networking: A Top-Down Approach (7th Edition). Covers wireless links, WiFi (802.11), cellular networks, mobility management, and Mobile IP.

June 27, 2026 · 5 min · 865 words

Computer Networking — Chapter 8: Security in Computer Networks

Notes on Chapter 8 of Computer Networking: A Top-Down Approach (7th Edition). Covers cryptography, message integrity, authentication, SSL, IPsec, wireless security, and firewalls.

June 27, 2026 · 4 min · 822 words

Computer Networking — Chapter 9: Multimedia Networking

Notes on Chapter 9 of Computer Networking: A Top-Down Approach (7th Edition). Covers multimedia applications, streaming video, VoIP, RTP, SIP, Diffserv, Intserv, and RSVP.

June 27, 2026 · 4 min · 851 words