Skip to content

Workspace Intelligence

Workspace intelligence is the context layer that sits between your project and the agents working on it. It’s why Ptah agents start conversations knowing your stack, conventions, and current state — without you having to paste anything.

Every time an agent spawns in a workspace, Ptah automatically attaches:

SourceContentRefreshed
Project structureTop-level layout, key folders, monorepo boundariesOn workspace change
DependenciesDirect deps from package.json, requirements.txt, etc.When manifest changes
Tech stack summaryLanguages, frameworks, versions (from analysis)After each analysis
Recent filesFiles you’ve opened or edited in the last sessionContinuously
Git stateCurrent branch, last commit, dirty file countReal-time
Enabled pluginsPlugin agents/skills active for this workspaceOn config change
Open chat contextFiles referenced in the active chatOn message send

Two concrete examples:

  1. You open a chat in an Angular project and ask “Add a loading spinner to the dashboard.” The agent already knows it’s Angular 20 with signals, reads the existing dashboard component, and produces a signals-based patch — not a React component, not an old-style BehaviorSubject pattern.

  2. You switch to a different branch. The next agent invocation sees the new branch name and the different set of dirty files, so it doesn’t hallucinate code from the branch you just left.

To see the exact context bundle passed to an agent for a given run, use Chat → Show context in the message overflow menu. The context panel shows each source and lets you toggle any of them off for the next message.

Context inspector

You can pin extra files or notes to the workspace context through .ptah/context.md. Anything in that file is appended to every agent invocation in the workspace.

.ptah/context.md
## Conventions
- All new services go under `libs/shared/services/`
- Prefer Zod for input validation, not `class-validator`
- Test files use `.spec.ts`, never `.test.ts`

Workspace intelligence is gathered locally and only sent to the provider you’ve configured for the active chat. Ptah never uploads your analysis cache to its own servers.