How hydrokat/agent-workspace works
agent-workspace initializes and maintains AI coding workspaces, generating shared agents, skills, and guidelines in provider-specific formats. Its principal workflow is CLI command → setup/update orchestration → canonical asset installation and provider synchronization → workspace verification. The Python Tandem companion manages concurrent AI-agent sessions, shared coordination state, and live status in tmux. The graph includes README-documented workspace capabilities; some Tandem links rely on SOURCE INDEX references because their implementation excerpts were not provided.
Main entry points: init.js Initialize workspace · update.js Update workspace · doctor.js Verify workspace · commands.py Agent session commands
Components 32
Workspace lifecycle
- Initialize workspace
src/commands/init.js - Update workspace
src/commands/update.js - Verify workspace
src/commands/doctor.js - Setup prompts
src/core/prompts.js - Workspace scaffolding
src/core/scaffold.js - Workspace manifest
src/core/manifest.js - Git operations
src/core/git.js - Sibling codebase links
src/core/link-codebases.js
Content and providers
- Agents skills guidelines
src/core/assets.js - Provider generation
src/core/sync.js - Provider adapters
src/core/providers.js - Agent model mapping
src/core/models.js - Workspace runtime assets
src/core/runtime.js
Tandem sessions
- Agent session commands
tandem/src/tandem/commands.py - AI CLI adapters
tandem/src/tandem/adapters/base.py - Tmux client
tandem/src/tandem/tmux/client.py - Session layout
tandem/src/tandem/tmux/layout.py - Saved session state
tandem/src/tandem/state.py
Coordination and status
- Coordination store
tandem/src/tandem/coordination/store.py - Coordination schema
tandem/src/tandem/coordination/schema.py - Agent coordination skill
templates/skills/agent-coordination/scripts/coord.py - Workspace status sources
tandem/src/tandem/sources/specs.py
User interfaces
- Workspace CLI
src/cli.js - Tandem CLI
tandem/src/tandem/cli.py - Live status dashboard
tandem/src/tandem/status/app.py - Status rendering
tandem/src/tandem/status/render.py - Session setup wizard
tandem/src/tandem/wizard/app.py
Other components
- Project user
- Claude Code
- Antigravity CLI
- Codex
- tmux service
Connections 45
- Project user → Workspace CLI: runs command
- Workspace CLI → Initialize workspace: dispatches init
src/cli.js - Workspace CLI → Update workspace: dispatches update
src/cli.js - Workspace CLI → Verify workspace: dispatches doctor
src/cli.js - Initialize workspace → Setup prompts: gathers choices
src/commands/init.js - Update workspace → Setup prompts: gathers choices
src/commands/update.js - Initialize workspace → Workspace scaffolding: creates structure
src/commands/init.js - Update workspace → Workspace scaffolding: ensures structure
src/commands/update.js - Initialize workspace → Agents skills guidelines: installs assets
src/commands/init.js - Update workspace → Agents skills guidelines: refreshes assets
src/commands/update.js - Initialize workspace → Workspace runtime assets: installs runtime
src/commands/init.js - Update workspace → Workspace runtime assets: installs runtime
src/commands/update.js - Initialize workspace → Provider generation: generates providers
src/commands/init.js - Update workspace → Provider generation: regenerates providers
src/commands/update.js - Provider generation → Provider adapters: uses provider formats
src/core/sync.js - Provider adapters → Agent model mapping: resolves models
src/core/providers.js - Initialize workspace → Workspace manifest: saves setup
src/commands/init.js - Update workspace → Workspace manifest: bumps and saves
src/commands/update.js - Initialize workspace → Verify workspace: verifies result
src/commands/init.js - Update workspace → Verify workspace: verifies result
src/commands/update.js - Verify workspace → Workspace manifest: loads providers
src/commands/doctor.js - Verify workspace → Provider adapters: checks providers
src/commands/doctor.js - Verify workspace → Agent model mapping: checks model mapping
src/commands/doctor.js - Initialize workspace → Git operations: may create repository
src/commands/init.js - Update workspace → Git operations: may commit changes
src/commands/update.js - Initialize workspace → Sibling codebase links: optionally links
src/commands/init.js - Project user → Tandem CLI: runs session commands
- Tandem CLI → Agent session commands: dispatches commands
tandem/src/tandem/cli.py - Tandem CLI → Live status dashboard: opens dashboard
tandem/src/tandem/cli.py - Tandem CLI → Session setup wizard: starts setup
tandem/src/tandem/cli.py - Agent session commands → AI CLI adapters: builds agent commands
tandem/src/tandem/commands.py - Agent session commands → Session layout: manages sessions
tandem/src/tandem/commands.py - Agent session commands → Coordination store: uses coordination store
tandem/src/tandem/commands.py - Agent session commands → Saved session state: saves session state
tandem/src/tandem/commands.py - Session layout → Tmux client: runs tmux actions
tandem/src/tandem/tmux/layout.py - Tmux client → tmux service: executes commands
tandem/src/tandem/tmux/client.py - Live status dashboard → Coordination store: collects coordination data
tandem/src/tandem/status/app.py - Live status dashboard → Status rendering: renders dashboard
tandem/src/tandem/status/app.py - Live status dashboard → Tmux client: selects agent pane
tandem/src/tandem/status/app.py - Coordination store → Coordination schema: decodes records
tandem/src/tandem/coordination/store.py - Agent coordination skill → Coordination store: shares query protocol
- Workspace status sources → Live status dashboard: supplies workspace data
- AI CLI adapters → Claude Code: launches agent CLI
- AI CLI adapters → Antigravity CLI: launches agent CLI
- AI CLI adapters → Codex: launches agent CLI