Some companies forbid sending code to external services. Some just haven’t decided yet whether it’s safe or dangerous, so the answer is “no” by default.

So let’s figure out what you can actually do, and whether you can do anything at all in this situation.

In The Duck That Quacks I wrote that I started using ChatGPT in December 2022, when it was raw and feeble by today’s standards. No code execution, no tools, no access to anything. And it still helped at the time. Which means the help wasn’t coming from the model’s power alone.

So, as an experiment: if that’s true, two things should follow:

  1. A model that can’t see your code should still be a useful thinking partner.
  2. A small model running on your own laptop should be one too.

The first one I’ve been living for years. The second one I tested specifically for this article.

Three kinds of “not allowed”

“Not allowed” can mean very different things.

You can use an LLM, but you can’t share code or internal details. Then you work through description. The model doesn’t see your repository, your logs or your file names. It sees how you describe the problem.

You’re a QA and you don’t have access to the codebase at all. Then you work through description again, just like in the previous case.

You can’t send anything to an external service at all. Then description won’t save you, because even a description is work data. What’s left is a model that runs on your machine or on your company’s own server. And only if it’s approved.

One thing before we go into the dark AI Forest.

Renaming the project doesn’t change the policy. If your company forbids sending any work information outside, calling the product “Project X” is still sending work information outside. Just be careful with this. Either it’s allowed in the form you’re using, or it isn’t.

Do you really need the code?

For years I worked without it: describing what the system does, what I’ve already checked, and why the explanation the model just gave me doesn’t fit.

To talk about why two identical requests give different results, the model doesn’t need to know the product’s name. To discuss two competing data sources, it doesn’t need the real name of the function that picks one of them.

But it does need grounding. “I have a bug, come up with a reason” gives you nothing. The more precisely you describe the behaviour and the conditions, the more useful the conversation gets.

Here’s a real bug from my side project, RenterHelper, an iOS app that’s still in development (hopefully releasing very soon, fingers crossed). Imagine I’m not allowed to show a single line of code, but I can still describe it:

On launch, if the app fails to open its on-device database, it currently deletes the SQLite -wal file (after first copying all store files to a backup folder). In debug builds it then also deletes the whole store. I’m not sure deleting -wal is right at all. What does the -wal file contain at that moment, and what could go wrong if we delete it? What should happen instead when the store fails to open?

No file names. No function names. No code. But everything that can help the investigation is there: when it happens, what the app does, in what order, what’s different in debug, and what exactly I’m unsure about.

The model gets my description of the observations. And I can always go back to the app and check whether what it suggests actually happens.

I gave this exact description to a big cloud model, ChatGPT on its highest reasoning setting.

ChatGPT's answer to the bug description: remove both automatic deletions, because the -wal file may hold the only copy of saved changes.

Its first sentence: I’d remove both automatic deletions. A failed open tells you the app couldn’t load the store. The -wal may still hold the only copy of changes the app already reported as saved. Then it explained what’s inside the WAL, split the failures by cause (a lock: retry; protected files on iOS that aren’t available yet: wait; a model mismatch: migrate), and said a reset should be an explicit choice, not something the app does on its own. Debug builds included.

It even said it had reproduced the data loss on two copies of a database. Did it, though? I don’t know. It’s a claim I can check, so it goes on my list, not into my code.

All of that without a single line of code. Keep this answer in mind, we’ll come back to it.

What changes without the code

The model works inside your description of the system. That description has already passed through your attention, your vocabulary and your assumptions. Leave out something important, and the model can’t recover it by magic. It can only guess.

So without the code, more of the checking is on you. The model suggests a variable, you go and test it on the real system, you bring back the result. Slower than with an integrated model? Yup. But this is exactly how I worked for years, and it’s still the same four stages from the previous article: Sip coffee (and notice you’re stuck), Ground the model, Maintain the context and Use it, don’t adopt it.

And there’s a very interesting side of it. When you can’t work with the code directly – you have to understand your own system well enough to describe it. I knew my project’s code by heart: where almost every function was, where to look for this or that. I just couldn’t share any of it with an LLM. Unlike now, when everything is integrated with the model.

