Skip to content

chore: enforce token efficiency rules across all agent instruction files#28

Merged
dnim merged 2 commits into
mainfrom
chore/agent-token-efficiency
Apr 30, 2026
Merged

chore: enforce token efficiency rules across all agent instruction files#28
dnim merged 2 commits into
mainfrom
chore/agent-token-efficiency

Conversation

@dnim
Copy link
Copy Markdown
Owner

@dnim dnim commented Apr 30, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 30, 2026 05:04
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.67%. Comparing base (dbca48c) to head (77588ad).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #28   +/-   ##
=======================================
  Coverage   83.67%   83.67%           
=======================================
  Files           9        9           
  Lines         674      674           
  Branches      173      163   -10     
=======================================
  Hits          564      564           
  Misses        110      110           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR centralizes and standardizes “token efficiency” guidance across agent-facing instruction surfaces, and wires core instruction docs into the OpenCode configuration so agents consistently receive the same rules.

Changes:

  • Add an instructions include list and per-mode agent model configuration to opencode.json.
  • Add “Token Efficiency” rules to canonical workflow docs and agent entrypoints (AGENTS/GEMINI).
  • Tighten the AntiVibe skill guidance to be more concise/direct.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
opencode.json Adds instruction includes and defines agent mode model/temperature/step settings.
GEMINI.md Reworks Gemini-facing context to emphasize token-efficiency rules and point to .opencode/docs/.
AGENTS.md Adds shared token-efficiency rules and clarifies OpenCode vs non-OpenCode workflow guidance.
.opencode/skills/antivibe/SKILL.md Makes AntiVibe output requirements more concise and explicit.
.opencode/docs/AGENT_WORKFLOW.md Adds token-efficiency rules as an explicit top-level section in the canonical workflow doc.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dnim
Copy link
Copy Markdown
Owner Author

dnim commented Apr 30, 2026

@copilot resolve the merge conflicts in this pull request

Copilot stopped work on behalf of dnim due to an error April 30, 2026 05:08
@dnim
Copy link
Copy Markdown
Owner Author

dnim commented Apr 30, 2026

@copilot resolve the merge conflicts in this pull request

make sure to take opencode.json configuration from main branch

…ent-token-efficiency

# Conflicts:
#	opencode.json

Co-authored-by: dnim <1839962+dnim@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 30, 2026

@copilot resolve the merge conflicts in this pull request

make sure to take opencode.json configuration from main branch

Resolved in 77588ad. Merged main into the branch — took the full model/agent configuration from main (gpt-5.1-codex default + per-agent gemini/codex models) and kept only the instructions array addition from this PR.

Copilot finished work on behalf of dnim April 30, 2026 05:11
@dnim dnim enabled auto-merge (squash) April 30, 2026 05:51
@dnim dnim merged commit 2f54c2b into main Apr 30, 2026
5 checks passed
@dnim dnim deleted the chore/agent-token-efficiency branch April 30, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants