An agent project is a Tensic project that can act, not only answer. It has one LLM, a system prompt, tools it can call, memory, and secrets. Use an agent when the model has to fetch data, run code, call your systems, or remember earlier conversations. For stateless request/response calls, an inference project is enough.
How an agent project differs from other project types
An agent project is built around state and actions:
- One LLM. An agent uses exactly one model. There is no default/fallback model list and no automatic failover, because the agent's memory and running state are tied to how that model behaves. Choose the model deliberately.
- Tools. The agent can call built-in tools (terminal, crawler, calculator, web search and more), tools it creates itself, external MCP servers, and skills.
- Memory. Within a session the agent remembers the conversation. Cross-session memory (memory bank and memory search) is optional; see Give an agent memory.
- Secrets. Credentials are stored encrypted and injected into the agent's sandbox, never into the prompt.
- Shared project features. Budgets, logging, routines, access control and integrations work the same way as in other project types and use the same screens.
The project page has these tabs: Overview, Configuration, Prompt, Tools & MCP, Memory, Secrets, Integrations, Orchestration, Routines, Access, Guards, Budget & limits, Logging and Audit log. The Overview tab lists the main settings under Setup at a glance; each row opens the tab where it is set. The header has Logs (review each request), Evals, API (how to call the project) and a More menu with Clone, Save as template, Analytics (usage over time), Comments and Delete. Use Playground at the top to chat with the agent (with Stream and Auto-scroll switches, a sliders icon for Temperature and Reasoning effort, a { } box to inject context variables, Chat and Compare modes, panels for the agent's thoughts, tools and output, and a paperclip to attach files that land in the agent's sandbox).
An agent without tools does not pretend. Ask it to fetch a web page and it explains that it has no browsing tool. Add the right tool and the same request works.
Choose the agent's embedding model
Memory bank, memory search and knowledge search need an embedding model. Pick it on the agent's Configuration tab, in the Model section.
- Open the agent project and go to Configuration.
- Under Model, open Embeddings (next to LLM) and select an embedding model. The list only offers models the project's team may use. The same section also sets the Image generator used by the
draw_imagetool and the Evaluation LLM that scores eval runs (default: the project's own LLM). - Click Save changes in the bar at the bottom of the page (it shows No unsaved changes until you change something; Discard reverts). A "Changes saved" message confirms it.
New teams can use every model on the instance by default, so the list is normally filled. If it is empty or lacks a model you need, an admin has restricted the team's models:
- Open the team (People > Teams > the team) and click Edit Team.
- Open the Models tab. Turn on Use every model the fleet provides to grant the team every model the platform provisions on this instance, including ones provisioned later. Models added to the instance by hand are not granted automatically. Or turn it off and pick models by hand under LLMs and Embedding models (the tab also lists rerankers, image generators, speech-to-text, text-to-speech and classifiers).
- Click Save, then select the embedding model again in the agent's Configuration.
A project spends from its team's budget, whichever models it uses.
Write the agent's system prompt with presets, AI generation and variables
The system prompt defines the agent's role, tone and constraints and is prepended to every conversation.
- Open the Prompt tab.
- Write the prompt in the Prompt box, or start from one of the Presets: General assistant, Describe image, Summarize text, Translate to EN, Extract data (JSON), Code assistant, Input guard and Output guard.
- If Generate with AI is shown next to the character count, click it, describe in plain English what the agent should do and click Generate; the system LLM drafts a full prompt for you to edit. This replaces the current prompt, so copy the existing one first if you want to keep it. The button needs a system LLM, which a platform admin configures in Settings; if you do not see it, write the prompt by hand or start from a preset.
- To personalise the prompt per request, reference variables in the form
{{context.name}}. Every variable used in the prompt is listed under Variables; saving the prompt declares any you have not added yourself. Use Add variable to declare one explicitly. Each variable has a Name, a Description, a Default and a Required checkbox (a required variable has no default). - Click Save.
A variable that is not marked Required and has no default renders blank when the caller sends nothing. A Required variable has no default: a request that omits it is refused with an error naming the variable, rather than silently sent with a blank value. A refused request returns HTTP 400 with a message such as "The system prompt uses {{context.company}}, but no value was supplied and the variable has no default". Callers send values in the request's context object, and the Logs turn detail shows the values a request sent under Context. Every save is recorded under Prompt history (newest first, with version, author and state), so you can see and restore earlier versions.
Mention the tools you want the agent to prefer in the prompt, and scope the agent's objective as narrowly as you can. Focused objectives give faster, more reliable results than open-ended ones.
Set temperature and reasoning effort for the agent's model
By default the agent calls its model with the model's own defaults. To change how it samples, set model settings for the project.
- Open the agent's Configuration tab and scroll to Model settings. It lists the project's LLM.
- Enter a Temperature (0 to 2). Leave it empty to use the model's default (the field shows "provider default").
- Choose a Reasoning effort from the list. The choices depend on the model (for example low, high, max); Model default (none) leaves the model's own setting.
- Click Save changes.
A blank value inherits the model's own default. A request that sets its own value always wins: in Playground, click the sliders icon to set Temperature and Reasoning effort for a test, and the panel shows the project value that applies otherwise (for example "Otherwise: 0.3 · project setting"). Through the API, send temperature and reasoning_effort in the chat request. The chat response reports what ran in a sampling object, with temperature_from and reasoning_effort_from saying whether each value came from the request or the project. The Overview tab shows the active settings under Setup at a glance, for example "temperature 0.3 · effort low".
Add built-in tools such as the terminal and crawler
Tools are what let an agent do work. Add them on the Tools & MCP tab.
- Open Tools & MCP.
- In Behaviour, open Built-in tools and select the tools the agent may call. 26 built-in tools are available, including
calculator,connect_ssh,crawler_classic,crawler_selenium,create_routine,create_tool,data_parser,datetime_tool,draw_image,duckduckgo,load_skill,search_knowledge,search_memories,send_email,terminal,wikipediaand more. The platform Tools page in the main menu describes each one. - Click Save ("Behaviour saved."). The Active tools panel at the top of the tab shows how many tools are bound (for example "5 of 26 bound") and a graph of the agent and every tool bound to it. While nothing is bound, it says so and offers Bind tools.
- Test in Playground, for example: "Get me the news from
".
Useful tools to know:
- terminal gives the agent a computer. It can write and run code, use command-line tools, download and unpack files, and analyse them. With the terminal alone the agent can do almost anything, but it takes more steps and tokens.
- crawler_classic fetches and reads a web page in a single tool call. Fetching the same page through the terminal takes several calls (download, then parse the HTML) and is slower.
search_knowledgeconnects the agent to a RAG project (choose the knowledge project on the Orchestration tab); see Build a RAG knowledge base.- search_memories searches the agent's own past conversations; see Give an agent memory.
Give the agent a purpose-built tool when one exists. It is faster and cheaper than letting the agent work it out in the terminal.
What the agent sandbox is
Everything the agent runs through the terminal tool is executed in a sandbox: an isolated container.
- A sandbox belongs to a session (a conversation), not to a single message. Files and state created earlier in the conversation are still there for later messages.
- Starting a new session creates a new, clean sandbox.
- Sandboxes are isolated from each other, so one session cannot see files from another.
A platform admin sets the sandbox's image, memory and CPU limits, internet access and idle timeout under Settings (Code sandbox); a sandbox is removed after it has been idle for that long. This sandbox belongs to agent projects. The separate Containers API (code interpreter and shell tools of the Responses API on inference projects) uses its own limits.
This is the same model used by coding agents such as Claude Code. Because each session has its own sandbox, a session that installs tools or writes files does not affect other users of the agent.
Choose the agent loop and agent mode
The agent loop (also called the agent harness) is the runtime that drives the cycle of thinking, calling tools and reading results. Set it on Tools & MCP > Behaviour.
- Agent loop: the default, tensic.ai (default — any LLM), is tuned for smaller open models such as GLM and Qwen: it keeps long sessions on track and avoids loops and repetition. Other loops are Claude SDK (Anthropic LLM), LlamaIndex (any LLM), smolagents (most LLMs) and OpenAI SDK (OpenAI LLM). The Claude SDK and OpenAI SDK loops are meant for models from those vendors. Keep the default unless you have a specific reason.
- Agent mode decides how tools are called:
- Auto (native, fall back to ReAct) (default): uses the model's native function calling when it supports it, and automatically falls back to text-based ReAct prompting when it does not. This keeps tool calling reliable on smaller models.
- Function calling (native only).
- ReAct (text-based prompting).
- Auto-plan multi-step tasks: runs a one-shot planner call before the first turn. For a multi-step request the agent then works through each subtask in its own bounded loop and combines the results, which helps on big tasks that would otherwise hit Max iterations.
Set iteration and time limits for agent requests
Every agent request runs under limits so that a looping agent cannot run forever and burn tokens, compute and budget. Set them on Tools & MCP > Behaviour:
- Max iterations: tool-calling iterations per request (default 10, range 1 to 100).
- Tool timeout (s): maximum time per tool call (10 to 3,600 s). Empty uses the instance default (120 s). A call that exceeds it is aborted and the agent sees a timeout error, so it can try another approach.
- Run timeout (s): maximum time for the whole request, all steps included (30 to 7,200 s). Empty uses the instance default (300 s).
When a request reaches the iteration or run limit, the agent stops and returns what it has so far. At the iteration cap the reply says it reached the N-iteration tool-call cap and invites you to reply "continue" (or give a more focused next step) so it carries on from where it stopped. At the run limit the reply says the request hit the overall time limit, that partial results are shown above, and suggests a more focused request or a faster model. If that happens:
- Narrow the request, reply "continue", or use a faster model.
- For legitimately long tasks (for example analysing a large file), raise Max iterations and the timeouts, for example to 100 iterations and 300 seconds.
- Click Save and run the request again.
Raise limits step by step rather than removing them; the defaults are there to protect your budget.
Store credentials as agent secrets
Use secrets for API keys, tokens and passwords that tools need.
- Open the Secrets tab.
- Click Add secret and fill in Name (the identifier tools use as the secret reference, for example
portal_password), Value (encrypted at rest) and an optional Description, then click Create. The vault lists each secret with its description, the tools that consume it and when it was last updated. The value stays masked.
Secrets are stored encrypted in the project's vault. They are injected into the agent's code sandbox as environment variables and never enter the agent's context, so the model cannot repeat them in an answer. To use a secret in a tool the agent created, select it in that tool's Project secrets settings; see Extend an agent with tools, MCP servers and skills.
Common questions
Why can't I pick a fallback model for my agent?
An agent keeps state and memory that depend on one model's behaviour, so switching models mid-run would be unreliable. Agents use exactly one LLM.
The Embeddings list on my agent is empty. Why?
An admin has restricted the team's models and none of them is an embedding model. Add one on the team's Models tab (Edit Team > Models) under Embedding models, or turn on Use every model the fleet provides (or add the model by hand), then select it in the agent's Configuration.
Do files the agent creates stay available?
Yes, for the rest of the session. Each session has its own sandbox; a new session starts with a clean one.
My request stopped with "partial results are shown". What happened?
It reached the Run timeout limit (or, for the iteration cap, the reply asks you to say "continue"). Make the request more focused, or raise the limits on Tools & MCP > Behaviour.
How do I make the agent more deterministic or let it think harder?
On Configuration > Model settings, lower the Temperature or raise the Reasoning effort (if the model supports it) and save. Higher reasoning effort uses more tokens and takes longer.
Does my small open model support tools?
Usually, yes. In the default Auto agent mode, Tensic uses native function calling when the model supports it and falls back to ReAct prompting when it does not.
Can the model see my API keys?
No. Secrets are injected into the sandbox as environment variables and never enter the model's context.
Should I just give the agent the terminal for everything?
The terminal works for almost anything, but a dedicated tool (for example crawler_classic for web pages) finishes in fewer calls, faster and with fewer tokens.