Skip to content
PentAGI
All posts

VXControl team6 min read

Meet the agent team behind every PentAGI flow

How PentAGI splits a pentest into subtasks, lets a planner pick an agent profile such as recon or pentester for each, and passes results from agent to agent.

  • agents
  • agent-profiles
  • sub-agents
  • enterprise

Mapping a target, testing what the map shows and writing up the result are different jobs, and one prompt with every tool attached does all of them badly. PentAGI runs a flow as a team: one agent splits the work, one decides who should do each piece, and a specialist carries it out. This post follows that chain under the names the interface uses, from the subtask generator to the working agent and its sub-agents.

Most of this post is about PentAGI Enterprise: sections marked Enterprise need it, and the open-source edition is described where it differs.

Three roles in every subtask

In PentAGI Enterprise, the flow log groups the work by the agent that did it. Each task starts with the Subtask generator, and each subtask then has its own Planner and Working agent:

  1. Subtask generator. The generator agent turns your message into a plan of subtasks, up to 15 per task by default, and explains in the log the plan it chose.
  2. Planner. Before every subtask, the planner chooses the working profile, the plugins the agent may use and a short checklist. It always runs, on the adviser model of the flow's provider.
  3. Working agent. The agent that does the subtask, with the profile the planner picked: its base prompt, its model preset and its tools. Its commands run in the flow's sandbox container.

Around these three, pipeline agents run at fixed points. After each subtask the refiner reviews the remaining plan and changes it when the results call for it, and when the task is done the reporter writes up its result. The adviser, the reflector and the memorist step in when an agent needs a review, a nudge back to tool calls or an answer from earlier work.

The open-source edition runs the same loop without profiles: the primary agent hands each step to a fixed specialist, the searcher, pentester, coder or installer. The agents page lists every agent type and what it does.

Agent profiles: roles as data (Enterprise)

In Enterprise, an agent is defined by a profile rather than by code: a role, a base prompt, a model preset and an ordered list of tools. The built-in profiles come in three groups:

GroupProfiles
Working agentsuniversal, pentester, coder, installer, researcher, recon
Interactiveassistant
Pipelineplanner, subagent_planner, generator, refiner, reporter, enricher, report_planner, composer, reviser

The planner chooses among the working profiles that are enabled for you. You can add your own in Settings → Agent Profiles, administrators for everyone and other users for themselves, and plugins can ship profiles of their own.

Each working profile has On, Default and Off switches. Administrators set the Default for users, and each user can override it. Default follows one setting in .env:

PROFILES_ENABLEMENT_MODE=auto   # manual: offer a profile only once it is switched On

Two guards keep the choice from failing silently. When the planner returns three invalid answers, the subtask falls back to universal. When no working profile is enabled at all, the task stops with an error instead of running without one.

1 / 5

Steps follow the order of execution; a loop is shown once. The dot shows direction, not timing.

Subtaskfrom the generatorPlanneron the adviser modelProfiles for youon · default · offuniversalthe fallback profileWorking agentrecon, pentester, …Pluginsskills, MCP serversSub-agentsparallel, boundednext subtaskenabledrelevantprofile + checklist3 invalidspawn_agentresults
subtaskagentcatalogfallback

From recon to pentester (Enterprise)

The clip at the top shows a handover on a lab target. The planner reads the first subtask and picks recon, and a working agent takes the subtask with that profile. It maps the target, and every command runs in the terminal next to it; the output comes back to the agent, which decides the next step. Before it finishes, it checks that its captures are saved, then hands over the result.

The next subtask is active testing of what recon mapped, so the planner picks another profile: pentester. The new working agent runs its experiments in the same terminal, starting from what recon found, until the flag is confirmed.

Nothing in this handover depends on one agent remembering another's conversation. The subtasks of a flow share one sandbox, so files and captures stay where the previous agent left them. Commands, their output and the results go to the flow's memory, where later subtasks build on earlier ones and the memorist answers questions about past work. Each subtask keeps its result, and the refiner checks the remaining plan against it before the next subtask starts.

Sub-agents inside a subtask (Enterprise)

A working agent can split its own subtask further. Sub-agents run in parallel inside the subtask, and the agent manages them through tools:

  • spawn_agent starts a sub-agent for a piece of the work;
  • agent_status, agent_wait and agent_log follow it and read what it did;
  • agent_stop ends it.

Delegation is bounded by the flow, not by the model's judgment. A time budget is handed down from the task to each subtask, the generator is capped on subtasks per task, and a ceiling limits concurrent sub-agents. A new flow takes its defaults from .env:

AGENT_TIME_BUDGET_SECONDS=10800      # three hours of agent work per task
AGENT_MAX_SUBTASKS=15
AGENT_MAX_CONCURRENT_SUBAGENTS=10

You set the values when you start a flow, together with a context preset for the summarizer: Compact, Balanced or Spacious. On a running flow, change them under Preferences; they apply from the next task. Setting Concurrent sub-agents to Disabled removes the sub-agent tools from every agent of the flow, the assistant included. The agent profiles documentation has the full list.

A model for each role

Because roles are separate agents, they do not have to share a model. A provider config file assigns a model and its parameters to each agent type. The planner runs on the adviser model, so a strong model there improves every profile choice, while lighter models are enough for search and summarization. Pick your own AI engine walks through the config format.

Limitations

  • A profile is a prompt and a toolset, not a skill guarantee. The working agent is as good as the model behind it, and two runs of the same task can pick different profiles or reach different results. Treat findings as leads to confirm.
  • The planner picks from what is enabled. A missing or switched-off profile is not chosen, and three invalid answers fall back to universal rather than to the profile you expected.
  • Sub-agents cost model calls. Each sub-agent is another chain of calls on the flow's provider, so a higher concurrency ceiling means more tokens. The ceiling and the time budget are there to bound it.
  • Scope is yours. The agents follow the task, and PentAGI does not restrict targets on its own. Write the targets and the rules of engagement into the task, and enforce a hard boundary at the network level as well.
  • Profiles, the planner and sub-agents are Enterprise. The open-source edition delegates to fixed specialists instead.

See the agent team on your scope

PentAGI is open source under the MIT license: start with the repository on GitHub and the first flow guide. Agent profiles, the planner, sub-agents and time budgets are part of PentAGI Enterprise.

We are bringing PentAGI to GITEX GLOBAL 2026 in Dubai: 8–10 December at Expand North Star, Scale-It! zone, Dubai Exhibition Centre, Expo City Dubai. Come by for a live demo or book a meeting with the team.