home/coding/agent-task

Agent Task

GPTClaudeDeepSeek··1,341 copies·updated 2026-07-14
agent-task.prompt
# OpenCode Agent Task Template

## Target Tool

OpenCode, the open-source, provider-flexible terminal/TUI coding agent.
Invoked from PowerShell as `opencode` (interactive TUI) or via its
non-interactive/CLI mode for a single instruction. Works with whichever
model provider you have configured (Anthropic, OpenAI, local, or other),
so this template treats the underlying model as an implementation detail
and focuses on repository-side scope and safety.

## Purpose

Use this template for a small OpenCode task, especially read-only
repository exploration, a provider-flexible agent experiment, or a bounded
documentation/script edit where you want a read-only pass before any file
is touched.

## Inputs To Fill

| Input | Description | Example |
| --- | --- | --- |
| `{task}` | The specific task or question. | `Summarize the repo and propose one docs improvement` |
| `{mode}` | Read-only-first or direct edit. | `Read-only first, wait for approval` |
| `{files}` | Files or directories in scope. | `README.md`, `docs/` |
| `{provider_notes}` | Provider/credential constraints. | `Do not print or log API keys; use the configured provider only` |
| `{checks}` | Local checks to run after any approved edit. | `repo health, safe autofix, unit tests` |

## Full Prompt

fill the variables

This prompt has 5 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{task}{mode}{files}{provider_notes}{checks}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo Yaked1/ai-lab-codex-workbench (MIT). A "Agent Task" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

Yaked1/ai-lab-codex-workbench · MIT