Agents behave inconsistently in production when their context is poorly managed. Context is the information an agent relies on to act, such as system instructions, tool definitions, and reference material. Context engineering is the practice of building and optimizing that context to improve agent performance and capabilities. This page covers the core concepts of context engineering in LangSmith: skills, agents, the Context Hub, versioning, and sharing.Documentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
Skills
A skill is a versioned repo in the Context Hub that packages a reusable capability an agent can invoke. Skill repos usually contain: Common files:SKILL.mdin the root directory for instructions and usage guidance.- Optional supporting files such as references, templates, and schemas.
Agents
An agent is an AI system that completes tasks end to end using tools, skills, and subagents. An agent repo packages its configuration, including high-level instructions, linked skills and subagents, and tool configuration. Agent repos usually contain: Common files:AGENTS.mdfor system prompt and operating instructions.- Optional files such as
tools.jsonand linkedagents/*orskills/*entries.
Choose between skills and agents
Skills are reusable context modules. Agent repos are top-level bundles that define how an agent should operate.- Use skills for reusable instructions, policies, or examples shared across agents.
- Use agent repos for one agent’s operating instructions, tools, and linked dependencies.
Linked repos
Context Hub commits support three entry types infiles:
file: inline file content.agent: link to another agent repo.skill: link to another skill repo.
Context Hub vs. store backend
Context in LangSmith can be managed by two different backends: the Context Hub and a store backend. They serve different purposes, and most agents use both. The Context Hub is your agents’ long-term context store. It tracks every change as a commit and supports versioning, sharing, and continuous improvement. A store backend is built for runtime state. It holds the information an agent accumulates while running: memories, conversation history, user preferences, learned facts, and other data that evolves per session or per user.Versioning
Every change to a repo in the Context Hub creates a new commit. Commits are immutable, browsable, and comparable, so you can:- See exactly what changed between two versions of an agent.
- Revert to any prior commit if a change regresses behavior.
- Tag important commits (for example, the commit you shipped on a specific date) for easy reference.
- Promote a commit to an environment like
StagingorProductionso downstream agents pull a stable version rather than the latest edit.
Sharing and permissions
The Context Hub is designed for teams. Every repo lives in a workspace, and access depends on workspace permissions plus repo visibility:- Private repos are visible only inside the workspace.
- Public repos can be discovered and pulled by anyone.
- Creating commits, adding tags, and promoting environments requires update access in the workspace.
Next steps
- Use the Context Hub to create your first skill or agent.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

