Add gemini chat history to git
This commit is contained in:
94 files changed
+137284
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"sessionId": "f5cd9852-4afa-4671-abaa-d60d7c4f660b",
|
||||
"projectHash": "3c9a1a5ed3cad62c93455cb7037b4d648f4f1604b6d15084cc4178e3a864b233",
|
||||
"startTime": "2026-01-26T17:24:22.078Z",
|
||||
"lastUpdated": "2026-01-26T17:24:22.078Z",
|
||||
"messages": [
|
||||
{
|
||||
"id": "597c415d-afbe-45d1-a585-3f2dea783bbf",
|
||||
"timestamp": "2026-01-26T17:24:22.078Z",
|
||||
"type": "info",
|
||||
"content": "Current memory content from 2 file(s):\n\n---\n--- Context from: .gemini/GEMINI.md ---\n## General Guidelines\n\n- **Ruby/Python:** If working with Ruby, assume `bundler`. If working with Python, assume `virtualenv`.\n- **Conventions:** Respect existing `.gitignore` and coding styles in each extension.\n--- End of Context from: .gemini/GEMINI.md ---\n\n--- Context from: .gemini/extensions/gemini-cli-security/GEMINI.md ---\n# Standard Operating Procedures: Security Analysis Guidelines\n\nThis document outlines your standard procedures, principles, and skillsets for conducting security audits. You must adhere to these guidelines whenever you are tasked with a security analysis.\n\n---\n\n## Persona and Guiding Principles\n\nYou are a highly skilled senior security and privacy engineer. You are meticulous, an expert in identifying modern security vulnerabilities, and you follow a strict operational procedure for every task. You MUST adhere to these core principles:\n\n* **Selective Action:** Only perform security analysis when the user explicitly requests for help with code security or vulnerabilities. Before starting an analysis, ask yourself if the user is requesting generic help, or specialized security assistance.\n* **Assume All External Input is Malicious:** Treat all data from users, APIs, or files as untrusted until validated and sanitized.\n* **Principle of Least Privilege:** Code should only have the permissions necessary to perform its function.\n* **Fail Securely:** Error handling should never expose sensitive information.\n\n---\n\n## Skillset: Permitted Tools & Investigation\n* You are permitted to use the command line to understand the repository structure.\n* You can infer the context of directories and files using their names and the overall structure.\n* To gain context for any task, you are encouraged to read the surrounding code in relevant files (e.g., utility functions, parent components) as required.\n* You **MUST** only use read-only tools like `ls -R`, `grep`, and `read-file` for the security analysis.\n* When a user's query relates to security analysis (e.g., auditing code, analyzing a file, vulnerability identification), you must provide the following options **EXACTLY**:\n```\n 1. **Comprehensive Scan**: For a thorough, automated scan, you can use the command `/security:analyze`.\n 2. **Manual Review**: I can manually review the code for potential vulnerabilities based on our conversation.\n```\n* Explicitly ask the user which they would prefer before proceeding. The manual analysis is your default behavior if the user doesn't choose the command. If the user chooses the command, remind them that they must run it on their own.\n* During the security analysis, you **MUST NOT** write, modify, or delete any files unless explicitly instructed by a command (eg. `/security:analyze`). Artifacts created during security analysis should be stored in a `.gemini_security/` directory in the user's workspace.\n\n## Skillset: SAST Vulnerability Analysis\n\nThis is your internal knowledge base of vulnerabilities. When you need to do a security audit, you will methodically check for every item on this list.\n\n### 1.1. Hardcoded Secrets\n* **Action:** Identify any secrets, credentials, or API keys committed directly into the source code.\n* **Procedure:**\n * Flag any variables or strings that match common patterns for API keys (`API_KEY`, `_SECRET`), passwords, private keys (`-----BEGIN RSA PRIVATE KEY-----`), and database connection strings.\n * Decode any newly introduced base64-encoded strings and analyze their contents for credentials.\n\n * **Vulnerable Example (Look for such pattern):**\n ```javascript\n const apiKey = \"sk_live_123abc456def789ghi\";\n const client = new S3Client({\n credentials: {\n accessKeyId: \"AKIAIOSFODNN7EXAMPLE\",\n secretAccessKey: \"wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY\",\n },\n });\n ```\n\n### 1.2. Broken Access Control\n* **Action:** Identify flaws in how user permissions and authorizations are enforced.\n* **Procedure:**\n * **Insecure Direct Object Reference (IDOR):** Flag API endpoints and functions that access resources using a user-supplied ID (`/api/orders/{orderId}`) without an additional check to verify the authenticated user is actually the owner of that resource.\n\n * **Vulnerable Example (Look for this logic):**\n ```python\n # INSECURE - No ownership check\n def get_order(order_id, current_user):\n return db.orders.find_one({\"_id\": order_id})\n ```\n * **Remediation (The logic should look like this):**\n ```python\n # SECURE - Verifies ownership\n def get_order(order_id, current_user):\n order = db.orders.find_one({\"_id\": order_id})\n if order.user_id != current_usLine truncated
|
||||
}
|
||||
]
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"sessionId": "1ea52a41-37ce-42bd-8da3-ad9bb02e7f07",
|
||||
"projectHash": "3c9a1a5ed3cad62c93455cb7037b4d648f4f1604b6d15084cc4178e3a864b233",
|
||||
"startTime": "2026-02-06T16:25:01.604Z",
|
||||
"lastUpdated": "2026-02-06T16:25:01.604Z",
|
||||
"messages": [
|
||||
{
|
||||
"id": "bec8748e-cada-430d-bc66-5550cec1416c",
|
||||
"timestamp": "2026-02-06T16:25:01.604Z",
|
||||
"type": "error",
|
||||
"content": "Error during discovery for MCP server 'terraform': MCP error -32000: Connection closed"
|
||||
}
|
||||
]
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"sessionId": "9038f99f-0ef7-446a-a51b-a7451b85167c",
|
||||
"projectHash": "3c9a1a5ed3cad62c93455cb7037b4d648f4f1604b6d15084cc4178e3a864b233",
|
||||
"startTime": "2026-02-10T17:18:48.062Z",
|
||||
"lastUpdated": "2026-02-10T17:18:52.279Z",
|
||||
"messages": [
|
||||
{
|
||||
"id": "c4c2a8b9-3730-4fc6-8237-889e1823a67e",
|
||||
"timestamp": "2026-02-10T17:18:48.062Z",
|
||||
"type": "user",
|
||||
"content": "how do i make gemini show more of its thinking"
|
||||
},
|
||||
{
|
||||
"id": "3bb4d945-e2d3-401a-a374-73a871d700a8",
|
||||
"timestamp": "2026-02-10T17:18:52.279Z",
|
||||
"type": "gemini",
|
||||
"content": "To see more of the underlying logic and steps taken by Gemini, you can use the following methods within the CLI:\n\n### 1. Increase Verbosity\nWhen running the `gemini` command from your terminal, you can append verbosity flags. This often exposes more detailed logs about tool execution and the internal \"thought\" process:\n* **`-v`**: Enables verbose mode.\n* **`-vv`**: Enables extra verbose mode (if supported by your current version).\n\n### 2. Explicitly Request \"Chain of Thought\"\nIn your prompts, you can instruct Gemini to show its reasoning before providing the final answer. Use phrases like:\n* \"Walk me through your reasoning step-by-step before providing the code.\"\n* \"Show your Chain of Thought (CoT) for this task.\"\n* \"Explain your plan in detail before executing any tools.\"\n\n### 3. Review Tool Output\nThe CLI already shows you which tools are being called and why (the \"Explain Before Acting\" mandate). If you want to see more of what happened *inside* a shell command or file read that produced a lot of data, you can ask Gemini to:\n* \"Show the full output of the last shell command.\"\n* \"Read the log file in the temporary directory created during the last step.\"\n\n### 4. Use the `/help` Command\nYou can always type `/help` or ask `cli_help` specifically about \"debugging\" or \"verbosity\" to see if there are new runtime configuration options available for your specific build.",
|
||||
"thoughts": [],
|
||||
"tokens": {
|
||||
"input": 15017,
|
||||
"output": 329,
|
||||
"cached": 0,
|
||||
"thoughts": 0,
|
||||
"tool": 0,
|
||||
"total": 15346
|
||||
},
|
||||
"model": "gemini-3-flash-preview"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user