How I get the most out of AI at work, without letting it do my job
Everything in this post runs in Rex, the terminal from Superlogical. A pipeline fails on main, and a few seconds later I see it in red in a panel on the right of my screen.
I press Cmd+Shift+F and choose it from the list. A new Claude opens in that repository, with the first task already written. The task has the link to the pipeline and the failed jobs, and it asks for the cause and a fix.
When I look at it, Claude has already read the log and has a first idea. I check it myself and decide what the fix is. Then I make the change, or I ask Claude to do it.
This post is about the setup behind that. It has three parts: a dashboard, one terminal session per repository, and some skills for Claude Code.
Claude helps a lot, but the work is still mine. And to be honest, most of the time did not go into Claude. It went into connecting all the pieces.
Where the work is
Every day I use GitLab, Bitbucket, Jira, Confluence, Argo CD and Prometheus. Each one is a different web app, with its own tabs and its own search.
We run several services in several environments. To know if everything is fine, I need to check pipelines, deploys, pods and alerts, and they are all in different apps.
I wanted to see all of this on one screen. And when something needs me, I wanted to start working on it without looking for the right tab first.
One skill per system
A skill is a folder with a SKILL.md file that explains one thing to Claude. Claude only sees a short description of each skill, and it reads the rest when a task needs it.
I have one skill per system: GitLab, Bitbucket, Jira, Confluence, and Argo CD with Kubernetes. Each one explains how to log in, which command to use for each thing, and our team rules. For example, a merge request I open is always assigned to me, and branches and commits include the ticket key.
There is one rule that all of them share. Claude can read anything, but before it changes anything, it shows me what it wants to do and waits for a clear yes.
CLI first
If a good official CLI exists, the skill uses it: glab for GitLab, argocd for Argo CD and kubectl for Kubernetes. The skill only adds what the CLI does not do.
If there is no good CLI, the skill brings its own small script. Jira, Confluence and Bitbucket have one each, between 200 and 300 lines of shell. Each script handles the login, prints short output, and has a dry-run mode that shows the request without sending it.
One session per repository
In Rex, sessions, tabs and panes work like in other terminals. The difference is that you can control all of them from a CLI and from Lua, and you can bind any action to a key.
With Cmd+Shift+O I get a list of my work repositories. I choose one, and Rex opens its session with Claude already running, or goes to it if it is already open. If I want a second Claude in the same repository, it opens in a new tab.
Each session has the name of its repository, and each tab has the name of its task. A small hook makes Claude rename the tab and not the session, so I can always find a repository by its name.
Cmd+Shift+A shows all the Claudes that are working or need me. The most urgent come first: one with a question, one that failed, one that finished, and then the ones still working. I choose one and go straight to its tab.
The main Claude
I have one session called main. In its first tab there is a Claude on the left and the dashboard panels next to it.
This Claude can open other Claudes. If I tell it “open the gateway and check this”, it starts a Claude there with a task that makes sense on its own. Every task ends by asking the new Claude to tell the main one when it finishes or needs a decision.
If one of them has a question or needs a permission, the main Claude tells me what it wants. When several are waiting, it puts everything in one message, and I answer. It never approves anything for them, and a message from another Claude never counts as my answer.
The dashboard
The dashboard is one Python script, about 1,200 lines, that runs once in each pane. Each panel refreshes on its own, every 45 to 90 seconds. When the Rex app is closed, they stop asking for data.
Services. One row per service shows the last pipeline on main, the version Argo CD runs in each environment, and how many pods are ready. CPU and memory appear as a percentage of the limit, in yellow from 80% and in red from 90%.
Under the table I see the firing alerts, the sandboxes running now compared with the whole cluster, and the changes waiting for approval.
My work. Here I see my open merge requests in GitLab and Bitbucket, each one with its state, like “pipeline failed” or “ready to merge”. Below them are the merge requests I have to review, and then my tickets. The blocked ones go last, with the days since they last changed.
At the bottom there are the initiatives I report on. Each one needs a status report every two weeks, and the panel marks the ones that need a new one.
Agents. Here I see our agents in production, right now the PR agent and the incident categorizer. For each one it shows what it produced, how many runs failed, how much it spent and the cost per item. Every number is there for the last 24 hours, 7 days and 14 days.
The numbers come from Prometheus, and the cost from our LLM gateway, where every agent has its own key.
Each panel also tells Rex its state, using an escape sequence in its output. If a pipeline fails, a deploy breaks or a change is waiting for me, the tab gets a badge and I get a notification. So I do not need to have the dashboard on screen all the time.
From a problem to a task
Every time a panel refreshes, it saves the things that need action in a JSON file. Each item has a title, a link, its repository and a first task for Claude.
Cmd+Shift+F shows these items, the most urgent first. When I choose one, a new Claude opens in that repository, in its own tab, so it does not mix with other work.
The tasks are short, and they ask for a first look, not for the finished job. They are written in Spanish, so this is a translation:
| What the panel found | What Claude is asked to do |
|---|---|
| An alert is firing | Look at the metric, the pods and the logs, and tell me why it fires |
| A pipeline failed | Read the log of the failed job, tell me the cause and suggest a fix |
| A merge request to review | Review it and tell me what you find, before you comment on anything |
| Review threads with no reply | Suggest a reply or a change for each one |
| A merge request ready to merge | Show me its state, and merge it when I say yes |
| A status report is due | Tell me where the initiative is, and wait for me to dictate the report |
In all of them, the last step is mine. Claude reads and suggests, and I decide what to do next.
The last one opens in main, not in a repository. A status report says what I think about the initiative, so I dictate it myself.
Approvals without AI
Some deploys need a change ticket, and a person has to approve it. The pipeline log has the ticket and a link to the diff, and the services panel gets both from there.
For a change ticket, Cmd+Shift+F does not open a Claude. It gives me three options: approve it, open the ticket or open the diff. If I approve, a script moves the ticket to approved.
I did this without a model on purpose. The decision is mine, and after I decide, a script does the rest in the same way every time.
What Claude can and cannot touch
All the calls to the model go through our LLM gateway, the same one our agents use. The gateway masks sensitive data before the prompt goes out, and if the masking fails, the request is not sent.
The model never sees my credentials. The tokens are in my ~/.zshrc, and a hook adds them to the environment of each session, where glab and the scripts can read them. No skill prints a token, and all of them say that a token must never be printed.
Claude does not change anything without me. Claude Code asks before it runs something I have not allowed, and the skills add one more rule: show every change first. The main Claude is not allowed to answer a permission request for me.
And the most important approvals do not use a model at all.
What broke
After the first version, a lot of the work was fixing small things. These are some of them.
- Claude Code stopped saying what it was doing. A new version started to report only “working” or “done”, without a message. Now I identify each Claude by its session and its tab, and the tab already has the task name.
- Rex started to restore sessions. After a server restart, Claude came back in the same conversation, but the panels came back as empty shells. Now, when I open the dashboard, it restarts every panel that is not running the script.
- Resizing a panel took seconds. To redraw with the new width, the panel asked for all the data again, and that took 3.4 seconds. Now it uses the data it already has, and the whole resize takes about 0.2 seconds.
- Some alerts never appeared. Rules that use
sum(...)lose the namespace label, so the panel could not know which service they were for. Now it looks at the alert’s source label first.
None of them were difficult. The problem is that you only notice them when something that should be on the screen is not there.
What I learned
If I had to start again, I would build the dashboard first. Having everything that needs me on one screen is the most useful part, even without Claude.
Write the tasks as if you were writing to a colleague who just arrived: the link, what is wrong, and what you want back. If the task is clear, the first look is much better.
And when the action is the decision itself, like an approval, keep the model out. I trust a script that does one thing more than a Claude that was told to ask first.