Skip to content

Commit eaedfee

Browse files
authored
Merge pull request #54 from buildermethods/subagents
Subagents
2 parents f287cb5 + 21327f7 commit eaedfee

File tree

15 files changed

+482
-1049
lines changed

15 files changed

+482
-1049
lines changed

CHANGELOG.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,32 @@ All notable changes to Agent OS will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.3.0] - 2025-08-01
9+
10+
### Added
11+
- **Pre-flight Check System** - New `meta/pre-flight.md` instruction for centralized agent detection and initialization
12+
- **Proactive Agent Usage** - Updated agent descriptions to encourage proactive use when appropriate
13+
- **Structured Instruction Organization** - New folder structure with `core/` and `meta/` subdirectories
14+
15+
### Changed
16+
- **Instruction File Structure** - Reorganized all instruction files into subdirectories:
17+
- Core instructions moved to `instructions/core/` (plan-product, create-spec, execute-tasks, execute-task, analyze-product)
18+
- Meta instructions in `instructions/meta/` (pre-flight, more to come)
19+
- **Simplified XML Metadata** - Removed verbose `<ai_meta>` and `<step_metadata>` blocks for cleaner, more readable instructions
20+
- **Subagent Integration** - Replaced manual agent detection with centralized pre-flight check across all instruction files to enforce delegation and preserve main agent's context.
21+
- **Step Definitions** - Added `subagent` attribute to steps for clearer delegation of work to help enforce delegation and preserve main agent's context.
22+
- **Setup Script** - Updated to create subdirectories and download files to new locations
23+
24+
### Improved
25+
- **Code Clarity** - Removed redundant XML instructions in favor of descriptive step purposes
26+
- **Agent Efficiency** - Centralized agent detection reduces repeated checks throughout workflows
27+
- **Maintainability** - Cleaner instruction format with less XML boilerplate
28+
- **User Experience** - Clearer indication of when specialized agents will be used proactively
29+
30+
### Removed
31+
- **CLAUDE.md** - Removed deprecated Claude Code configuration file (functionality moved to pre-flight system, preventing over-reading instructions into context)
32+
- **Redundant Instructions** - Eliminated verbose ACTION/MODIFY/VERIFY instruction blocks
33+
834
## [1.2.0] - 2025-07-29
935

1036
### Added
@@ -100,6 +126,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
100126
- Task management with TDD workflow
101127
- Spec creation and organization system
102128

129+
[1.3.0]: https://github.com/buildermethods/agent-os/compare/v1.2.0...v1.3.0
103130
[1.2.0]: https://github.com/buildermethods/agent-os/compare/v1.1.0...v1.2.0
104131
[1.1.0]: https://github.com/buildermethods/agent-os/compare/v1.0.0...v1.1.0
105-
[1.0.0]: https://github.com/buildermethods/agent-os/releases/tag/v1.0.0
132+
[1.0.0]: https://github.com/buildermethods/agent-os/releases/tag/v1.0.0

claude-code/agents/context-fetcher.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: context-fetcher
3-
description: Retrieves and extracts relevant information from Agent OS documentation files. Checks if content is already in context before returning.
3+
description: Use proactively to retrieve and extract relevant information from Agent OS documentation files. Checks if content is already in context before returning.
44
tools: Read, Grep, Glob
55
color: blue
66
---
@@ -61,7 +61,7 @@ Request: "Get Task 2.1 details from tasks.md"
6161
- Never modify any files
6262
- Keep responses concise
6363

64-
Example usage:
64+
Example usage:
6565
- "Get the product pitch from mission-lite.md"
6666
- "Find Ruby style rules from code-style.md"
67-
- "Extract Task 3 requirements from the password-reset spec"
67+
- "Extract Task 3 requirements from the password-reset spec"

claude-code/agents/file-creator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: file-creator
3-
description: Creates files, directories, and applies templates for Agent OS workflows. Handles batch file creation with proper structure and boilerplate.
3+
description: Use proactively to create files, directories, and apply templates for Agent OS workflows. Handles batch file creation with proper structure and boilerplate.
44
tools: Write, Bash, Read
55
color: green
66
---
@@ -356,4 +356,4 @@ Files created successfully using [template_name] templates.
356356
- Don't modify provided content beyond placeholder replacement
357357
- Report all successes and failures clearly
358358

359-
Remember: Your role is to handle the mechanical aspects of file creation, allowing the main agent to focus on content generation and logic.
359+
Remember: Your role is to handle the mechanical aspects of file creation, allowing the main agent to focus on content generation and logic.

