Concepts
A few key ideas to help you get the most out of Treasure Work.
Borrowing an Agent's Context
An agent is more than a chat partner — it's a reusable context. When you borrow an agent's context, your next chat starts with everything that agent already knows:
| What's Borrowed | What It Does |
|---|---|
| Instructions | The agent's AGENTS.md body — conventions, preferred databases, output formats |
| Working folder | The directory on disk the chat reads and writes files in |
| Skills | Skills that are always active in the chat |
| Model, effort & backend | The agent's model tier, reasoning effort, and execution engine |
| Extra directories | Additional folders visible to the chat |
Example: A "CDP Ops" agent might set the working folder to ~/td/cdp-configs/, activate segment and journey skills, and carry instructions like "Always validate YAML before pushing." Borrow it and a new chat follows all of that automatically.
Each account profile keeps its own pinned agent, and the borrow only shapes new chats:
- Click the context chip on the chat composer to pin an agent
- Press
Cmd+P— the command palette opens prefilled with#agent: - Type
#agent-namein the composer to borrow for the next message
TIP
If a chat is already open, Treasure Work asks before starting a fresh one with the borrowed context. Your chat history is preserved — borrowing only changes the configuration for new conversations.
Working Folder
The working folder is the AI's file system sandbox. When the AI generates files — query results, segment definitions, charts, reports — they go here. The AI can also read files from this folder, which is useful for reviewing existing configs or iterating on exports.
Set a working folder per agent (it comes along when you borrow the agent's context), or configure a global default in settings.
AI Credits
Each AI interaction consumes credits. The amount depends on which model you use and how much the AI processes (longer conversations and tool-heavy sessions cost more).
| Model | Relative Cost | When to Use |
|---|---|---|
| Opus | Highest | Complex multi-step analysis, building segment rules, writing workflows |
| Sonnet | Medium | General-purpose work, moderate reasoning tasks |
| Haiku | Lowest | Quick lookups, simple questions, conserving budget |
Context Window
The context window is how much conversation the AI can "remember" at once. Treasure Work shows the current usage as a percentage indicator.

As you chat, the percentage grows. When it gets close to the limit, Treasure Work's auto-compact feature kicks in — it summarizes older messages to free up space without losing important context. Your conversation continues normally.
You can also manage context manually:
/context— See detailed context usage breakdown/compact— Summarize the conversation to free up context space/clear— Clear the context entirely and start fresh
TIP
For best results on long-running work, borrow an agent's context to carry context across multiple chats rather than pushing a single conversation to its limit.
Model Selection
Treasure Work supports multiple Claude models. You can switch models mid-conversation — useful for starting with Haiku for quick exploration, then switching to Opus for the complex part.

| Model | Strengths |
|---|---|
| Opus | Deepest reasoning. Best for multi-step data analysis, complex segment logic, and code generation. |
| Sonnet | Balanced speed and quality. Good default for everyday tasks. |
| Haiku | Fastest and cheapest. Great for quick lookups and simple operations. |
Use the model selector dropdown in the chat to switch at any time.
Next Steps
- Introduction — Explore the full feature set
- Skills — Install agent skills for specialized tasks
- Connectors — Connect external services