mirror of
https://github.com/johndoe6345789/MetalOS.git
synced 2026-04-24 13:45:02 +00:00
Add microagents scaffolding for SDLC workflows
- Created ExampleAgent, BuildAgent, TestAgent, LintAgent, DocGenAgent, DeployAgent, DepUpdateAgent, RoadmapAgent under agents/ - Added CLI stubs and READMEs for each agent - Updated AGENTS.md with all agent entries Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
38
agents/RoadmapAgent/README.md
Normal file
38
agents/RoadmapAgent/README.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# RoadmapAgent
|
||||
|
||||
RoadmapAgent allows viewing and updating the project roadmap (`docs/ROADMAP.md`).
|
||||
|
||||
## Requirements
|
||||
|
||||
- Python 3.6+
|
||||
|
||||
## Installation
|
||||
|
||||
No installation required. Ensure the script is executable:
|
||||
|
||||
```bash
|
||||
chmod +x agents/RoadmapAgent/main.py
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
./agents/RoadmapAgent/main.py (--view | --add ITEM)
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
- `-v, --view`: Display the current roadmap from `docs/ROADMAP.md`.
|
||||
- `-a, --add ITEM`: Append a new item to the roadmap.
|
||||
|
||||
## Examples
|
||||
|
||||
View the roadmap:
|
||||
```bash
|
||||
./agents/RoadmapAgent/main.py --view
|
||||
```
|
||||
|
||||
Add a new roadmap entry:
|
||||
```bash
|
||||
./agents/RoadmapAgent/main.py --add "Support multi-arch builds"
|
||||
```
|
||||
45
agents/RoadmapAgent/main.py
Executable file
45
agents/RoadmapAgent/main.py
Executable file
@@ -0,0 +1,45 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(
|
||||
description="RoadmapAgent: view or update the project roadmap (docs/ROADMAP.md)"
|
||||
)
|
||||
group = parser.add_mutually_exclusive_group(required=True)
|
||||
group.add_argument(
|
||||
'--view', '-v',
|
||||
action='store_true',
|
||||
help='Display the current roadmap'
|
||||
)
|
||||
group.add_argument(
|
||||
'--add', '-a',
|
||||
metavar='ITEM',
|
||||
help='Append a new item to the roadmap'
|
||||
)
|
||||
args = parser.parse_args()
|
||||
roadmap_path = Path(__file__).parent.parent / 'docs' / 'ROADMAP.md'
|
||||
|
||||
if args.view:
|
||||
if not roadmap_path.exists():
|
||||
print(f"Roadmap file not found at {roadmap_path}", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
print(roadmap_path.read_text())
|
||||
sys.exit(0)
|
||||
|
||||
if args.add:
|
||||
# Append new roadmap item
|
||||
entry = f"- {args.add}\n"
|
||||
try:
|
||||
with open(roadmap_path, 'a') as f:
|
||||
f.write(entry)
|
||||
print(f"Added roadmap item: {args.add}")
|
||||
sys.exit(0)
|
||||
except Exception as e:
|
||||
print(f"Failed to update roadmap: {e}", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user