Skip to content

Instantly share code, notes, and snippets.

@apnea
apnea / session-observability-landscape.md
Last active June 1, 2026 20:23
The AI Coding Session Observability Landscape (mid-2026) -- a survey of tools, architectures, feature coverage, and market velocity in the emerging field of developer-AI session analysis

The AI Coding Session Observability Landscape (mid-2026)

What this field is

A new tool category has emerged around observing, recording, and analyzing the interactions between developers and AI coding agents (Claude Code, Cursor, Copilot, Codex, OpenCode, etc.). These tools sit alongside the coding agent -- intercepting traffic, reading session files, hooking into agent events, or integrating into the IDE -- and provide visibility into what was asked, what was done, how much it cost, and what patterns emerge over time.

This is distinct from production LLM observability (Langfuse, LangSmith, Helicone, etc.), which monitors AI applications running in production. The tools here are focused on developer workstations and coding sessions.

The field is roughly six months old as a recognizable category and is evolving rapidly.

@apnea
apnea / zai-vs-neuralwatt-comparison.md
Created May 30, 2026 09:37
Z.ai Coding Plan Lite vs NeuralWatt Cloud pricing comparison (May 2026)

Z.ai Coding Plan Lite vs NeuralWatt Cloud -- Pricing Comparison

Date: May 30, 2026
Models compared: GLM-5.1 (zai-org/GLM-5.1-FP8)

What you currently pay: Z.ai Coding Plan Lite

Detail Value
Price $18/month (billed monthly on z.ai)
@apnea
apnea / workspace-to-personal-google.md
Created May 26, 2026 07:13
Tips for migrating from a Google Workspace account to a personal Google account

Moving Off a Workspace Account to a Personal Google Account

Best tool: Takeout Transfer

Go to takeout.google.com/transfer while signed into your Workspace account. This copies Gmail and Drive files you own directly to your personal account. Takes hours to a week. The verification code expires in 24 hours.

Known limitations:

  • Only covers Gmail and My Drive files you own
  • Does not include contacts, calendar, tasks, or chats
  • Files in "Shared with me" or Shared Drives are not included -- move them to My Drive first
@apnea
apnea / GSS.md
Last active May 20, 2026 14:26
The Governance Spectrum Scaffold v2.0 — A Framework for Comparing AI Governance Across Model Risk and Agent Risk

The Governance Spectrum Scaffold

A Framework for Comparing AI Governance Across Model Risk and Agent Risk

Version 2.0
Date 20 May 2026
Critique cycles 2 (3 independent reviewers per cycle)
Source documents 19 (5 regulations, 6 practitioner/academic papers, 5 macro-prudential and cross-sector frameworks, 2 US fair lending guidance, 1 government agentic AI framework, 1 EU implementing guidance)
@apnea
apnea / beyond-text-code-representation-spectrum.md
Created May 20, 2026 12:12
Beyond Text: The Spectrum of Code Representation for LLM Coding Agents

Beyond Text: The Spectrum of Code Representation for LLM Coding Agents

An analysis of how code can be represented to LLMs — from raw text to architectural patterns — and where the research frontier currently sits.


The Spectrum

Code can be represented to LLMs at progressively richer levels of abstraction. Each level captures more structural and semantic information, but also requires more sophisticated tooling and domain knowledge to construct.

@apnea
apnea / vera-vs-opencode-codebase-index-vs-aft.md
Last active May 20, 2026 11:19
Vera vs opencode-codebase-index vs AFT: Feature & Metrics Comparison

Vera vs opencode-codebase-index vs AFT: Feature & Metrics Comparison

Vera (v0.7.0) — Local-first semantic code search CLI in pure Rust. 65 languages, ONNX embeddings + cross-encoder reranker, fully offline.

opencode-codebase-index (v0.8.0) — Semantic codebase indexing plugin for OpenCode, also runs as standalone MCP server. Hybrid TypeScript + Rust, API-first embeddings, 17+ languages.

AFT (v0.26.4) — Agent File Toolkit. Tree-sitter powered code manipulation and analysis for AI agents. Rust binary + thin TS plugins. 17 languages. Semantic search + trigram grep + structural editing + call-graph navigation + LSP diagnostics.


@apnea
apnea / gist:038e8cd813aa089c1e39c10f1fa73189
Created May 17, 2026 15:31
Lattice Plugin Release Workflow
# Lattice Plugin Release Workflow
## Overview
Publishing a new version of `@apnea/opencode-lattice` involves three steps:
bump the version in package.json, push a git tag, and let CI handle the rest.
The GitHub Action (`.github/workflows/publish-plugin.yml`) automatically:
1. Publishes to npm when a `v*` tag is pushed
2. Creates a GitHub release with auto-generated notes
@apnea
apnea / glm5.1-prompt-research.md
Last active May 13, 2026 10:26
GLM-5/5.1 System Prompt Research & Design for opencode

GLM-5/5.1 System Prompt Research & Design

Date: 2026-05-12 Purpose: Design an optimal system prompt for GLM-5.1 in opencode (a coding agent CLI), informed by the GLM-5 paper, Z.AI docs, and community findings.


Sources

| Source | Key Takeaway |

@apnea
apnea / zai-opencode-mapping.md
Created May 10, 2026 10:58
Z.AI Coding Plan — OpenCode agent-to-model mapping

Z.AI Coding Plan — OpenCode Agent Mapping

Quota Cost per Model

Peak hours: 14:00–18:00 UTC+8. Off-peak: all other times. Monthly quota is equivalent to ~15–30× the subscription fee, converted at API pricing rates.

Model Quota (Peak: 14:00-18:00 UTC+8) Quota (Off-Peak) Temporary (thru June)
GLM-5.1 1× off-peak
GLM-5-Turbo 1× off-peak
@apnea
apnea / spontaneous-language-switching.md
Created May 2, 2026 06:58
Spontaneous Language Switching in LLMs — Empirical Observations

Spontaneous Language Switching in LLMs

LLMs may spontaneously switch to Chinese mid-reasoning regardless of prompt language — observed in both OpenAI's o1 and Chinese models (DeepSeek, Qwen, GLM)

The papers listed below list 3 possible reasons for this: internal circuit competition, strategic reasoning advantages gained during training, and the influence of distributed training data.

1. Competition Between Internal Circuits

Mechanistic interpretability research suggests that multilingual LLMs possess two distinct internal subsystems that govern generation: