Files
OpenCode Agent 2698a1d765 feat: comprehensive repository overhaul and standardization
- 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.
2026-01-12 18:16:06 +00:00

1.5 KiB

description
description
Modernize resource permissions configuration
Scan the current configuration for legacy OpenCode fields and modernize them.

Target Files

  • opencode.json
  • .opencode/agent/*.md

Modernization Rules

  1. Tool Permissions:

    • The agent MUST convert legacy tools: fields to the modern permission: field.
    • If tools exists, the agent MUST move its logic into permission.
    • If permission already exists, the agent MUST merge the logic.
    • Example OLD: tools: { "bash": true, "edit": false }
    • Example NEW: permission: { "bash": "allow", "edit": "deny" }
  2. Iteration Limits:

    • The agent MUST rename maxSteps: to steps:.
    • Example OLD: maxSteps: 25
    • Example NEW: steps: 25
  3. Subagent Tools:

    • In agent frontmatter, the agent MUST convert tools: to permission:.
  4. Reference:

Steps

  1. MUST NOT work outside of the project/repository.
  2. MUST locate all configuration and agent files in the defined target paths.
  3. For each file, the agent MUST identify legacy fields (tools:, maxSteps:).
  4. MUST apply the conversion to modern syntax.
  5. MUST ensure permission uses the new granular syntax where appropriate (e.g., "bash": "allow" instead of true).
  6. After all changes are complete, the agent MUST run opencode run "test" to validate the configuration.