refactor: enhance user context handling and update template mappings
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# IDENTITY.md
|
||||
{% set is_lead = (is_board_lead | default(false) | string | lower) in ["true", "1", "yes"] %}
|
||||
|
||||
# IDENTITY.md
|
||||
|
||||
## Core
|
||||
- Name: {{ agent_name }}
|
||||
- Agent ID: {{ agent_id }}
|
||||
|
||||
@@ -1,16 +1,23 @@
|
||||
# TOOLS.md
|
||||
{% set is_main = (is_main_agent | default(false) | string | lower) in ["true", "1", "yes"] %}
|
||||
{% set is_lead = (is_board_lead | default(false) | string | lower) in ["true", "1", "yes"] %}
|
||||
# TOOLS.md
|
||||
|
||||
- `BASE_URL={{ base_url }}`
|
||||
- `AUTH_TOKEN={{ auth_token }}`
|
||||
- `AGENT_NAME={{ agent_name }}`
|
||||
- `AGENT_ID={{ agent_id }}`
|
||||
{% if board_id is defined %}
|
||||
- `BOARD_ID={{ board_id }}`
|
||||
{% endif %}
|
||||
- `WORKSPACE_ROOT={{ workspace_root }}`
|
||||
{% if workspace_path is defined %}
|
||||
- `WORKSPACE_PATH={{ workspace_path }}`
|
||||
{% endif %}
|
||||
- Required tools: `curl`, `jq`
|
||||
|
||||
{% if is_lead %}
|
||||
{% if is_main %}
|
||||
{% set role_tag = "agent-main" %}
|
||||
{% elif is_lead %}
|
||||
{% set role_tag = "agent-lead" %}
|
||||
{% else %}
|
||||
{% set role_tag = "agent-worker" %}
|
||||
|
||||
@@ -1,35 +1,21 @@
|
||||
# USER.md - About Your Human
|
||||
{% set is_lead = (is_board_lead | default(false) | string | lower) in ["true", "1", "yes"] %}
|
||||
|
||||
Learn about the person you're helping. Update this as you go.
|
||||
_Learn about the person you're helping. Update this as you go._
|
||||
|
||||
## Human Profile
|
||||
- Name: {{ user_name }}
|
||||
- Preferred name: {{ user_preferred_name }}
|
||||
- Pronouns (optional): {{ user_pronouns }}
|
||||
- Timezone: {{ user_timezone }}
|
||||
- Notes: {{ user_notes }}
|
||||
- **Name:** {{ user_name }}
|
||||
- **What to call them:** {{ user_preferred_name }}
|
||||
- **Pronouns:** _(optional)_ {{ user_pronouns }}
|
||||
- **Timezone:** {{ user_timezone }}
|
||||
- **Notes:** {{ user_notes }}
|
||||
|
||||
## Context
|
||||
|
||||
{% if user_context %}
|
||||
{{ user_context }}
|
||||
|
||||
## Board Objective Snapshot
|
||||
- Board name: {{ board_name }}
|
||||
- Board type: {{ board_type }}
|
||||
- Objective: {{ board_objective }}
|
||||
- Success metrics: {{ board_success_metrics }}
|
||||
- Target date: {{ board_target_date }}
|
||||
|
||||
{% if is_lead %}
|
||||
## Intake Notes (Lead)
|
||||
Use this section for durable, human-provided answers gathered in board chat
|
||||
(goal clarification, constraints, preferences). Keep it short and factual.
|
||||
|
||||
- [YYYY-MM-DD] ...
|
||||
{% else %}
|
||||
_(What do they care about? What projects are they working on? What annoys them? What makes them laugh? Build this over time.)_
|
||||
{% endif %}
|
||||
|
||||
---
|
||||
|
||||
The more you know, the better you can help. But remember: you're learning about a person, not building a dossier. Respect the difference.
|
||||
|
||||
If any field is blank, leave it blank. Do not invent values.
|
||||
The more you know, the better you can help. But remember - you're learning about a person, not building a dossier. Respect the difference.
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
# IDENTITY.md — Who Am I?
|
||||
|
||||
Name: {{ agent_name }}
|
||||
|
||||
Agent ID: {{ agent_id }}
|
||||
|
||||
Creature: {{ identity_role }}
|
||||
|
||||
Vibe: {{ identity_communication_style }}
|
||||
|
||||
Emoji: {{ identity_emoji }}
|
||||
|
||||
{% if identity_purpose %}
|
||||
Purpose: {{ identity_purpose }}
|
||||
{% endif %}
|
||||
|
||||
{% if identity_personality %}
|
||||
Personality: {{ identity_personality }}
|
||||
{% endif %}
|
||||
|
||||
{% if identity_custom_instructions %}
|
||||
Custom Instructions:
|
||||
{{ identity_custom_instructions }}
|
||||
{% endif %}
|
||||
@@ -1,11 +0,0 @@
|
||||
# TOOLS.md (Main Agent)
|
||||
|
||||
BASE_URL={{ base_url }}
|
||||
AUTH_TOKEN={{ auth_token }}
|
||||
AGENT_NAME={{ agent_name }}
|
||||
AGENT_ID={{ agent_id }}
|
||||
WORKSPACE_ROOT={{ workspace_root }}
|
||||
|
||||
Notes:
|
||||
- Use curl for API calls.
|
||||
- Use Mission Control API for outputs.
|
||||
@@ -1,19 +0,0 @@
|
||||
# USER.md (Main Agent)
|
||||
|
||||
## User
|
||||
- Name: {{ user_name }}
|
||||
- Preferred name: {{ user_preferred_name }}
|
||||
- Pronouns: {{ user_pronouns }}
|
||||
- Timezone: {{ user_timezone }}
|
||||
|
||||
## Context
|
||||
{{ user_context }}
|
||||
|
||||
## Notes
|
||||
{{ user_notes }}
|
||||
|
||||
## Mission Control
|
||||
- Base URL: {{ base_url }}
|
||||
- Auth token: {{ auth_token }}
|
||||
|
||||
You are the **Main Agent** for this gateway. You are not tied to a specific board.
|
||||
@@ -1,40 +0,0 @@
|
||||
# MEMORY.md - Long-Term Memory
|
||||
|
||||
This is curated knowledge. Update it during consolidation, not constantly during sessions.
|
||||
|
||||
Use this for durable facts, decisions, constraints, recurring patterns, and evolving identity/preferences.
|
||||
Update during consolidation, not constantly.
|
||||
|
||||
- Preferences / working style:
|
||||
- What I learned about the human:
|
||||
- What changed recently:
|
||||
|
||||
{% if board_id is defined %}
|
||||
## Board Context (read-only unless board goal changes)
|
||||
|
||||
- Board: {{ board_name }}
|
||||
- Board type: {{ board_type }}
|
||||
- Objective: {{ board_objective }}
|
||||
- Success metrics: {{ board_success_metrics }}
|
||||
- Target date: {{ board_target_date }}
|
||||
{% endif %}
|
||||
|
||||
## Constraints / Assumptions
|
||||
|
||||
- [Add constraints that affect decisions and task execution]
|
||||
|
||||
## Decisions (with rationale)
|
||||
|
||||
- [Decision] - [Why]
|
||||
|
||||
## Known Risks / Open Questions
|
||||
|
||||
- [Risk or question] - [Mitigation or next step]
|
||||
|
||||
## Useful References
|
||||
|
||||
- [Commands, paths, URLs (without secrets)]
|
||||
|
||||
---
|
||||
|
||||
Last consolidated: [YYYY-MM-DD]
|
||||
Reference in New Issue
Block a user