Preface
- Why this book exists
- Who it is for
- How to use this book
- Safety and privacy first
- A note on versions and truth
- What this book will not do
Chapter 01: What Muse Code Is, and What It Is Not
- What you will learn
- Illustrative scenario
- The idea in plain words
- How the agent loop works
- What Muse Code is
- What Muse Code is not
- Where it fits among coding agents
- A guided tour of the official docs
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 02: Getting Access Safely
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 03: Your First Session
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 04: Write a Spec Before You Prompt
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 05: Prompting Muse Code
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 06: Rules, Skills, and Hooks
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 07: Approvals and the Sandbox
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 08: Sessions, Context, and Long Tasks
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 09: Project 1 — A Small Web App from Scratch
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 10: Project 2 — Adding a Feature to an Existing Codebase
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 11: Project 3 — Refactoring and Adding Tests
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 12: Images, Video, and Parallel Work
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 13: Reviewing What the Agent Wrote
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 14: Security and Privacy
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 15: Cost and Token Awareness
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 16: Using Muse Models in Other Tools
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 17: Muse Code in Teams and Pipelines
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Chapter 18: Troubleshooting and Staying Current
- What you will learn
- Illustrative scenario
- The idea in plain words
- Step-by-step walkthrough
- How to check the result
- Safety and privacy checkpoint
- What the agent typically gets wrong here
- Common mistakes
- Chapter checklist
- Summary and “Try it on a throwaway project”
Appendix A: Quick-Start Checklist
- Before you install (Chapter 2)
- Install safely (Chapter 2)
- First session (Chapter 3)
- Before every task (Chapters 4-5)
- Guardrails (Chapters 6-7)
- Sessions (Chapter 8)
- Review and privacy (Chapters 13-14)
- When stuck (Chapter 18)
Appendix B: Prompt Library
- B.1 Read-only exploration
- B.2 Map a foreign codebase
- B.3 Plan-first (use before edits on non-trivial work)
- B.4 Scoped implement (one criterion per turn)
- B.5 Constrained repair
- B.6 Output-shape example
- B.7 Tests only (no source changes)
- B.8 Read-only verification of finished work
- B.9 Revert stowaways
- B.10 Image question (read-only)
- B.11 Fixture generation (before refactoring)
- B.12 Single-slice extraction (refactor)
- B.13 Headless single prompt (scripts and CI)
Appendix C: Starter Rules and Skills Templates
- C.1 Minimal project rules (adapt to your repo)
- C.2 Read-only exploration rules (foreign code)
- C.3 Refactor rules (behavior-locked)
- C.4 Skill-use notes (procedural, not code)
Appendix D: Code Review Checklist
- Pass 1 — Scope
- Pass 2 — Diff (read every line in version control)
- Pass 3 — Behavior (your own eyes and hands)
- Pass 4 — Tests (raw log, not prose)
- Pass 5 — Leftovers
Appendix E: Privacy and Data Checklist
- Before real code enters the tool
- Before every session (thirty seconds)
- Checkouts, dependencies, tools
- Exports and sharing
Appendix F: Command Cheat Sheet
- Install and version
- Start and sign in
- Sessions
- Context and goals
- Tasks and review
- Rules and skills
- Approvals, sandbox, network (verify on your release)
- Headless, protocol, SDK (verify on your release)