Skip to content

Instantly share code, notes, and snippets.

View buger's full-sized avatar
๐Ÿ 
Working from home

Leonid Bugaev buger

๐Ÿ 
Working from home
View GitHub Profile
@buger
buger / README.md
Last active November 3, 2026 10:33
evidence-video: an agent skill for narrated before/after videos of real product behaviour (terminal, HTTP, Playwright web UI, Linux desktop)

Moved. This toolkit is now maintained in Tyk's internal tyk-agentic-development repository (tools/evidence-video/, with the evidence-video skill). This gist is no longer updated.

evidence-video: narrated before/after videos of real product behaviour

An agent skill, plus the scripts behind it, for recording short narrated videos that prove a claim: a bug, a fix, or a feature, shown on the real product. Use them on PRs, bug reports and reviews.

Each video is a title card, then the real product on screen with a boxed subtitle per step and a synced voiceover, then a verdict card. For a fix it shows the **broken build and the fixed build

@buger
buger / qc-for-tyk.md
Last active November 3, 2026 08:15
qc for Tyk Gateway: a deterministic checklist gate for AI-assisted changes (simple to advanced examples)

qc for Tyk Gateway

A deterministic checklist gate for AI-assisted changes, with examples built around the Tyk codebase.

qc: https://github.com/probelabs/qc ยท one static binary for Linux, macOS and Windows ยท works with Claude Code, Cursor, Codex or any agent that can run a shell.


TL;DR

@buger
buger / README.md
Created March 20, 2026 12:28
probe agent examples

This are the examples of Probe Agent one shotting engineering or complex support tasks

A few major ideas to understand:

Code context issue

Modern AI agentic loops, even claude code, quite bad at dealing with large codebases. They use a caveman approach - treat it as text, do some greps, read some context around it, and rely on agent "feeling" that it got enough of big picture. And they are very confidently say they are.

Unless you solve this context issue well, all the AI outputs will be very shallow, with a lot of false positives.

For this I have developed completelly different context engine, which treats code as code, knows about AST and so on https://github.com/probelabs/probe. One query with probe can be equal to 10 loops of claude code, yet with taking less context and having way deeper into your code.

@buger
buger / sandboxing.md
Last active February 3, 2026 17:02
Agent sandboxing

This is super nuanced and depends on what your agent actually does and what โ€œsandboxโ€ needs to mean for your product.

The first questions I think you have to answer

Before picking a tech, I think you need clarity on stuff like:

  • Scale: Are we talking โ€œsingle box POCโ€ or โ€œglobal, lots of concurrent agentsโ€?
  • Deployment: Onโ€‘prem install vs cloud SaaS?
  • UX / product model: Is it a backend worker (service bus / event-driven), or an interactive chat/web UI where users expect continuity?
  • Routing: Single server? Multi-server? Do you need sticky routing per user/session?
@buger
buger / tyk_schema.json
Created November 6, 2025 07:59
Tyk API Gateway API schema
{
"status":"Success",
"message":"",
"schema":{
"id":"https://spec.openapis.org/oas/3.0/schema/2021-09-28",
"$schema":"http://json-schema.org/draft-04/schema#",
"description":"The description of OpenAPI v3.0.x documents, as defined by https://spec.openapis.org/oas/v3.0.3",
"type":"object",
"required":[
"openapi",

If we forget about the AI itself, and for each engineering task we need to:

  • Do some initial research

  • Create initial high-level technical plan, and separate to milestones (like implement BE part, implement FE part, add the Docs, Write Integration tests), etc.

  • Start working on each item in the plan

@buger
buger / read.md
Last active March 7, 2024 09:05
API Gateway guide to SOAP

API Gateway guide to SOAP

SOAP is a big and painful topic when it comes to API gateway support. And the reason is that the SOAP protocol itself has a very flexible declarative XML format, and its specifications are unfortunately really vague and leave a lot of things open for interpretation.

In this document, we will try to cover all possible ways how you can integrate SOAP with Tyk API Gateway, from simple pass through to calling WSDL services.

Introduction to SOAP format

A SOAP message is a XML document which is used to transmit your data, and can look as simple as:

Date Open High Low Close AdjClose Volume
2014-07-08 574.501099 576.358887 563.039124 567.967041 567.967041 1914700
2014-07-09 568.454346 573.566223 566.262390 572.929749 572.929749 1119800
2014-07-10 562.815369 573.436951 561.920288 567.976929 567.976929 1360400
2014-07-11 568.782532 577.673645 568.295227 576.012756 576.012756 1626200
2014-07-14 579.414063 582.009827 574.869080 581.671631 581.671631 1859100
2014-07-15 582.536926 582.601563 573.407104 581.582153 581.582153 1627500
2014-07-16 584.784546 585.182373 579.016235 579.473755 579.473755 1400900
2014-07-17 576.360840 577.812866 565.500549 570.592590 570.592590 3024800
2014-07-18 589.757202 593.536438 578.817322 591.825806 591.825806 4025100
@buger
buger / README.md
Last active September 27, 2017 08:36
Rcapd go lang implementation

Record to file:

rcapd --input-raw "<interface>" --input-raw-engine "pcap" --input-raw-bpf "tcp" --output-file network.pcap

Forward traffic from 1 machine to another:

rcapd --input-raw "<interface>" --input-raw-engine "pcap" --input-raw-bpf "tcp" --output-tcp <ip>:<port>