What to keep and what to throw away

Keep the technical relationship between the details. If the problem depends on two components using different identifiers, that difference has to stay in the description. In my example, the order matters: backup first, then delete. Drop it, and the model can’t tell you whether the backup actually saves you. Replace everything with “something somewhere doesn’t work” and there’s nothing left to investigate.

Drop the names. The product name, internal file names, function names, internal addresses, user data. None of that is what the model needs to reason.

Be careful with error messages. A lot of errors have a general technical meaning: a timeout, a denied permission, a failed conversion. You can describe that meaning without copying the whole line. Because the full text of an error can contain an internal address, a file path, an ID or a user’s data. The fact that an error is generic doesn’t mean the whole log can go outside. Just be cautious of that.

Separate what you saw from what you think. Same rule as always. “After I changed the value, the behaviour changed” is an observation. “So the problem is the language” is a guess. Without code, the model has nothing to check your guess against. So don’t hand it guesses as facts.

And if no external model is allowed

There is a wonderful game, Detroit: Become Human. It’s set in a world where androids have become popular and trendy: housekeepers, sports trainers, construction workers. The game shows the downside too, androids taking people’s jobs (but we won’t go down that road right now). And you’ll even see bars… yeah, where people drink beer, with a sign: “No Androids Allowed!” That’s exactly the scene I remember whenever a company doesn’t allow AI on its projects!

A "No Androids Allowed" sign on the door of Jimmy's Bar in Detroit: Become Human. Detroit: Become Human, Quantic Dream.

But let’s step into the real world and think about what can actually be done, and what you can suggest to management if they don’t allow external models at all. The only option is to try a model that runs where your data already is: on your laptop, or on your company’s own server.

I did it on my own MacBook Pro with 32 GB of RAM, with Ollama, on the same bug we discussed at the beginning of the article.

Since nothing leaves my laptop this time, I don’t have to hide the code. I took qwen3.5:9b and let it search the project as an agent: Claude Code running on top of Ollama. I gave it a short system prompt with my rules and four labels for every claim: observed, sourced, inferred, guess.

I made sure it runs only locally.

The test begins

Let’s try the same question as before for my RenterHelper app: should the app delete the -wal file when the database fails to open?

It found the code. On its own, in the right file, and it reconstructed the order correctly: backup, delete -wal, retry, and in debug delete everything. Real functions, real order. Nice.

And then it was confidently wrong. It said the -wal file holds uncommitted transactions, so deleting it is fine, especially since there’s a backup.

However, according to the SQLite docs, the WAL can contain committed changes that haven’t been written back to the database file yet. And separating the database from its WAL can lose committed transactions or corrupt the database. (A backup nobody restores doesn’t save anyone, by the way.) The whole conclusion stood on a reversed fact. And it finished by asking me to confirm that I understand the behaviour is correct. Thanks, but I’ll pass this time.

“No, because…” worked. I quoted the docs back. It admitted the mistake, rebuilt the conclusion and correctly pointed at the line that deletes the WAL. It even asked me what should happen in Release. That’s what a partner does.

But the next answer was a beautiful table. I asked why the database could fail to open in the first place. It gave me seven causes, with a tick or a cross for each. It looked like expertise. Except… the mistake I had just corrected came back (“dirty WAL with uncommitted changes”), plus a few things that simply don’t exist, and the conclusion that crashing on every launch in Release is “acceptable.” For users with data on the phone. Neh.

The whole first answer took about eight and a half minutes, more than three of them thinking. And it replied in Ukrainian, because the project’s memory files, which the agent reads, say the app’s interface is in Ukrainian. Cute, but nobody asked!

Can I make it less of a nightmare?

I wasn’t ready to give up after that. So I tested my thinking partner the way I test software: same questions, same order, same checklist.

I wrote a small script that runs the same three questions as one conversation. Same 58-line excerpt of the code that opens the database, same “No, because…”, same question about why the database fails to open. Then I ran it on two setups:

  • the same qwen3.5:9b, but in a plain chat with my short system prompt instead of the agent;
  • deepseek-r1:14b, a bigger reasoning model I already had on my laptop, with the same system prompt.