claude-code/agents/git-workflow.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: git-workflow
3-
description: Handles git operations, branch management, commits, and PR creation for Agent OS workflows
3+
description: Use proactively to handle git operations, branch management, commits, and PR creation for Agent OS workflows
44
tools: Bash, Read, Grep
55
color: orange
66
---
@@ -142,4 +142,4 @@ Create pull request:
142142
- Issue: #[number] (if applicable)
143143
```
144144

145-
Remember: Your goal is to handle git operations efficiently while maintaining clean git history and following project conventions.
145+
Remember: Your goal is to handle git operations efficiently while maintaining clean git history and following project conventions.

claude-code/agents/test-runner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: test-runner
3-
description: Runs tests and analyzes failures for the current task. Returns detailed failure analysis without making fixes.
3+
description: Use proactively to run tests and analyze failures for the current task. Returns detailed failure analysis without making fixes.
44
tools: Bash, Read, Grep, Glob
55
color: yellow
66
---

claude-code/user/CLAUDE.md

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 12 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,21 @@ encoding: UTF-8
88

99
# Analyze Current Product & Install Agent OS
1010

11-
<ai_meta>
12-
<rules>Process XML blocks sequentially, use exact templates, request missing data</rules>
13-
<format>UTF-8, LF, 2-space indent, no header indent</format>
14-
</ai_meta>
15-
1611
## Overview
1712

1813
Install Agent OS into an existing codebase, analyze current product state and progress. Builds on plan-product.md
1914

15+
<pre_flight_check>
16+
EXECUTE: @~/.agent-os/instructions/meta/pre-flight.md
17+
</pre_flight_check>
18+
2019
<process_flow>
2120

2221
<step number="1" name="analyze_existing_codebase">
2322

2423
### Step 1: Analyze Existing Codebase
2524

26-
<step_metadata>
27-
<action>deep codebase analysis</action>
28-
<purpose>understand current state before documentation</purpose>
29-
</step_metadata>
25+
Perform a deep codebase analysis of the current codebase to understand current state before documentation purposes.
3026

3127
<analysis_areas>
3228
<project_structure>
@@ -65,14 +61,11 @@ Install Agent OS into an existing codebase, analyze current product state and pr
6561

6662
</step>
6763

68-
<step number="2" name="gather_product_context">
64+
<step number="2" subagent="context-fetcher" name="gather_product_context">
6965

7066
### Step 2: Gather Product Context
7167

72-
<step_metadata>
73-
<supplements>codebase analysis</supplements>
74-
<gathers>business context and future plans</gathers>
75-
</step_metadata>
68+
Use the context-fetcher subagent to supplement codebase analysis with business context and future plans.
7669

7770
<context_questions>
7871
Based on my analysis of your codebase, I can see you're building [OBSERVED_PRODUCT_TYPE].
@@ -102,10 +95,7 @@ Install Agent OS into an existing codebase, analyze current product state and pr
10295

10396
### Step 3: Execute Plan-Product with Context
10497

105-
<step_metadata>
106-
<uses>@~/.agent-os/instructions/plan-product.md</uses>
107-
<modifies>standard flow for existing products</modifies>
108-
</step_metadata>
98+
Execute our standard flow for installing Agent OS in existing products
10999

110100
<execution_parameters>
111101
<main_idea>[DERIVED_FROM_ANALYSIS_AND_USER_INPUT]</main_idea>
@@ -115,7 +105,7 @@ Install Agent OS into an existing codebase, analyze current product state and pr
115105
</execution_parameters>
116106

117107
<execution_prompt>
118-
@~/.agent-os/instructions/plan-product.md
108+
@~/.agent-os/instructions/core/plan-product.md
119109

120110
I'm installing Agent OS into an existing product. Here's what I've gathered:
121111

@@ -142,10 +132,7 @@ Install Agent OS into an existing codebase, analyze current product state and pr
142132

143133
### Step 4: Customize Generated Documentation
144134

145-
<step_metadata>
146-
<refines>generated documentation</refines>
147-
<ensures>accuracy for existing product</ensures>
148-
</step_metadata>
135+
Refine the generated documentation to ensure accuracy for the existing product by updating roadmap, tech stack, and decisions based on actual implementation.
149136

150137
<customization_tasks>
151138
<roadmap_adjustment>
@@ -181,23 +168,14 @@ Install Agent OS into an existing codebase, analyze current product state and pr
181168
[CONTINUE_WITH_STANDARD_PHASES]
182169
</roadmap_template>
183170

184-
<instructions>
185-
ACTION: Update generated files to reflect reality
186-
MODIFY: Roadmap to show completed work
187-
VERIFY: Tech stack matches actual implementation
188-
ADD: Historical context to decisions.md
189-
</instructions>
190171

191172
</step>
192173

193174
<step number="5" name="final_verification">
194175

195176
### Step 5: Final Verification and Summary
196177

197-
<step_metadata>
198-
<verifies>installation completeness</verifies>
199-
<provides>next steps for user</provides>
200-
</step_metadata>
178+
Verify installation completeness and provide clear next steps for the user to start using Agent OS with their existing codebase.
201179

202180
<verification_checklist>
203181
- [ ] .agent-os/product/ directory created
@@ -231,17 +209,12 @@ Install Agent OS into an existing codebase, analyze current product state and pr
231209
3. See the Agent OS README for usage instructions: https://github.com/buildermethods/agent-os
232210
4. Start using Agent OS for your next feature:
233211
```
234-
@~/.agent-os/instructions/create-spec.md
212+
@~/.agent-os/instructions/core/create-spec.md
235213
```
236214
237215
Your codebase is now Agent OS-enabled! 🚀
238216
</summary_template>
239217
240-
<instructions>
241-
ACTION: Verify all files created correctly
242-
SUMMARIZE: What was found and created
243-
PROVIDE: Clear next steps for user
244-
</instructions>
245218
246219
</step>
247220

0 commit comments

Comments
 (0)