News for hackers. Stuff that matters.

andres

Show HN: Agent-Zero – Starter template for AI-native coding projects

https://github.com/amorey/agent-zero

Hi All,Agent-Zero is a GitHub template that you can use for new coding projects that use AI-first development workflows. It includes the minimum necessary to nudge agents to write good code, work well in sandboxes, and get stuff done on GitHub (e.g. commits and PRs). It only includes a basic CLAUDE.md file and a few scripts and GitHub templates so it's very easy to customize. I've had good luck...

( Read More... | no comments | on HN )

Show HN: Gochan – A library of channel architectures for Go, inspired by Rust

https://github.com/amorey/gochan

Hi All,I felt like I was re-inventing the wheel by bolting similar channel architectures onto different Go structs repeatedly so I decided to extract some common types into into one library so that they would be easier to re-use: - oneshot - spsc - spmc - mpsc - mpmc - broadcast - watch The types are inspired by Rust channels so if you're coming from Rust they should feel...

( Read More... | no comments | 3 points | on HN )
In addition the skills teach the agent about which kubectl commands are mutating so it doesn’t treat them and normal Bash() commands and asks you for permission first.

Show HN: Kstack – Skill pack for monitoring/troubleshooting K8s in Claude Code

https://github.com/kubetail-org/kstack

Hi All,Recently I've been using Claude Code a lot for debugging cluster issues and I realized I was performing similar tasks repeatedly so I decided to package them up into skills so I could call them up more easily (e.g. `/investigate`, `/audit-security`, `/audit-outdated`). I'm calling the skill pack "kstack" and the goal is to be able to monitor and troubleshoot K8s from within Claude...

( Read More... | 7 comments | 3 points | on HN )
Hi @nodesocket! Thanks for your support! Your help ironing out the bugs after launch was incredibly helpful.
Thanks! I used Screen Studio for the demos (https://screen.studio). I had to pay for it but I couldn't find the zoom+highlight feature anywhere else.

Regarding Heroku - I loved Heroku the first time I used it so I set up my Kubernetes cluster to work in a similar way (`git push` to deploy to production). I know K8s has a reputation for being useful only for large deployments/large teams but in my experience this isn't true. You can run a single node cluster and use it to host multiple projects all sharing the same load balancer, or you can scale up to thousands of machines with many microservices working together internally. Would it be helpful for you to see a HOWTO for setting up a Heroku-like K8s cluster?

Yes, there's no index. It uses grep (powered by ripgrep) under the hood.
Kubetail is more lightweight than Loki/Grafana. It fetches logs using the Kubernetes API which means you can only see the current state of the cluster but you can use it without installing any additional software or provisioning storage. Our new search feature greps container log files on the nodes themselves as compared to Loki/Grafana that builds a full-text index in the background and queries that at search time (I think).

Stern is a CLI tool which more closely compares to the Kubetail CLI tool (as opposed to the Kubetail web interface). Currently, there's a lot of overlap between the two tools but Kubetail gives you more control over source filters and time. For example with the Kubetail CLI tool you can do queries like this:

    kubetail logs deployments/web \
      --since 2025-05-01T00:00:00Z \
      --until 2025-05-02T00:00:00Z \
      --zone us-east-1a \
      --with-ts \
      --with-node \
      --with-pod \
      --tail=100
I'm not too familiar with stern though so please correct me if I'm wrong. In any case, soon we're going to add more features to the Kubetail CLI tool that will be unique (e.g. remote grep, system logs).
Thanks for posting a link to Johan's project. I'm in touch with him to figure out the best way to avoid confusing users.
Yep! You can use Kubetail on your desktop (using the CLI tool) or you can install it directly in your cluster using helm:

    helm repo add kubetail https://kubetail-org.github.io/helm-charts/
    helm install kubetail kubetail/kubetail --namespace kubetail-system --create-namespace
Then you can access it using `kubectl proxy` or `kubectl port-forward`:

    kubectl port-forward -n kubetail-system svc/kubetail-dashboard 8080:8080
You can also configure an ingress using the values.yaml file (https://github.com/kubetail-org/helm-charts/blob/main/charts...)
Thanks! Kubetail doesn't cache or store logs itself. By default, it uses the Kubernetes API to fetch logs from your cluster and send them directly to your client (browser or terminal). If the "Kubetail Cluster API" is installed then it uses Kubetail's custom agent to do the same.
Thanks! Part of what enables us to make a helpful lightweight solution is that we're leveraging the Kubernetes API to give logs context without requiring extra configuration. It'd be great to generalize Kubetail but a lot of that depends on how cloud platforms evolve over the next few years. Do you use Kubernetes?
Thanks! Your comment made my day! It sounds like your use-case is similar to mine when I started working on the project. Now we have a community of contributors working on Kubetail so if you have time, stop by our Discord and let us know what else we can do to help (https://discord.gg/CmsmWAVkvX).
If you get a chance to try out the Kubetail CLI, I'd love to hear your thoughts! There's a lot of overlap with stern at the moment but we're planning on adding new features soon that will be unique (e.g. remote grep, system logs).

Show HN: Kubetail – Real-time log search for Kubernetes

https://github.com/kubetail-org/kubetail

Hi Everyone!Kubetail is a general-purpose logging dashboard for Kubernetes, optimized for tailing logs across multi-container workloads in real-time. With Kubetail, you can view logs from all the containers in a workload (e.g. Deployment or DaemonSet) merged into a single chronological timeline, delivered to your browser or terminal.I launched Kubetail on HN last year and at that time the top...

( Read More... | 34 comments | 51 points | on HN )

Show HN: Kubetail – Kubernetes real-time logging dashboard now with Grep/Search

https://github.com/kubetail-org/kubetail

Hi Everyone!Kubetail is a general-purpose logging dashboard for Kubernetes, optimized for tailing logs across multi-container workloads in real-time. With Kubetail, you can view logs from all the containers in a workload (e.g. Deployment or DaemonSet) merged into a single chronological timeline, delivered to your browser or terminal.I launched Kubetail on HN last year and at that time the top...

( Read More... | no comments | 4 points | on HN )

Show HN: Edge-CSRF – CSRF protection at the edge (Next.js, SvelteKit)

https://github.com/kubetail-org/edge-csrf

This is a small JavaScript library that implements CSRF protection for Next.js and SvelteKit except it only uses edge runtime dependencies so it can be used in both node environments and edge functions (e.g. Vercel Edge Functions, Cloudflare Page Functions).I just launched V2 with support for SvelteKit and it would be useful to get some feedback from HN security folks before adding more...

( Read More... | no comments | on HN )

Show HN: Edge-CSRF – CSRF protection on edge runtime (Next.js, SvelteKit)

https://github.com/kubetail-org/edge-csrf

This is a small JavaScript library that implements CSRF protection for Next.js and SvelteKit except it only uses edge runtime dependencies so it can be used in both node environments and edge functions (e.g. Vercel Edge Functions, Cloudflare Page Functions).I just launched V2 with support for SvelteKit and it would be useful to get some feedback from HN security folks before adding more...

( Read More... | no comments | on HN )
Re:New Grafana Loki UI: No LogQL Required on Tuesday April 09, 2024 @11:25AM (#39980467)
If you get a chance, please check out kubetail (https://github.com/kubetail-org/kubetail). It's an open source log viewer for Kubernetes. Currently you can use it to look at pod logs from beginning to end, grouped together by workload (e.g. Deployment, CronJob) with basic filtering available (e.g. node-id, AZ). It doesn't let you look at historical logs yet but that's where we're headed. We just launched so we're eager for feedback and we like to build out new features quickly.
Created issue: https://github.com/kubetail-org/fancy-ansi/issues/2

Blink support would use CSS animations which requires a deeper level of integration than the other SGR parameters so I wanted to hold off until I could iterate over a solution with a user. If you'd like to use Fancy-ANSI with blink support, please let me know on GitHub and I can implement it fairly quickly.

Awesome! Great to hear it's useful for your project. Let me know if you have any questions or run into any issues.
The library is focused on text styling so it only implements ANSI SGR parameters. I used this as a reference: https://en.wikipedia.org/wiki/ANSI_escape_code

The full list of supported SGR parameters is in the README: https://github.com/kubetail-org/fancy-ansi?tab=readme-ov-fil...

Let me know if you have any suggestions on how to make it clearer which subset of ANSI is supported.

I added "Fancy-ANSI" as ASCII art to the preview site: https://kubetail-org.github.io/fancy-ansi/
Great! Do you mean a screenshot? As far as I know, besides images, you can’t embed html in GitHub readmes.
Here's the github issue if you want to get notified when it gets fixed: https://github.com/kubetail-org/kubetail/issues/2

Older »