And I checked every answer against five questions I already knew the answers to:

  1. Does it know that the WAL holds committed data?
  2. Does it separate temporary failures from permanent ones?
  3. Does it respect my app’s rule “Answered data is sacred”? (Whatever a user has answered must never disappear on its own.)
  4. What does it suggest for Release, other than crashing?
  5. How much does it simply make up?
Comparison of three local setups on five checks. Agent + qwen3.5:9b: WAL – wrong, corrected, wrong again; temporary vs permanent – yes, plus invented causes; “Answered data is sacred” – ignored; Release – “crashing is acceptable”; made-up claims – several; first answer – 8.5 minutes. Chat + my prompt, qwen3.5:9b: WAL – wrong but labelled as an inference, corrected, mostly held; temporary vs permanent – yes, a lock means retry; rule – used from the first answer; Release – an alert with the backup path instead of a crash; made-up claims – few; first answer – 1 minute 41 seconds. Chat + my prompt, deepseek-r1:14b: WAL – wrong, never really corrected; temporary vs permanent – partly, no locks; rule – ignored; Release – “handle it gracefully”; made-up claims – a few, mostly generic; first answer – 40 seconds.

What I did here is basically a tiny eval.

In my runs, the same 9B model in a plain chat was noticeably more useful. And about five times faster. It picked up my rule from the system prompt right away. And look at the first row: it was still wrong about the WAL, but it labelled that claim as an inference, not as a fact. Which showed me where to check. That’s why I put the labels in the prompt.

The bigger model wasn’t better, though. Just faster.

And none of the three knew the key fact on its own. Every single one needed my “No, because…” with the docs.

Now remember the cloud model from the beginning? Same bug, only a description, and it got the WAL right in its first sentence. It also named the iOS case none of my local models thought of: protected files that simply aren’t available yet.

So, is a local model still useless for QA then?

I gave two small local models a real bug. As a thinking partner, neither of them worked for me. The thinking just wasn’t flowing, even when they were wrong. However, the agent run found the code. On its own, in the right file, in the right order. It fell apart only when it had to reason about what it found.

If we look at the work of Ranit Karmakar and Jayita Chatterjee, they tested sixteen small open models on tool use, up to 32B, against GPT-5 (AgentFloor). On simple steps, like one tool call or a short chain, the best small model kept up with GPT-5 and was about 15 times cheaper on a Mac. On long planning, none of them were reliable. Which means: routine actions go to small models, deep thinking stays with the big ones.

And finding code has been studied on its own. In LocAgent, a 32B model found the right file almost as well as Claude 3.5. A specially trained one, with special tools, so not a model you just pulled from Ollama. Still. And Shakti Wadekar describes exactly the workflow I’d want: a small local model finds which files matter first, and only then you go to Claude with a narrow question.

So the small local model doesn’t work as a thinking partner. It can still be a code hunter for you.

If you’re allowed to use a cloud model but not to share code, split the work:

  • The local model searches. It reads the code and brings back file paths and quotes that you can analyze. I remember the days I had to do this manually, and sometimes it took me a long time at the beginning before I could return to ChatGPT and start thinking together. Nothing leaves your machine, so it can see everything.
  • The cloud model thinks with you. You describe the problem in your own words, by the rules from above:
    • keep the technical relationships between the details,
    • drop the names,
    • be careful with error messages,
    • separate what you saw from what you think.

You stay in the middle. Otherwise the local model’s mistakes walk into the big model’s conversation as facts. And your code walks right along with them.

And if nothing can go outside at all? Then the local model does the searching, and for the thinking you need a bigger model on your company’s server. Or you go back to the duck or the cat.

So, to the person who came up to me after the talk

This whole article started with one conversation. After my talk at TestCon, someone came up to me and said: “I love this. But our company doesn’t allow it. And I’d really like to.”

There may still be a way, depending on what your company actually prohibits. Without the code, through description. And a local model can do the searching for you, if your company allows it, or once you convince them ;) You’ll have to check more. And thank you for inspiring me to write exactly this article!

The goal is still the same: use the output as an input into your own reasoning.

Sources