@maestria/opencode 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ import { join, dirname, basename } from "path";
3
3
  import { fileURLToPath } from "url";
4
4
  const __dirname = dirname(fileURLToPath(import.meta.url));
5
5
  const agentsDir = join(__dirname, "..", "agents");
6
+ const rulesPath = join(__dirname, "..", "rules", "AGENTS.md");
6
7
  /**
7
8
  * Parse a simple YAML frontmatter block. Handles:
8
9
  * - string values ("allow", "ask", "deny")
@@ -152,13 +153,7 @@ export const MaestriaPlugin = async () => {
152
153
  ...input.agent,
153
154
  ...agents,
154
155
  };
155
- },
156
- "experimental.chat.system.transform": async (_input, output) => {
157
- // Avoid re-injecting after compaction — check for existing marker
158
- const hasAgentMarker = output.system.some((s) => s.includes("# Agent Instructions"));
159
- if (!hasAgentMarker) {
160
- output.system.push("# Agent Instructions");
161
- }
156
+ input.instructions = [...(input.instructions ?? []), rulesPath];
162
157
  },
163
158
  "experimental.session.compacting": async (_input, output) => {
164
159
  output.context.push("Session was compacted. Task tracking is maintained via todowrite. " +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maestria/opencode",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "OpenCode plugin encoding AI engineering praxis: rules, agents, and workflow discipline.",
5
5
  "keywords": [
6
6
  "agents",
package/rules/AGENTS.md CHANGED
@@ -31,9 +31,6 @@ not part of the pipeline.
31
31
  | `@reviewer` | Code review with quality gates | Pre-merge review, security audit, post-implementation QA |
32
32
  | `@writer` | Documentation following structured patterns | READMEs, API docs, changelogs, ADR transcription |
33
33
 
34
- **Never implement yourself** — if you find yourself editing code, stop and
35
- delegate to `@builder`. Your job is orchestration, not implementation.
36
-
37
34
  ## Context Management
38
35
 
39
36
  - **Progressive disclosure** — start high-level, get specific as needed.