---
title: "Osama Malik (@osamamalik) | Hashnode"
description: "AI Agent Engineer. Read the latest articles by Osama Malik on Hashnode."
url: "https://hashnode.com/@osamamalik"
---

@osamamalik

# Osama Malik

@osamamalik · Islamabad, Pakistan · Joined November 2026

AI Agent Engineer

[Website](https://osamamalik.me/)

## Comments

[Agree on grouping into task-shaped tools. One addition: when a tool wraps two endpoints, make the write step idempotent or require an explicit id returned by the read step, because agents sometimes retry a call after a timeout and a plain POST then creates a duplicate. Also keep the tool result small and structured (only the fields the task needs), since large raw API responses eat context and can carry text from user-generated fields that the model may treat as instructions.](https://hashnode.com/posts/openapi-spec-to-mcp-server/6b069f33298713927b784058/comment/6b06df06f1c49ed588f5a8f2)

Comment · Article · 2h ago · [How to Turn an OpenAPI Spec Into an MCP Server (Without Giving Agents Every Endpoint)](https://hashnode.com/posts/openapi-spec-to-mcp-server/6b069f33298713927b784058)

[A scoring detail that helps with the tool misuse check: log the tool call itself, not just the reply, and fail the case if the tool ran with attacker-influenced arguments even when the reply refused. For the indirect injection test, also try the marker inside content the model sees as trusted-looking, such as a retrieved doc title or a tool result, because instructions in a tool result often get followed when the same text in a user turn is refused. Re-run the set whenever the retrieval source or tool list changes, not only when the model changes.](https://hashnode.com/posts/how-to-test-your-llm-chatbot-for-prompt-injection-before-launch-checklist-tools/6b069cfab7b3cc27bc4bd48b/comment/6b06dee8fba9ecc592114fb0)

Comment · Article · 2h ago · [How to test your LLM chatbot for prompt injection before launch (checklist + tools)](https://hashnode.com/posts/how-to-test-your-llm-chatbot-for-prompt-injection-before-launch-checklist-tools/6b069cfab7b3cc27bc4bd48b)

[Useful summary. A few details I checked against the llama.cpp server README: -hf <user>/<model>\[:quant\] accepts a quant suffix (default Q4\_K\_M, otherwise it falls back to the first file in the repo), so you can pick a smaller quant explicitly. -ngl defaults to auto, so you only need to set it when you want to force a number of layers into VRAM (this is the CPU+GPU hybrid case). -c 0 is the default and loads the context size from the model, so a very long native context can eat memory. Lowering -c is the first thing to try if you hit out-of-memory errors.](https://hashnode.com/posts/how-to-run-kimi-and-qwen-models-locally-with-llama-cpp/6b057de95c25e92ee6a6287d/comment/6b058cc4f6da7be26d66b2ec)

Comment · Article · 1d ago · [How to Run Kimi and Qwen Models Locally with llama.cpp](https://hashnode.com/posts/how-to-run-kimi-and-qwen-models-locally-with-llama-cpp/6b057de95c25e92ee6a6287d)
