mirror of
https://github.com/IgorWarzocha/Opencode-Workflows.git
synced 2026-09-14 16:22:53 +08:00
2698a1d765
- Implement internal maintenance suite: repo-maintainer agent and automated audit/sync scripts. - Add "Opencode Configurator" suite: agent-architect, command-creator, and skill-creator. - Refactor core commands (/improve, /refactor, /rmslop) to RFC 2119 + XML standards. - Standardize all agent metadata and structural tagging across the repository. - Introduce utility commands: /npm for package management and /create-pack for bundling. - Overhaul README.md and documentation to reflect new workflow patterns.
1.5 KiB
1.5 KiB
description
| description |
|---|
| Modernize resource permissions configuration |
Target Files
opencode.json.opencode/agent/*.md
Modernization Rules
-
Tool Permissions:
- The agent MUST convert legacy
tools:fields to the modernpermission:field. - If
toolsexists, the agent MUST move its logic intopermission. - If
permissionalready exists, the agent MUST merge the logic. - Example OLD:
tools: { "bash": true, "edit": false } - Example NEW:
permission: { "bash": "allow", "edit": "deny" }
- The agent MUST convert legacy
-
Iteration Limits:
- The agent MUST rename
maxSteps:tosteps:. - Example OLD:
maxSteps: 25 - Example NEW:
steps: 25
- The agent MUST rename
-
Subagent Tools:
- In agent frontmatter, the agent MUST convert
tools:topermission:.
- In agent frontmatter, the agent MUST convert
-
Reference:
- When in doubt, cross reference with: https://github.com/anomalyco/opencode/releases/tag/v1.1.1
Steps
- MUST NOT work outside of the project/repository.
- MUST locate all configuration and agent files in the defined target paths.
- For each file, the agent MUST identify legacy fields (
tools:,maxSteps:). - MUST apply the conversion to modern syntax.
- MUST ensure
permissionuses the new granular syntax where appropriate (e.g.,"bash": "allow"instead oftrue). - After all changes are complete, the agent MUST run
opencode run "test"to validate the configuration.