Agentic Context
agentic-context
Use the Agentic File System (AFS) context model for discovery, mounts, scratchpad memory, and file-based tool workflows. Use when a task involves .context operations, AFS CLI usage, or cross-agent context coordination.
SKILL.md
Full skill instructions
Agentic Context
Scope
- Operate AFS context safely: discover context roots, read/write scratchpad, and mount knowledge.
Workflow
- Locate the active context root.
- Use
~/src/lab/afs/scripts/afs context discover --path ~/src --json. - Prefer project
.contextwhen working inside a repo.
- Use
- Ensure context scaffolding exists.
- Use
~/src/lab/afs/scripts/afs context ensure-all --path ~/src.
- Use
- Read and write via AFS, not ad-hoc paths.
- For MCP clients, prefer
context.read,context.write,context.list,context.move, andcontext.delete. - Treat
fs.*MCP tool names as compatibility aliases. - Read:
afs fs read scratchpad state.md --path ~/src. - Write:
afs fs write scratchpad notes.md --path ~/src --content "...". - List:
afs fs list knowledge --path ~/src --glob "*.md".
- For MCP clients, prefer
- Keep memory and knowledge read-only.
- Write only to
scratchpadunless explicitly asked. - Treat
session packas an explicit handoff/export step, not routine startup.
- Write only to
- Use workspace navigation tools.
- Use
ws list,ws find, andws statusfor project discovery.
- Use
- Use the AFS CLI wrapper for non-interactive agents.
- Use
AFS_CLI=~/src/lab/afs/scripts/afsandAFS_VENV=~/src/lab/afs/.venvwhen needed.
- Use
References
- Read
references/sources.mdfor AFS context docs and contracts.
