Auto context management on subagents mode#147
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 91e25b0b55
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@pedrosimao Could you please make these two changes?
This is related to some ongoing work here as well: |
Yes, no problem. I actually thought about making a separate command for this. So people can experiment with efficiency of both methods. |
|
@pedrosimao For this project, the iteration limit is mainly a safety guard to prevent non-deterministic agent's behavior from getting stuck in an infinite loop. It is not the main mechanism for controlling efficiency. Since cc-sdd adopts Kiro-style SDD, it is difficult to fully eliminate the limitations of SDD itself. What we can do is optimize around it. In practice, I think the most important part is coverage: whether each decomposed sub-task remains aligned with the approved requirements and design. About Agent Skills, I think they are needed for cc-sdd:
|
|
@gotalab regarding the context management, the original claude ralph loop plugin does not do it. Which is not what the original creator of the ralph loop proposed. So, I would vote against using this plugin, or mentioning it in the SKILL. |
|
@gotalab I have just implemented the changes you requested. I am open to do further improvement if you want. |
|
@gotalab a small note on the SKILL discussion. I recently realized that fro Claude Code, skills will replace commands. Meaning commands will no longer be needed. So, I think the commands MD files could simply be deleted once SKILLs are in place. |
|
Hi is this avaible ? |
This PR is an initial implementation for the following issue:
#140
It modifies the spec-impl commands so it spawns subagents, that self manage their own context usage. In case of big context usage the subagent stops itself and the orchestrator spawns a new subagent with same promp, plus some handoff instructions.