Opencode agents, skills and custom configuration

Custom setup for Opencode: agents (system prompts defining a role), skills (instruction files loaded on demand) and a configuration snippet. It encodes my own workflow. Published as is.

How to install

Ask Opencode to install it:

Install https://coulon-jm.fr/opencode/agents.md

The agent downloads the files into ~/.config/opencode/, merges the configuration snippet, and reloads the configuration.

How to update

Ask Opencode to update it:

Update https://coulon-jm.fr/opencode/agents.md

If you ask opencode to "update its agents and skills", it should do the proper thing autonomously, but providing the URL is always clearer.

General behavior

Agents will behave for less autonomous operations, they will behave more like a peer that you work with. Agents will use local files in your current directory to keep track of tasks: that will improve efficiency of low complexity LLMs.

If you need a plain, straightforward agent: use Actions. Actions mode executes prompts in a straightforward way with no hidden mechanics, but it's limited to 12 rounds to avoid long unattended operations.

If you built a clean TODO list, you can ask the Code agent to work autonomously: it will execute tasks one by one and stop if anything looks wrong. All agents are made extra careful and cautious, they won't iterate wildly.

Agents

Seven agent files replace the two built-in agents. Primary agents are selected by the user. Subagents are launched by another agent to offload work.

AgentModeRole
ProjectprimaryWriting plans and specifications, managing todo lists, writing documentation.
CodeprimaryWriting code from specs and plan files. Reports the issues found while implementing.
ActionsprimaryDoing isolated actions on this computer or on the web, through the FoxPilot Firefox extension.
ResearchprimaryAutonomous research on a topic. Searches online and writes a report.
BrainstormprimaryInteractive discussion to design things step by step, one topic at a time. Records pending topics in a file.
SubresearchsubagentDoes the actual research work for the Research agent.
SubagentsubagentExecutes simple but tedious tasks, such as searching a codebase or a documentation site.

Skills

Skills are loaded on demand instead of sitting in every prompt.

SkillPurpose
speccingWriting and editing specification files.
spec-implementationImplementing a project from its specifications.
planningWriting and editing plan files.
plan-implementationStarting the implementation of a plan file.
item-listHandling a file that holds a single tracked list: todo, issues, workarounds, steps.
session-historyReading or searching a past session transcript to recover lost context.

Impacting choices

These choices suit my own preferences and will not suit everybody.