Skip to content

Instantly share code, notes, and snippets.

#!/bin/zsh
input=$(cat)
dir=$(echo "$input" | jq -r '.workspace.current_dir // .cwd')
model=$(echo "$input" | jq -r '.model.display_name // empty')
remaining=$(echo "$input" | jq -r '.context_window.remaining_percentage // empty')
cost=$(echo "$input" | jq -r '.cost.total_cost_usd // empty')
transcript=$(echo "$input" | jq -r '.transcript_path // empty')
# Message count - needed early for /clear detection
@vilaca
vilaca / TDAD.md
Created June 17, 2026 00:21
TDAD

Conclusion

https://arxiv.org/pdf/2603.17973

The main contribution of TDAD is not that it proves Test-Driven Development is ineffective for coding agents, but that repository-aware impact analysis is highly effective. The paper demonstrates that supplying an agent with precomputed code-to-test relationships dramatically reduces regressions compared to both a baseline agent and a TDD-prompted agent.

However, the comparison between TDAD and TDD has an important confounding factor. A TDD workflow requires the agent to generate tests, execute them, analyze failures, revise tests, and iterate before implementation. This process creates large amounts of self-generated context, including reasoning traces, test code, stack traces, and intermediate hypotheses. As a result, the TDD agent may suffer from context accumulation, premature commitment to an incorrect theory of the bug, and reduced implementation quality due to longer trajectories.

By contrast, TDAD primarily provides compact, high-information-density

I/O Operations by Category
Based on my analysis of the codebase, here are all the files that perform I/O (disk, network, or process) operations:
Disk I/O (fs module)
File Reading:
* src/tools/read.ts — reads files with streams and readline
* src/cli/args.ts — reads config files
@vilaca
vilaca / videos.md
Created May 20, 2026 10:41
interview prep
@vilaca
vilaca / config
Last active May 11, 2026 16:38
Git Worktree Config
[init]
# Use 'main' as the default branch name for new repositories
defaultbranch = main
[pull]
# Rebase local commits on top of fetched changes instead of creating merge commits
rebase = true
[status]
# Use compact output format by default
short = true

A Literacia Financeira no Contexto das Políticas Neoliberais: Uma Análise Crítica

Introdução

Nas últimas décadas, o conceito de literacia financeira adquiriu crescente centralidade no discurso político e institucional, particularmente no âmbito das economias ocidentais e das orientações promovidas por organismos internacionais e pela União Europeia. A promoção da educação financeira é frequentemente apresentada como instrumento de capacitação individual, permitindo aos cidadãos gerir melhor o orçamento familiar, tomar decisões de investimento mais informadas e prevenir situações de sobre-endividamento.

Contudo, uma perspetiva crítica sustenta que o discurso da literacia financeira não pode ser analisado isoladamente das transformações estruturais associadas ao neoliberalismo e à financeirização da economia. Segundo esta abordagem, a valorização da responsabilidade financeira individual tende a deslocar para os cidadãos a gestão dos riscos económicos produzidos por políticas de liberalização financeira

@vilaca
vilaca / swe.md
Last active April 24, 2026 23:42
swe

29 Ideas That Shape Software Engineering

These come from computer science, organizational theory, psychology, and systems thinking. They're commonly lumped together as "software engineering laws," but they aren't all the same kind of thing. Some are provable constraints you can't work around. Some are patterns measured in labs and observed across decades of projects. Some are practical rules of thumb. And a few are quips from the early internet that turned out to be uncomfortably accurate.


Contents

The Ideas

@vilaca
vilaca / rebase-worktree.md
Last active April 24, 2026 00:18
rebase-worktree skill
name rebase-worktree
description Fetch a remote branch, create a git worktree for it, rebase onto latest master, resolve conflicts, run tests, and push.
argument-hint <branch-name>
arguments
branch

Rebase branch $branch onto latest master using a git worktree.

Context

@vilaca
vilaca / routines.md
Last active February 17, 2026 15:57
Skin Routines
Winter 2025 III
Cerave Creme-to-Foam Cleanser
Cerave Micellar Water
Skinoren (AM)
Super Ferrulic (AM)
Timeless q10 (AM)
Eyelift peptides (AM)
UVMune 400 Hydrating (AM)
Sleep Glycolic (PM EOD)
@vilaca
vilaca / stack.md
Last active December 4, 2025 19:03

Cerave Foaming Cleanser

Niacinamida, Ácido Hialurónico, Fitoesfingosina, Colesterol

Aqua / Water, Cocamidopropyl Hydroxysultaine, Glycerin, Sodium Lauroyl Sarcosinate, Propanediol, PEG-150 Pentaerythrityl Tetrastearate, Niacinamide, PEG-6 Caprylic/Capric Glycerides, Ceramide NP, Ceramide AP, Ceramide EOP, Carbomer, Sodium Methyl Cocoyl Taurate, Sodium Benzoate, Sodium Chloride, Sodium Lauroyl Lactylate, Sodium Hyaluronate, Cholesterol, Phenoxyethanol, Disodium EDTA, Citric Acid, Tetrasodium EDTA, Phytosphingosine, Xanthan Gum, Ethylhexylglycerin

Anthelios UV Mune 400 Oil Control Gel-creme Fps50+ sem perfume

Mexoryl 400, Airlicium

Aqua / Water, Diisopropyl Sebacate, Silica, Alcohol Denat., Ethylhexyl Salicylate, Ethylhexyl Triazone ,bis-ethylhexyloxyphenol Methoxyphenyl Triazine, Diisopropyl Adipate, Peg-8 ,dipropylene Glycol, C12-22 Alkyl Acrylate/hydroxyethylacrylate Copolymer, Glycerin, Drometrizole Trisiloxane, Aluminum Starch Octenylsuccinate, Butyl Methoxydibenzoylmethane, Methoxypropyla