cat claude-code.md
How I work with Claude Code
I use Claude Code, a coding agent, extensively - both at work and on personal projects. Here are some thoughts on how I like to use it and the habits around it.
Not only for code
Writing and testing code is only part of it. I also use Claude Code to query metrics, logs, traces and artifacts, to build dashboards and documents, and to learn: a Socratic tutoring skill teaches me by asking questions rather than handing me answers.
Outside of coding, I use Claude Code for things like smart home management, personal finance, video content creation, travel planning, and many others.
How I check its work
I don't take Claude's output on trust. When it analyses metrics in Grafana, it also builds a dashboard for me so that I can eyeball the results myself.
That has paid off several times. I have caught Claude Code:
- missing a Grafana trend that was obvious to the naked eye
- adding new metrics where existing ones would do
- proposing solutions far more complex than the problem needed
- and far more
While I naturally trust it more and more, I also know where the limitations are.
Skills the team runs
I built Claude Code skills and workflows that are now in heavy use across the organisation. Some of them:
- observability in Grafana
- releases
- reporting
- building knowledge graphs
The one for experiments and releases is shared across the team. It deploys a change to a shadow or canary pod, forms hypotheses and checks them in Grafana, presents the results, and removes the environments it no longer needs.
Keeping the cost down
Cost control is deliberate, and it comes down to habits like:
- utilize the prompt cache by deliberately deciding between continuing a session, starting a new one, or compacting
- match the model and the effort level to the task at hand. Sometimes creating a good skill with Opus enables me to execute future tasks quickly and cheaply with Haiku
- track how much context and usage a session takes, and keep looking for ways to use less context
Context
What goes into its context is chosen, not left to chance. This site is a small example of the same habit: it is generated from one file of facts, and the build refuses any claim that names a fact the file does not have. Every fact behind this page is listed in /facts.
Also as plain Markdown.