A model-agnostic scaffold for repositories where AI coding agents do real work. Drop-in instructions, configs, skills, tracking, and a tiny Makefile + xops layer
Note: this README describes the framework repo itself. When you scaffold into a target project, the target gets a small project-template
README.mdinstead — and the.agentic-workspace-version,install.sh, andxops/init/scaffold.shfiles are intentionally not copied into it.
# 1. One-liner install (scaffolds into ./my-repo, creates it if needed)
curl -fsSL https://raw.githubusercontent.com/metaphy6/agentic-workspace/main/install.sh \
| bash -s -- --target ./my-repo# 2. Or clone + scaffold manually (scaffold.sh lives in the framework repo)
git clone https://github.com/metaphy6/agentic-workspace.git ~/code/agentic-workspace
~/code/agentic-workspace/xops/init/scaffold.sh --target ./my-repo# 3. Orient the first agent session
cd ./my-repo
xops/agent/session-bootstrap.shagentic-workspace is a bootstrapper (not a template you fork). You keep this
repo around once, then scaffold its agent framework into any new or existing
project with one command:
xops/init/scaffold.sh --target /path/to/your-projectIt gives every project the same shape:
- 📜 One rulebook (
AGENTS.md) that every AI assistant reads first, plus thin per-vendor entry points (CLAUDE.md,CONVENTIONS.md, and.github/copilot-instructions.md) that all delegate back to it. No drift between assistants. - 📊 A 9-column
docs/tracking/tracking.csvthat records every meaningful agent action (plan / implement / test / review / commit / revert / note / block) — the single source of truthmake gitreads to build commit messages. - 🤖
make git/make git.dry— agents never rungit commit/git push; they append a tracking row and stage files, the human (ormake git) commits. - 🗺️ A
ROADMAP.mdtemplate +docs/{code,project,design,planning,tracking,guides}layout so agents always know where to put things. - 🧪
xops/— a tiny ops tree withsafe-run.sh(crash-safe command wrapper),session-bootstrap.sh(orient a fresh agent session),tracking_append.sh(validated CSV appender), and Python ops scripts formake git. - 🧠
.agents/skills/— a curated, general-purpose skill library (TDD, systematic debugging, code review, documentation discipline, MCP usage, parallel subagents, AI output stability, …) that any project can benefit from. Skills live under.agents/skills/<name>/SKILL.mdand are accessible via the VS Code Copilot/command.
CI/CD, language-specific tooling, and project-specific business rules are intentionally excluded — those live in your project.
# Dry run first (shows every file that would be created / skipped)
./xops/init/scaffold.sh --target /path/to/your-project --dry-run
# Real run (idempotent — existing files are left alone unless --force)
./xops/init/scaffold.sh --target /path/to/your-projectChoose a preset:
./xops/init/scaffold.sh --target /path/to/your-project --preset minimal
./xops/init/scaffold.sh --target /path/to/your-project --preset full # defaultPick exactly which agent surfaces you want:
./xops/init/scaffold.sh --target /path/to/your-project \
--agents copilot,claudeCodex is included in the default agent selection. For a Codex-only project:
./install.sh --target /path/to/your-project --agents codex --no-vscodeThis generates native .codex/agents/*.toml roles, a project-local
.codex/config.toml with CodeGraph MCP, and all shared skills, including the explicit-invocation slash-command skills (including supporting files), scoped instructions,
AGENTS.md and CONVENTIONS.md are installed. Requires Python 3.9+;
CodeGraph uses its installed CLI or Node.js/npx.
Open the target folder in Codex in the ChatGPT desktop app and review/approve
project trust. Ordinary ChatGPT chats do not load local repository configuration.
Start with $plan or the skill picker. See
Codex setup for runtime mappings, verification,
permissions, opt-outs and repeat-install behavior. Native configuration support
requires a current Codex client; the installer does not install or update it.
Add a language preset:
./xops/init/scaffold.sh --target /path/to/your-project --lang python
# also: node | go | rust — adds .gitignore lines + Makefile.lang.mkIn your project:
make help # list every target
make git.dry # preview what would be committed (read-only)
make git # commit pending tracking rows + push
make track.add ACTION=note SUMMARY="..." # append a tracking rowThe agent in your project reads AGENTS.md first. That's it.
| Path | Purpose |
|---|---|
AGENTS.md |
Master rulebook (model-agnostic). Every agent reads this first. |
CLAUDE.md / CONVENTIONS.md |
Vendor entry points that delegate to AGENTS.md. |
.github/copilot-instructions.md |
Copilot Chat / agent-mode rules. |
.github/agents/ |
Reusable custom agents (slash commands live in .agents/skills/). |
.github/instructions/ + .agents/instructions/ |
Scoped instructions and shared roadmap discipline. |
.codex/config.toml + .codex/agents/ |
Generated Codex guidance, CodeGraph MCP and native subagent roles. |
.vscode/{settings,tasks,mcp}.json |
VS Code workspace defaults. |
.mcp.json |
Repo-level MCP server config (CodeGraph wired; rest stubbed). |
Makefile |
Thin dispatcher → xops/makefile/*.py. |
docs/tracking/tracking.csv + docs/tracking/tracking.schema.md |
The 9-column tracking log (blank on fresh install). |
docs/tracking/state/ |
Session state (checkpoint, last_failure, log.jsonl). |
docs/tracking/context.md |
Shared context pack — single file for project-specific overrides. |
xops/agent/ |
safe-run.sh, session-bootstrap.sh, tracking_append.sh, run-with-retry.sh. |
xops/makefile/ |
Python (stdlib only) ops scripts that make dispatches to. |
docs/ |
Documentation templates (code/, project/, design/, planning/, tracking/, guides/). |
.agents/skills/ |
Curated skill library — one SKILL.md per subfolder. |
The scaffolder writes a minimal project-template README.md into the target
(only if one does not already exist). The framework's own README.md,
install.sh, xops/init/, and .agentic-workspace-version are intentionally
not copied — those are framework-only artefacts.
See docs/guides/AGENT_OPERATING_MODEL.md
for the full design rationale, and
docs/guides/MODEL_PROFILES.md for how each
assistant is wired.
Agents never call git commit or git push. After completing a slice of
work they call xops/agent/tracking_append.sh to add one validated row to
docs/tracking/tracking.csv (9 columns: ts_utc, run_id, agent, scope, action, status, summary, refs, commit_sha), then git add -A, then stop. The human
runs make git whenever they're ready; make git reads the rows with
commit_sha=pending, builds Conventional Commits from the summary field,
commits, and pushes. make git.dry previews everything read-only. The schema
lives at docs/tracking/tracking.schema.md.
.agents/skills/ is a curated, model-agnostic library of operating practices
distilled from real-world AI-coding repos. Each skill is a subfolder with a
SKILL.md file (a clear when-to-use trigger + guidance). They are accessible
via the VS Code Copilot / command. See .agents/skills/README.md for the index.
agentic-workspace/
├── AGENTS.md, CLAUDE.md, CONVENTIONS.md # rulebooks
├── README.md, LICENSE, Makefile, .gitignore # standard
├── install.sh # one-liner curl installer (framework-only)
├── .agentic-workspace-version # current framework version (framework-only)
├── .github/, .vscode/, .mcp.json # per-agent wiring
├── .agents/skills/ # curated skill library (one SKILL.md per subfolder)
├── ci/ # optional, standalone GitHub CI/CD generator (see ci/README.md)
├── docs/
│ ├── tracking/ # tracking log + schema + state + context
│ ├── planning/ROADMAP.md
│ ├── code/, design/, project/, guides/, reports/
└── xops/
├── init/scaffold.sh # ← the bootstrapper (framework-only)
├── agent/ # safe-run, tracking_append, session-bootstrap
└── makefile/ # python ops dispatched by Makefile
Issues and PRs welcome. The skills library especially benefits from real-world
patterns — if you have a practice that survives across projects, send a PR
adding a SKILL.md under a new subfolder of .agents/skills/.
MIT — use freely in commercial and open-source projects.