Give your coding agent a map, not a memory test.
็ฎไฝไธญๆ ยท Quick start ยท What it builds ยท Workflow
agent-workspace is an Agent Skill that turns a pile of repositories, docs, and setup knowledge into a workspace an AI agent can actually navigate.
One entry point. Clear ownership. Real evidence.
No framework. No database. No vendor lock-in. Just markdown, a small read-only Python checker, and a workflow that refuses to call a skeleton "done".
Every new agent session starts from zero. You pay for it in the same five ways:
- ๐ Re-explaining the system โ "the web app calls the API, the API owns billing, don't touch the legacy worker."
- ๐งญ Repo roulette โ three checkouts, two branches, one service nobody remembers starting.
- ๐ Knowledge without routing โ the design doc exists, but the agent doesn't know it exists.
- โ "Done" without proof โ the structure looks right, so everyone assumes it runs.
- ๐งฑ Scaffold sprawl โ a giant workspace built for an imagined future, abandoned in a week.
agent-workspace attacks all five: it builds the smallest workspace that supports one real user behavior, wires only the repos that behavior needs, and reports exactly what was verified โ and what was not.
| Layer | What you get | Why it matters |
|---|---|---|
| Entry | README.md as the single source of truth; AGENTS.md / CLAUDE.md as pointers |
Every agent starts in the same place |
| Knowledge | docs/knowledge/, docs/activity/, docs/INDEX.md, docs/LOG.md, routing table |
Stable facts stay separate from one-off work |
| Repos | repos/index.md + per-repo overview.md, setup.md, test.md, relative .source |
Agents can locate, run, and test the code |
| Skills | skills/<name>/SKILL.md plus project-level platform links |
Capabilities are reusable, not copy-pasted |
| Evidence | Acceptance record with PASS / FAIL / UNRUN per layer |
"Done" means something |
A generated workspace looks like this:
workspace/
โโโ README.md # the only entry source
โโโ AGENTS.md -> README.md # relative link, not a copy
โโโ CLAUDE.md -> README.md
โโโ docs/
โ โโโ README.md # "where to find what"
โ โโโ INDEX.md # one line per asset
โ โโโ LOG.md # append-only maintenance log
โ โโโ knowledge/ # stable concepts, rules, external summaries
โ โโโ activity/ # dated work, failures, evidence
โโโ repos/
โ โโโ index.md # repo responsibilities and call direction
โ โโโ api/
โ โโโ .source -> ../../external/api # keeps the original checkout
โ โโโ overview.md # contracts, consumers, boundaries
โ โโโ setup.md # shortest real run path
โ โโโ test.md # what tests prove, how to observe them
โโโ skills/ # reusable capabilities
Existing workspaces are treated as first-class: the skill reads the conventions already in place and fills only confirmed gaps. It does not "normalize" your layout, move your checkouts, or recreate a parallel structure.
Six moves, each with an explicit completion condition:
- Read the site โ inspect existing entry points, links, repos, and Git state.
- Choose a path โ build a minimal structure, or extend an existing workspace.
- Organize assets โ one body per fact; indexes register, routes point, logs append.
- Wire the repos โ only those on the representative behavior chain; keep original checkouts.
- Verify โ structure first, then the shortest real run path and the end-to-end behavior.
- Hand off โ record commands, results, evidence locations, blockers, and next steps.
sequenceDiagram
autonumber
actor You
participant Agent
participant WS as Workspace files
participant Repo as Source checkouts
You->>Agent: One real behavior + constraints
Agent->>WS: Read entry, routes, repo index
WS-->>Agent: Existing conventions + gaps
Agent->>Repo: Inspect setup and test notes
Agent->>WS: Write or repair owned files only
Agent->>WS: Run read-only structure check
Agent->>Repo: Run shortest authorized path
Repo-->>Agent: Commands, exit codes, logs
Agent->>WS: Record PASS / FAIL / UNRUN
Agent-->>You: Evidence-backed handoff
flowchart TB
EXT[External sources<br/>docs ยท tickets ยท links] --> SUM[Short summary<br/>source + how to fetch]
SUM --> K[docs/knowledge<br/>stable facts]
WORK[This session<br/>decisions ยท failures ยท evidence] --> A[docs/activity<br/>dated record]
K --> ROUTE[docs/README.md<br/>where to look]
A --> ROUTE
K --> IDX[docs/INDEX.md<br/>asset registry]
A --> IDX
K --> LOG[docs/LOG.md<br/>append-only]
A --> LOG
ROUTE --> NEXT[Next agent session]
IDX --> NEXT
LOG --> NEXT
Clone into the skills directory your agent reads:
# Shared skills convention (Codex, OpenCode, Cline, and others)
git clone https://github.com/IQQcode/agent-workspace.git ~/.agents/skills/agent-workspace
# Claude Code (user-level)
git clone https://github.com/IQQcode/agent-workspace.git ~/.claude/skills/agent-workspaceOr install it for every compatible platform in one step with skill-unify:
git clone https://github.com/IQQcode/skill-unify.git ~/.agents/skills/skill-unify
python3 ~/.agents/skills/skill-unify/scripts/skill-unify install https://github.com/IQQcode/agent-workspace --yesThen hand your agent a real goal:
Build an agent workspace for these two repos.
The key flow is: web app โ API โ Postgres. Only wire what that flow needs.
My workspace already exists. Add the payments repo without moving anything,
and tell me what you could not verify.
Audit this workspace. Don't change files.
Show me missing entry points, stale links, and unverified run paths.
The bundled checker is read-only. It never executes setup, tests, network calls, or writes.
python3 ~/.agents/skills/agent-workspace/scripts/check_workspace.py \
/absolute/path/to/workspace \
--mode self-built \
--platform claude| Exit code | Meaning |
|---|---|
0 |
Selected structure checks PASS |
1 |
At least one check FAIL |
2 |
UNRUN or invalid arguments |
--mode existing checks only the shared entry, knowledge routing, and the platforms/repos you explicitly declare โ useful for workspaces that do not follow the default blueprint.
Built-in platforms are claude (.claude/skills) and codex (.agents/skills). Any other platform can be declared without code changes:
python3 .../check_workspace.py /path/to/workspace \
--platform studio \
--platform-dir studio=.studio