This repository contains templates for an Agentic Workflow where an AI Agent (Claude, Gemini, etc.) acts as an intelligent orchestrator alongside a human developer.
π This template follows the principles from Writing a good CLAUDE.md by HumanLayer, including Progressive Disclosure for keeping agent instructions concise and relevant.
| File/Folder | Purpose | Updates |
|---|---|---|
.agent/AGENTS.md |
Core AI instructions (~70 lines) | Static |
.agent/SYSTEM.md |
Project context, architecture, tech stack | Dynamic |
.agent/docs/ |
Reference docs (Progressive Disclosure) | As needed |
.agent/tasks/task_template.md |
Template for task.md files | Static |
.agent/archive/task_history.md |
Log of completed tasks | Per task |
- Copy Files: Copy
.agent/folder into your project's root - Initialize
SYSTEM.md: Fill in project overview and tech stack - Start Coding:
- Create a branch from
dev - Ask the AI to "Start a new task based on
task_template.md" - AI reads
AGENTS.mdfor instructions andSYSTEM.mdfor context
- Create a branch from
| Layer | Location | Purpose |
|---|---|---|
| Instructions | AGENTS.md, task.md | Define goals |
| Orchestration | AI Agent | Make decisions |
| Execution | Source code | Deterministic output |
Instead of one massive instruction file, the AI reads detailed guides only when relevant:
| File | Topic |
|---|---|
docs/task-workflow.md |
Issue β Task β Code β Archive |
docs/git-branching.md |
Branching model and git flow |
docs/decision-making.md |
When to ask vs. decide |
docs/breaking-changes.md |
Protocol for breaking changes |
docs/environment-setup.md |
.env and secrets management |
docs/project-initialization.md |
First-time project setup |
docs/error-handling.md |
Self-annealing error loop |
docs/assumptions.md |
Documenting assumptions |
docs/testing-guidelines.md |
Unit testing best practices |
docs/logging-monitoring.md |
Logging and monitoring standards |
docs/code-review.md |
Commits, PRs, and code review |
docs/dependencies.md |
Managing project dependencies |
Issue β Branch β Context Analysis β task.md β Approval β Execute β Archive
- Context Analysis: AI reads SYSTEM.md, AGENTS.md, task_history.md
- Task Creation: AI creates task.md from template
- Execution: AI writes code, writes tests, runs tests
- Self-Annealing: AI fixes errors based on test output
- Completion: AI updates docs and archives task
- Writing a good CLAUDE.md - Best practices for agent instructions
- HumanLayer Blog - More on agentic workflows