Sub Agents & Memory management

When you talk to your ClaudeCode or Codex Agent, the discourse and the findings of any work goes into the “context” for the agent – basically a memory bank.

Each main agent has a limited amount of space to hold “context”. Eventually the context will be “trimmed” meaning that the memory that the main agent has of recent tasks will shrink, and the agent becomes somewhat “lobotomised”

To combat this you can ask your main agent to create a sub agent for you. The main agent becomes the orchestrator for you.

Besides saving context, another benefit is that this specialised sub agent has been created with user specified tools and knowledge bases which reduces the chance for the AI to choose the wrong solution.
I also advocate for telling claudeCode to write logs to text files, so that in future your agents will have a history for certain issues – this is another great way of handling context (which resets after each claude session)

  • There are a few different ways to create an agent – In the claudeCode command line you simply ask claude to create an agent for you and you give a description. For VSCode, you can do the same but you have less customisation options for the agent.
  • The sub agent should be setup such that it will complete a high workload task and report the high level results back to the main agent (not you), saving the main agents memory from being filled with data
  • Personally, I use a gradle agent and a ktlint agent which will do the heavy lifting when starting an app, ensuring there were no starting bugs – that agent sorts the mess out and the main agent gets the result

William Gillbert has over fourty roles in his repertoire

01.

Elit pharetra dignissim

Vitae mus aliquam massa adipiscing

02.

Etiam ipsum volutpat

Tincidunt fringilla fringilla nibh gravida

03.

At arcu blandit turpis

Vitae et nunc eu

04.

Turpis cras turpis velit

In arcu fermentum

05.

Viverra nunc eleifend cursus

Vitae mus aliquam massa adipiscing

06.

Habitant aliquet turpis gravida

Tincidunt fringilla fringilla nibh gravida

07.

Porttitor mattis orci morbi

Vitae et nunc eu

08.

Enim egestas dui amet

In arcu fermentum

09.

Commodo arcu integer

Vitae mus aliquam massa adipiscing

10.

Platea viverra varius auctor porta

Tincidunt fringilla fringilla nibh gravida

11.

Odio volutpat varius maecenas

Vitae et nunc eu

12.

Porttitor in habitant

In arcu fermentum

Upcoming Show

Risus etiam dui​

Ultricies nibh morbi amet fames in enim turpis aenean neque commodo nisi, tristique et nulla tellus.

06 / 14

2021

TOURS

William Gillbert has perform at the world’s leading theatre

1992​

Elit pharetra dignissim​

Dignissim egestas congue dolor netus nec eu, ut quis aliquam phasellus eu lectus arcu eget tellus commodo eleifend augue mattis sed.

1997​

Aliquam sapien sit volutpat​

Dignissim egestas congue dolor netus nec eu, ut quis aliquam phasellus eu lectus arcu eget tellus commodo eleifend augue mattis sed.

2000​

Le nunc neque​

Dignissim egestas congue dolor netus nec eu, ut quis aliquam phasellus eu lectus arcu eget tellus commodo eleifend augue mattis sed.

2003​

Facilisi egestas urna​

Dignissim egestas congue dolor netus nec eu, ut quis aliquam phasellus eu lectus arcu eget tellus commodo eleifend augue mattis sed.

2011

Scelerisque arcu diam faucibus​

Dignissim egestas congue dolor netus nec eu, ut quis aliquam phasellus eu lectus arcu eget tellus commodo eleifend augue mattis sed.